Message ID | 1573561634-225173-2-git-send-email-tanxiaofei@huawei.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | rasdaemon: fix some issues reported by static code analysis | expand |
diff --git a/ras-record.h b/ras-record.h index 5311c67..da72557 100644 --- a/ras-record.h +++ b/ras-record.h @@ -25,7 +25,7 @@ extern long user_hz; -struct ras_events *ras; +struct ras_events; struct ras_mc_event { char timestamp[64];
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. Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com> --- ras-record.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)