* [PATCH -next] thunderbolt: Fix old style declaration warning
@ 2020-07-02 8:07 Wei Yongjun
2020-07-02 11:53 ` Mika Westerberg
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2020-07-02 8:07 UTC (permalink / raw)
To: Wei Yongjun, Andreas Noever, Michael Jamet, Mika Westerberg,
Yehezkel Bernat, Mario Limonciello
Cc: linux-usb
Fix gcc build warning:
drivers/thunderbolt/quirks.c:21:1: warning:
'static' is not at beginning of declaration [-Wold-style-declaration]
21 | const static struct tb_quirk tb_quirks[] = {
| ^~~~~
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/thunderbolt/quirks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thunderbolt/quirks.c b/drivers/thunderbolt/quirks.c
index 0525f59220ae..7eac3e0f90a2 100644
--- a/drivers/thunderbolt/quirks.c
+++ b/drivers/thunderbolt/quirks.c
@@ -18,7 +18,7 @@ struct tb_quirk {
void (*hook)(struct tb_switch *sw);
};
-const static struct tb_quirk tb_quirks[] = {
+static const struct tb_quirk tb_quirks[] = {
/* Dell WD19TB supports self-authentication on unplug */
{ 0x00d4, 0xb070, quirk_force_power_link },
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] thunderbolt: Fix old style declaration warning
2020-07-02 8:07 [PATCH -next] thunderbolt: Fix old style declaration warning Wei Yongjun
@ 2020-07-02 11:53 ` Mika Westerberg
0 siblings, 0 replies; 2+ messages in thread
From: Mika Westerberg @ 2020-07-02 11:53 UTC (permalink / raw)
To: Wei Yongjun
Cc: Andreas Noever, Michael Jamet, Yehezkel Bernat, Mario Limonciello,
linux-usb
On Thu, Jul 02, 2020 at 04:07:50PM +0800, Wei Yongjun wrote:
> Fix gcc build warning:
>
> drivers/thunderbolt/quirks.c:21:1: warning:
> 'static' is not at beginning of declaration [-Wold-style-declaration]
> 21 | const static struct tb_quirk tb_quirks[] = {
> | ^~~~~
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-02 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-02 8:07 [PATCH -next] thunderbolt: Fix old style declaration warning Wei Yongjun
2020-07-02 11:53 ` Mika Westerberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).