]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: fix the wrong declaring of 'sruct ras_events' in ras-record.h
authorXiaofei Tan <tanxiaofei@huawei.com>
Mon, 25 Nov 2019 09:33:24 +0000 (10:33 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 25 Nov 2019 09:41:19 +0000 (10:41 +0100)
The following warning can be found by PC-Lint when do static code
analysis to the file non-standard-hisi_hip08.c:

Warning -- Declaration of symbol 'ras' hides symbol 'ras' (line 28, file ras-record.h)

This means that the local variable name 'ras' is same as an global
variable. In fact, there is no global variable named 'ras', but an
wrong declaring in ras-record.h.

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>
ras-record.h

index 3fbdc5e876cc474422cae40dbff817a1c12c3d0d..cc217a9287c2627c7272447c9c11cd1dd47bc432 100644 (file)
@@ -27,7 +27,7 @@
 
 extern long user_hz;
 
-struct ras_events *ras;
+struct ras_events;
 
 struct ras_mc_event {
        char timestamp[64];