]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: fix an warning reported by PC-Lint
authorXiaofei Tan <tanxiaofei@huawei.com>
Mon, 25 Nov 2019 09:38:45 +0000 (10:38 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 25 Nov 2019 09:41:38 +0000 (10:41 +0100)
This patch fixes the following warning, and no function change:

Warning -- Storage class specified after a type

CC: Xiaofei Tan <tanxiaofei@huawei.com>, <linuxarm@huawei.com>, <shiju.jose@huawei.com>, <jonathan.cameron@huawei.com>
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
non-standard-hisi_hip08.c

index 1774ec7a93bd5b1b3ca57359a5dc3ca1569a7809..5e4b6a0026f35a2b8e11e104d169139e909fd103 100644 (file)
@@ -811,8 +811,7 @@ struct ras_ns_dec_tab hip08_ns_oem_tab[] = {
        { /* sentinel */ }
 };
 
-__attribute__((constructor))
-static void hip08_init(void)
+static void __attribute__((constructor)) hip08_init(void)
 {
        register_ns_dec_tab(hip08_ns_oem_tab);
 }