aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/dma
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-09-02 20:31:05 +0300
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2020-09-10 09:41:31 -0400
commitb51e627158cb0f67569aa46b5a08b568d20a81a4 (patch)
treed2e195a2f90c6f5b4629bbdd3330fc86cb1055f0 /kernel/dma
parentswiotlb: Declare swiotlb_late_init_with_default_size() in header (diff)
downloadlinux-dev-b51e627158cb0f67569aa46b5a08b568d20a81a4.tar.xz
linux-dev-b51e627158cb0f67569aa46b5a08b568d20a81a4.zip
swiotlb: Mark max_segment with static keyword
Sparse is not happy about max_segment declaration: CHECK kernel/dma/swiotlb.c kernel/dma/swiotlb.c:96:14: warning: symbol 'max_segment' was not declared. Should it be static? Mark it static as suggested. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel/dma')
-rw-r--r--kernel/dma/swiotlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index 6499bda8f0b8..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