* [PATCH] dmaengine: ioat: Make two symbols static
@ 2020-09-12 7:21 Jason Yan
2020-09-12 7:40 ` Ravich, Leonid
2020-09-14 15:36 ` Dave Jiang
0 siblings, 2 replies; 3+ messages in thread
From: Jason Yan @ 2020-09-12 7:21 UTC (permalink / raw)
To: dan.j.williams, vkoul, dave.jiang, Leonid.Ravich, dmaengine
Cc: Jason Yan, Hulk Robot
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>
---
drivers/dma/ioat/dma.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
index a814b200299b..8cce4e059b7a 100644
--- 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])");
--
2.25.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] dmaengine: ioat: Make two symbols static
2020-09-12 7:21 [PATCH] dmaengine: ioat: Make two symbols static Jason Yan
@ 2020-09-12 7:40 ` Ravich, Leonid
2020-09-14 15:36 ` Dave Jiang
1 sibling, 0 replies; 3+ messages in thread
From: Ravich, Leonid @ 2020-09-12 7:40 UTC (permalink / raw)
To: Jason Yan, dan.j.williams, vkoul, dave.jiang, dmaengine; +Cc: Hulk Robot
Looks good to me
> From: dmaengine-owner@vger.kernel.org <dmaengine-
> Sent: Saturday, 12 September 2020 10:22
>
> 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>
> ---
> drivers/dma/ioat/dma.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
> index a814b200299b..8cce4e059b7a 100644
> --- 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])");
> --
> 2.25.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dmaengine: ioat: Make two symbols static
2020-09-12 7:21 [PATCH] dmaengine: ioat: Make two symbols static Jason Yan
2020-09-12 7:40 ` Ravich, Leonid
@ 2020-09-14 15:36 ` Dave Jiang
1 sibling, 0 replies; 3+ messages in thread
From: Dave Jiang @ 2020-09-14 15:36 UTC (permalink / raw)
To: Jason Yan, dan.j.williams, vkoul, Leonid.Ravich, dmaengine; +Cc: Hulk Robot
On 9/12/2020 12:21 AM, Jason Yan wrote:
> 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>
> ---
> drivers/dma/ioat/dma.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
> index a814b200299b..8cce4e059b7a 100644
> --- 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])");
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-14 15:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12 7:21 [PATCH] dmaengine: ioat: Make two symbols static Jason Yan
2020-09-12 7:40 ` Ravich, Leonid
2020-09-14 15:36 ` Dave Jiang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.