From: Wei Yongjun Date: Thu, 2 Jul 2020 08:07:50 +0000 (+0800) Subject: thunderbolt: Fix old style declaration warning X-Git-Tag: v5.9-rc1~142^2~65^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef7e12078ab832c72315adcfa05e7a9498a5e109;p=thirdparty%2Fkernel%2Flinux.git thunderbolt: Fix old style declaration warning 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 Signed-off-by: Wei Yongjun Signed-off-by: Mika Westerberg --- diff --git a/drivers/thunderbolt/quirks.c b/drivers/thunderbolt/quirks.c index 0525f59220ae8..7eac3e0f90a2d 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 }, };