rasdaemon/rasdaemon-avoid-multiple-definitions.patch
Troy Dawson 1e7246d9b9 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/rasdaemon#ef4142d460388ae22f764ad0f4b8728bf1d256ea
2020-10-20 07:41:57 -07:00

25 lines
638 B
Diff

commit fd982af0a307edc5d3e56011d2e045015b1efd4b
Author: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date: Mon Mar 30 01:22:24 2020 +0200
ras-record.h: define an external var as such
Otherwise, newer versions of gcc will produce multiple symbols,
causing link breakages.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
diff --git a/ras-record.h b/ras-record.h
index 5311c67caf44..0d2a481c23dd 100644
--- a/ras-record.h
+++ b/ras-record.h
@@ -25,7 +25,7 @@
extern long user_hz;
-struct ras_events *ras;
+extern struct ras_events *ras;
struct ras_mc_event {
char timestamp[64];