projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8344fa
)
dmaengine: ioat: Make two symbols static
author
Jason Yan
<yanaijie@huawei.com>
Sat, 12 Sep 2020 07:21:58 +0000
(15:21 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 18 Sep 2020 07:01:37 +0000
(12:31 +0530)
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>
drivers/dma/ioat/dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ioat/dma.c
b/drivers/dma/ioat/dma.c
index
a814b20
..
8cce4e0
100644
(file)
--- a/
drivers/dma/ioat/dma.c
+++ b/
drivers/dma/ioat/dma.c
@@
-26,11
+26,11
@@
#include "../dmaengine.h"
-int completion_timeout = 200;
+
static
int completion_timeout = 200;
module_param(completion_timeout, int, 0644);
MODULE_PARM_DESC(completion_timeout,
"set ioat completion timeout [msec] (default 200 [msec])");
-int idle_timeout = 2000;
+
static
int idle_timeout = 2000;
module_param(idle_timeout, int, 0644);
MODULE_PARM_DESC(idle_timeout,
"set ioat idel timeout [msec] (default 2000 [msec])");