Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: ioat: Make two symbols static

This eliminates the following sparse warning:

drivers/dma/ioat/dma.c:29:5: warning: symbol 'completion_timeout' was
not declared. Should it be static?
drivers/dma/ioat/dma.c:33:5: warning: symbol 'idle_timeout' was not
declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20200912072158.602585-1-yanaijie@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Jason Yan and committed by
Vinod Koul
0143db65 d8344fa9

+2 -2
+2 -2
drivers/dma/ioat/dma.c
··· 26 26 27 27 #include "../dmaengine.h" 28 28 29 - int completion_timeout = 200; 29 + static int completion_timeout = 200; 30 30 module_param(completion_timeout, int, 0644); 31 31 MODULE_PARM_DESC(completion_timeout, 32 32 "set ioat completion timeout [msec] (default 200 [msec])"); 33 - int idle_timeout = 2000; 33 + static int idle_timeout = 2000; 34 34 module_param(idle_timeout, int, 0644); 35 35 MODULE_PARM_DESC(idle_timeout, 36 36 "set ioat idel timeout [msec] (default 2000 [msec])");