From: Andy Shevchenko Date: Wed, 2 Sep 2020 17:31:05 +0000 (+0300) Subject: swiotlb: Mark max_segment with static keyword X-Git-Tag: v5.10.7~1441^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b51e627158cb0f67569aa46b5a08b568d20a81a4;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 6499bda..465a567 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