package/freeipmi: fix gcc 14.x issues

Directly from upstream stable git repository, fixes for gcc 14.x
issues. Only the changelog entries, which do not apply, where removed.

Fixes:

 http://autobuild.buildroot.org/results/b33/b33e72b3348427f2f772e5c29dd3753958597058

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Waldemar Brodkorb
2024-08-27 06:31:09 +02:00
committed by Thomas Petazzoni
parent 345c94ad4e
commit 23b6c3f58c
3 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
From 9239a686e4bfd862145f4654017112a0f8cbbb0d Mon Sep 17 00:00:00 2001
From: Albert Chu <chu11@llnl.gov>
Date: Fri, 22 Mar 2024 21:07:28 -0700
Subject: [PATCH] libfreeipmi/sel/ipmi-sel-string-supermicro-common.h: Add
missing function prototype.
Signed-off-by: Albert Chu <chu11@llnl.gov>
[Waldemar: removed Changelog patching]
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: http://git.savannah.gnu.org/cgit/freeipmi.git/commit/?h=freeipmi-1-6-0-stable&id=9239a686e4bfd862145f4654017112a0f8cbbb0d
---
libfreeipmi/sel/ipmi-sel-string-supermicro-common.h | 10 ++++++++++
1 files changed, 15 insertions(+)
diff --git a/libfreeipmi/sel/ipmi-sel-string-supermicro-common.h b/libfreeipmi/sel/ipmi-sel-string-supermicro-common.h
index 5785f2b64..be5e41d7d 100644
--- a/libfreeipmi/sel/ipmi-sel-string-supermicro-common.h
+++ b/libfreeipmi/sel/ipmi-sel-string-supermicro-common.h
@@ -39,4 +39,14 @@ int sel_string_output_supermicro_overheat_event_data1_class_oem (ipmi_sel_ctx_t
unsigned int *wlen,
struct ipmi_sel_system_event_record_data *system_event_record_data);
+int sel_string_output_supermicro_dimm_event_data2_event_data3 (ipmi_sel_ctx_t ctx,
+ struct ipmi_sel_entry *sel_entry,
+ uint8_t sel_record_type,
+ char *buf,
+ unsigned int buflen,
+ unsigned int flags,
+ unsigned int *wlen,
+ struct ipmi_sel_system_event_record_data *system_event_record_data,
+ int *oem_rv);
+
#endif /* IPMI_SEL_STRING_SUPERMICRO_COMMON_H */
--
2.30.2

View File

@@ -0,0 +1,57 @@
From c3d1a3f5c550940577076ce2c4595b470ae963c3 Mon Sep 17 00:00:00 2001
From: Albert Chu <chu11@llnl.gov>
Date: Sun, 24 Mar 2024 13:11:55 -0700
Subject: [PATCH] ipmi-sensors: fix header guard definitions
Signed-off-by: Albert Chu <chu11@llnl.gov>
[Waldemar: removed Changelog patching]
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: https://git.savannah.gnu.org/cgit/freeipmi.git/commit/?h=freeipmi-1-6-0-stable&id=c3d1a3f5c550940577076ce2c4595b470ae963c3
---
ipmi-sensors/ipmi-sensors-oem-intel-s2600jf.h | 2 +-
ipmi-sensors/ipmi-sensors-oem-intel-s2600wp.h | 2 +-
ipmi-sensors/ipmi-sensors-oem-intel-s5500wb.h | 2 +-
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ipmi-sensors/ipmi-sensors-oem-intel-s2600jf.h b/ipmi-sensors/ipmi-sensors-oem-intel-s2600jf.h
index 0b11e61ce..4ae808cda 100644
--- a/ipmi-sensors/ipmi-sensors-oem-intel-s2600jf.h
+++ b/ipmi-sensors/ipmi-sensors-oem-intel-s2600jf.h
@@ -17,7 +17,7 @@
*/
#ifndef IPMI_SENSORS_OEM_INTEL_S2600JF_H
-#define IPMI_SENSORS_OEM_INTEL_H
+#define IPMI_SENSORS_OEM_INTEL_S2600JF_H
#include "ipmi-sensors.h"
diff --git a/ipmi-sensors/ipmi-sensors-oem-intel-s2600wp.h b/ipmi-sensors/ipmi-sensors-oem-intel-s2600wp.h
index 0607b125d..5c6410b7b 100644
--- a/ipmi-sensors/ipmi-sensors-oem-intel-s2600wp.h
+++ b/ipmi-sensors/ipmi-sensors-oem-intel-s2600wp.h
@@ -17,7 +17,7 @@
*/
#ifndef IPMI_SENSORS_OEM_INTEL_S2600WP_H
-#define IPMI_SENSORS_OEM_INTEL_H
+#define IPMI_SENSORS_OEM_INTEL_S2600WP_H
#include "ipmi-sensors.h"
diff --git a/ipmi-sensors/ipmi-sensors-oem-intel-s5500wb.h b/ipmi-sensors/ipmi-sensors-oem-intel-s5500wb.h
index f4f3dc85b..204295bd8 100644
--- a/ipmi-sensors/ipmi-sensors-oem-intel-s5500wb.h
+++ b/ipmi-sensors/ipmi-sensors-oem-intel-s5500wb.h
@@ -17,7 +17,7 @@
*/
#ifndef IPMI_SENSORS_OEM_INTEL_S5500WB_H
-#define IPMI_SENSORS_OEM_INTEL_H
+#define IPMI_SENSORS_OEM_INTEL_S5500WB_H
#include "ipmi-sensors.h"
--
2.39.2

View File

@@ -0,0 +1,28 @@
From 6ac6f816dbfc83d8cd4f4f163b0f8ff1062d883e Mon Sep 17 00:00:00 2001
From: Albert Chu <chu11@llnl.gov>
Date: Mon, 25 Mar 2024 13:57:45 -0700
Subject: [PATCH] ipmi-sensors: add missing include
Signed-off-by: Albert Chu <chu11@llnl.gov>
[Waldemar: removed Changelog patching]
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: https://git.savannah.gnu.org/cgit/freeipmi.git/commit/?h=freeipmi-1-6-0-stable&id=6ac6f816dbfc83d8cd4f4f163b0f8ff1062d883e
---
ipmi-sensors/ipmi-sensors-oem-intel.c | 1 +
1 files changed, 1 insertions(+)
diff --git a/ipmi-sensors/ipmi-sensors-oem-intel.c b/ipmi-sensors/ipmi-sensors-oem-intel.c
index 5e0f3733a..3fc022e3d 100644
--- a/ipmi-sensors/ipmi-sensors-oem-intel.c
+++ b/ipmi-sensors/ipmi-sensors-oem-intel.c
@@ -34,6 +34,7 @@
#include "ipmi-sensors-oem-intel.h"
#include "ipmi-sensors-oem-intel-s5500wb.h"
#include "ipmi-sensors-oem-intel-s2600jf.h"
+#include "ipmi-sensors-oem-intel-s2600wp.h"
#include "ipmi-sensors-oem-intel-quanta-qssc-s4r.h"
#include "ipmi-sensors-oem-intel-node-manager.h"
--
2.39.2