Skip to content

Commit 0143db6

Browse files
JasonYanHwvinodkoul
authored andcommitted
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>
1 parent d8344fa commit 0143db6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/dma/ioat/dma.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626

2727
#include "../dmaengine.h"
2828

29-
int completion_timeout = 200;
29+
static int completion_timeout = 200;
3030
module_param(completion_timeout, int, 0644);
3131
MODULE_PARM_DESC(completion_timeout,
3232
"set ioat completion timeout [msec] (default 200 [msec])");
33-
int idle_timeout = 2000;
33+
static int idle_timeout = 2000;
3434
module_param(idle_timeout, int, 0644);
3535
MODULE_PARM_DESC(idle_timeout,
3636
"set ioat idel timeout [msec] (default 2000 [msec])");

0 commit comments

Comments
 (0)