aboutsummaryrefslogtreecommitdiff
path: root/kernel/dma
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2020-10-14 12:00:02 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2020-10-14 12:00:02 -0700
commit79db2b74aa146384dc8a962495f43941e5a91ee6 (patch)
tree7eb7913af3ba11eb2fd9d413c9dd9f68927cb4d7 /kernel/dma
parentMerge tag 'pnp-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/raf... (diff)
parentswiotlb: Mark max_segment with static keyword (diff)
downloadlinux-79db2b74aa146384dc8a962495f43941e5a91ee6.tar.gz
linux-79db2b74aa146384dc8a962495f43941e5a91ee6.tar.bz2
linux-79db2b74aa146384dc8a962495f43941e5a91ee6.zip
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
Diffstat (limited to 'kernel/dma')
-rw-r--r--kernel/dma/swiotlb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index c19379fabd20..465a567678d9 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -93,7 +93,7 @@ static unsigned int io_tlb_index;
* Max segment that we can provide which (if pages are contingous) will
* not be bounced (unless SWIOTLB_FORCE is set).
*/
-unsigned int max_segment;
+static unsigned int max_segment;
/*
* We need to save away the original address corresponding to a mapped entry
@@ -172,9 +172,7 @@ void swiotlb_print_info(void)
return;
}
- pr_info("mapped [mem %#010llx-%#010llx] (%luMB)\n",
- (unsigned long long)io_tlb_start,
- (unsigned long long)io_tlb_end,
+ pr_info("mapped [mem %pa-%pa] (%luMB)\n", &io_tlb_start, &io_tlb_end,
bytes >> 20);
}