Skip to content

Commit 79db2b7

Browse files
committed
Merge branch 'stable/for-linus-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb
Pull swiotlb updates from Konrad Rzeszutek Wilk: "Minor enhancement of using %p to print phys_addr_r and also compiler warnings" * 'stable/for-linus-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb: swiotlb: Mark max_segment with static keyword swiotlb: Declare swiotlb_late_init_with_default_size() in header swiotlb: Use %pa to print phys_addr_t variables
2 parents defb53a + b51e627 commit 79db2b7

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎arch/x86/pci/sta2x11-fixup.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <asm/iommu.h>
1616

1717
#define STA2X11_SWIOTLB_SIZE (4*1024*1024)
18-
extern int swiotlb_late_init_with_default_size(size_t default_size);
1918

2019
/*
2120
* We build a list of bus numbers that are under the ConneXt. The

‎include/linux/swiotlb.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ int swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose);
3434
extern unsigned long swiotlb_nr_tbl(void);
3535
unsigned long swiotlb_size_or_default(void);
3636
extern int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs);
37+
extern int swiotlb_late_init_with_default_size(size_t default_size);
3738
extern void __init swiotlb_update_mem_attributes(void);
3839

3940
/*

‎kernel/dma/swiotlb.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static unsigned int io_tlb_index;
9393
* Max segment that we can provide which (if pages are contingous) will
9494
* not be bounced (unless SWIOTLB_FORCE is set).
9595
*/
96-
unsigned int max_segment;
96+
static unsigned int max_segment;
9797

9898
/*
9999
* We need to save away the original address corresponding to a mapped entry
@@ -172,9 +172,7 @@ void swiotlb_print_info(void)
172172
return;
173173
}
174174

175-
pr_info("mapped [mem %#010llx-%#010llx] (%luMB)\n",
176-
(unsigned long long)io_tlb_start,
177-
(unsigned long long)io_tlb_end,
175+
pr_info("mapped [mem %pa-%pa] (%luMB)\n", &io_tlb_start, &io_tlb_end,
178176
bytes >> 20);
179177
}
180178

0 commit comments

Comments
 (0)