]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
thunderbolt: Fix old style declaration warning
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 2 Jul 2020 08:07:50 +0000 (16:07 +0800)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 2 Jul 2020 11:50:11 +0000 (14:50 +0300)
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>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/quirks.c

index 0525f59220ae8cdedddc341b5391d5d9b6a943d0..7eac3e0f90a2ded4adb07563aefad346608a686e 100644 (file)
@@ -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 },
 };