* [PATCH] i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static
@ 2023-04-29 13:46 Tom Rix
2023-04-30 2:48 ` Jeremy Kerr
2023-04-30 21:51 ` Alexandre Belloni
0 siblings, 2 replies; 3+ messages in thread
From: Tom Rix @ 2023-04-29 13:46 UTC (permalink / raw)
To: jk, alexandre.belloni; +Cc: linux-i3c, linux-kernel, Tom Rix
smatch reports
drivers/i3c/master/ast2600-i3c-master.c:121:34: warning: symbol
'ast2600_i3c_ops' was not declared. Should it be static?
This variable is only used in its defining file, so it should be static.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/i3c/master/ast2600-i3c-master.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i3c/master/ast2600-i3c-master.c b/drivers/i3c/master/ast2600-i3c-master.c
index b72c12c5168f..09ed19d489e9 100644
--- a/drivers/i3c/master/ast2600-i3c-master.c
+++ b/drivers/i3c/master/ast2600-i3c-master.c
@@ -118,7 +118,7 @@ static void ast2600_i3c_set_dat_ibi(struct dw_i3c_master *i3c,
}
}
-const struct dw_i3c_platform_ops ast2600_i3c_ops = {
+static const struct dw_i3c_platform_ops ast2600_i3c_ops = {
.init = ast2600_i3c_init,
.set_dat_ibi = ast2600_i3c_set_dat_ibi,
};
--
2.27.0
--
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static
2023-04-29 13:46 [PATCH] i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static Tom Rix
@ 2023-04-30 2:48 ` Jeremy Kerr
2023-04-30 21:51 ` Alexandre Belloni
1 sibling, 0 replies; 3+ messages in thread
From: Jeremy Kerr @ 2023-04-30 2:48 UTC (permalink / raw)
To: Tom Rix, alexandre.belloni; +Cc: linux-i3c, linux-kernel
Hi Tom,
> smatch reports
> drivers/i3c/master/ast2600-i3c-master.c:121:34: warning: symbol
> 'ast2600_i3c_ops' was not declared. Should it be static?
>
> This variable is only used in its defining file, so it should be
> static.
Super, thanks!
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
Cheers,
Jeremy
--
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static
2023-04-29 13:46 [PATCH] i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static Tom Rix
2023-04-30 2:48 ` Jeremy Kerr
@ 2023-04-30 21:51 ` Alexandre Belloni
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Belloni @ 2023-04-30 21:51 UTC (permalink / raw)
To: jk, Tom Rix; +Cc: linux-i3c, linux-kernel
On Sat, 29 Apr 2023 09:46:01 -0400, Tom Rix wrote:
> smatch reports
> drivers/i3c/master/ast2600-i3c-master.c:121:34: warning: symbol
> 'ast2600_i3c_ops' was not declared. Should it be static?
>
> This variable is only used in its defining file, so it should be static.
>
>
> [...]
Applied, thanks!
[1/1] i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static
commit: 6b496a94c5905fca7879bc0dc438a47de40b7d4f
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
--
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-01 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-29 13:46 [PATCH] i3c: ast2600: set variable ast2600_i3c_ops storage-class-specifier to static Tom Rix
2023-04-30 2:48 ` Jeremy Kerr
2023-04-30 21:51 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox