Skip to contentSkip to conversation

kvm-userspace: add ibm archs to unifdef header

PATCH In review Ehrhardt Christian 3 participants 4 messages Nov 3, 2008 – Nov 4, 2008 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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
Acked-by on v1 1/1
#2 lore raw
In reply to Ehrhardt Christian

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.

#4 lore raw
In reply to a message not in the archive
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_S390 is 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