From: Xiaofei Tan Date: Mon, 25 Nov 2019 09:33:24 +0000 (+0100) Subject: rasdaemon: fix the wrong declaring of 'sruct ras_events' in ras-record.h X-Git-Tag: v0.6.6~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1a3448616b3208883133227243b2a1faef198fa0;p=users%2Fmchehab%2Frasdaemon.git rasdaemon: fix the wrong declaring of 'sruct ras_events' in ras-record.h 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 , , , Signed-off-by: Xiaofei Tan Signed-off-by: Mauro Carvalho Chehab --- diff --git a/ras-record.h b/ras-record.h index 3fbdc5e..cc217a9 100644 --- a/ras-record.h +++ b/ras-record.h @@ -27,7 +27,7 @@ extern long user_hz; -struct ras_events *ras; +struct ras_events; struct ras_mc_event { char timestamp[64];