mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-04 21:05:25 +02:00
xen: fix header guard inconsistencies (gcc15)
Fixing the following header inconsistencies | In file included from arch/arm/platforms/midway.c:22: | ./arch/arm/include/asm/platforms/midway.h:1: error: header guard '__ASM_ARM_PLATFORMS_MIDWAY_H' followed by '#define' of a different macro [-Werror=header-guard] | 1 | #ifndef __ASM_ARM_PLATFORMS_MIDWAY_H | ./arch/arm/include/asm/platforms/midway.h:2: note: '__ASM_ASM_PLATFORMS_MIDWAY_H' is defined here; did you mean '__ASM_ARM_PLATFORMS_MIDWAY_H'? | 2 | #define __ASM_ASM_PLATFORMS_MIDWAY_H | In file included from arch/arm/platforms/omap5.c:21: | ./arch/arm/include/asm/platforms/omap5.h:1: error: header guard '__ASM_ARM_PLATFORMS_OMAP5_H' followed by '#define' of a different macro [-Werror=header-guard] | 1 | #ifndef __ASM_ARM_PLATFORMS_OMAP5_H | ./arch/arm/include/asm/platforms/omap5.h:2: note: '__ASM_ASM_PLATFORMS_OMAP5_H' is defined here; did you mean '__ASM_ARM_PLATFORMS_OMAP5_H'? It is unclear whether this is on purpose or not, but for our limited set of permuations, we change them to match and no issues have been found. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
7cf1201bb5
commit
c1b455c45f
|
@ -0,0 +1,54 @@
|
|||
From 70f96461462a5a0437398022aa71a2033c8c5c3a Mon Sep 17 00:00:00 2001
|
||||
From: Bruce Ashfield <bruce.ashfield@gmail.com>
|
||||
Date: Thu, 15 May 2025 14:26:47 -0400
|
||||
Subject: [PATCH] xen: fix header guard inconsistencies (gcc15)
|
||||
|
||||
Fixing the following header inconsistencies
|
||||
|
||||
| In file included from arch/arm/platforms/midway.c:22:
|
||||
| ./arch/arm/include/asm/platforms/midway.h:1: error: header guard '__ASM_ARM_PLATFORMS_MIDWAY_H' followed by '#define' of a different macro [-Werror=header-guard]
|
||||
| 1 | #ifndef __ASM_ARM_PLATFORMS_MIDWAY_H
|
||||
| ./arch/arm/include/asm/platforms/midway.h:2: note: '__ASM_ASM_PLATFORMS_MIDWAY_H' is defined here; did you mean '__ASM_ARM_PLATFORMS_MIDWAY_H'?
|
||||
| 2 | #define __ASM_ASM_PLATFORMS_MIDWAY_H
|
||||
| In file included from arch/arm/platforms/omap5.c:21:
|
||||
| ./arch/arm/include/asm/platforms/omap5.h:1: error: header guard '__ASM_ARM_PLATFORMS_OMAP5_H' followed by '#define' of a different macro [-Werror=header-guard]
|
||||
| 1 | #ifndef __ASM_ARM_PLATFORMS_OMAP5_H
|
||||
| ./arch/arm/include/asm/platforms/omap5.h:2: note: '__ASM_ASM_PLATFORMS_OMAP5_H' is defined here; did you mean '__ASM_ARM_PLATFORMS_OMAP5_H'?
|
||||
|
||||
It is unclear whether this is on purpose or not, but for our limited
|
||||
set of permuations, we change them to match and no issues have been
|
||||
found.
|
||||
|
||||
Upstream-Status: Pending [the xen folks understand the code and the right fix .. I don't]
|
||||
|
||||
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
||||
---
|
||||
xen/arch/arm/include/asm/platforms/midway.h | 2 +-
|
||||
xen/arch/arm/include/asm/platforms/omap5.h | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/xen/arch/arm/include/asm/platforms/midway.h b/xen/arch/arm/include/asm/platforms/midway.h
|
||||
index 099e4350f9..69143931c2 100644
|
||||
--- a/xen/arch/arm/include/asm/platforms/midway.h
|
||||
+++ b/xen/arch/arm/include/asm/platforms/midway.h
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __ASM_ARM_PLATFORMS_MIDWAY_H
|
||||
-#define __ASM_ASM_PLATFORMS_MIDWAY_H
|
||||
+#define __ASM_ARM_PLATFORMS_MIDWAY_H
|
||||
|
||||
/* addresses of SREG registers for resetting the SoC */
|
||||
#define MW_SREG_PWR_REQ 0xfff3cf00
|
||||
diff --git a/xen/arch/arm/include/asm/platforms/omap5.h b/xen/arch/arm/include/asm/platforms/omap5.h
|
||||
index c559c84b61..8867b4589a 100644
|
||||
--- a/xen/arch/arm/include/asm/platforms/omap5.h
|
||||
+++ b/xen/arch/arm/include/asm/platforms/omap5.h
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef __ASM_ARM_PLATFORMS_OMAP5_H
|
||||
-#define __ASM_ASM_PLATFORMS_OMAP5_H
|
||||
+#define __ASM_ARM_PLATFORMS_OMAP5_H
|
||||
|
||||
#define REALTIME_COUNTER_BASE 0x48243200
|
||||
#define INCREMENTER_NUMERATOR_OFFSET 0x10
|
||||
--
|
||||
2.39.2
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
SRCREV ?= "3ad5d648cda5add395f49fc3704b2552aae734f7"
|
||||
SRCREV ?= "47d911f69eb976785fd17cae4e39de4d55b94b9e"
|
||||
|
||||
XEN_REL ?= "4.20.0"
|
||||
XEN_BRANCH ?= "stable-4.20"
|
||||
|
@ -6,6 +6,7 @@ XEN_BRANCH ?= "stable-4.20"
|
|||
SRC_URI = " \
|
||||
git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
|
||||
file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \
|
||||
file://0001-xen-fix-header-guard-inconsistencies-gcc15.patch \
|
||||
"
|
||||
|
||||
LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9"
|
||||
|
|
Loading…
Reference in New Issue
Block a user