dmidecode-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dmidecode: Use -DALIGNMENT_WORKAROUND on arm as well


From: Jean Delvare
Subject: dmidecode: Use -DALIGNMENT_WORKAROUND on arm as well
Date: Wed, 22 Mar 2023 09:08:55 +0100

The OBS armv7l build log shows a lot of warnings about casts increasing
the required alignment of target type. This suggests that this
architecture needs to use the slower byte access which is enabled by
-DALIGNMENT_WORKAROUND.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
 config.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- dmidecode.orig/config.h
+++ dmidecode/config.h
@@ -22,7 +22,7 @@
 #endif
 
 /* Use memory alignment workaround or not */
-#ifdef __ia64__
+#if defined(__ia64__) || defined(__arm__)
 #define ALIGNMENT_WORKAROUND
 #endif
 


-- 
Jean Delvare
SUSE L3 Support



reply via email to

[Prev in Thread] Current Thread [Next in Thread]