kvm-userspace: add ibm archs to unifdef header
PATCH 1/1 kvm-userspace: add ibm archs to unifdef header
This adds powerpc to the unifdef header avi introduced.
I think s390 should work the same way and is needed as they have libkvm already. Christian/Carsten could you ack that after a quick test if it is working?
---
[diffstat]
unifdef.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
[diff]
kernel/unifdef.h +12 -0
@@ -25,4 +25,16 @@#endif #endif +#ifdef __PPC__ +#ifndef CONFIG_PPC +#define CONFIG_PPC 1#endif +#endif + +#ifdef __s390__ +#ifndef CONFIG_S390 +#define CONFIG_S390 1 +#endif +#endif + +#endif
Quoted 5 lines · Ehrhardt Christian
This adds powerpc to the unifdef header avi introduced.
I think s390 should work the same way and is needed as they have libkvm already. Christian/Carsten could you ack that after a quick test if it is working?
I don't think it's really needed since we don't depend on these symbols in arch-independent headers.
It can't hurt, though, so I don't mind applying it after s390 acks.
Signature · 6 lines
error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Am Montag, 3. November 2008 schrieb Ehrhardt Christian:
kernel/unifdef.h line 40
Quoted 8 lines
kernel/unifdef.h +7
-0+#ifdef __s390__ +#ifndef CONFIG_S390 +#define CONFIG_S390 1 +#endif +#endif + +#endif
It seems that currently no header needs this, but better save than sorry.
__s390__ is defined by gcc for s390 and s390x, CONFIG_S390 is set on s390 and s390x in the kernel config. This looks right.
Quoted 14 lines · Christian Borntraeger
Am Montag, 3. November 2008 schrieb Ehrhardt Christian:
kernel/unifdef.h line 40
Quoted 9 lines
kernel/unifdef.h +7
-0+#ifdef __s390__ +#ifndef CONFIG_S390 +#define CONFIG_S390 1 +#endif +#endif + +#endif It seems that currently no header needs this, but better save than sorry.
Quoted 2 lines
__s390__is defined by gcc for s390 and s390x,CONFIG_S390is set on s390 and s390x in the kernel config. This looks right.
Okay, applied. Thanks.
Signature · 6 lines
error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html