Skip to contentSkip to conversation

unmodified_drivers: remove inclusion of asm/system.h

PATCH In review Olaf Hering 3 participants 4 messages May 11, 2012 – May 14, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unmodified_drivers: remove inclusion of asm/system.h

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1336743357 -7200
# Node ID f81fa4014d8c66bd1a80e4914c5d777cbdb343d1 # Parent 0f53540494f779a1260d4e5319dcdb268389dd07
unmodified_drivers: remove inclusion of asm/system.h

Allow compilation of PVonHVM drivers with forward-ported xenlinux sources in openSuSE 12.2. Since Linux 3.4 asm/system.h is not present anymore. Remove inclusion of this header, its not needed.

unmodified_drivers/linux-2.6/platform-pci/platform-pci.c +0 -1
diff -r 0f53540494f7 -r f81fa4014d8c unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
@@ -30,7 +30,6 @@
 #include <linux/interrupt.h>
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
-#include <asm/system.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/uaccess.h>
#1 lore raw
Quoted 10 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1336743357 -7200
# Node ID f81fa4014d8c66bd1a80e4914c5d777cbdb343d1 # Parent 0f53540494f779a1260d4e5319dcdb268389dd07
unmodified_drivers: remove inclusion of asm/system.h

Allow compilation of PVonHVM drivers with forward-ported xenlinux sources in openSuSE 12.2. Since Linux 3.4 asm/system.h is not present anymore. Remove inclusion of this header, its not needed.

It is not needed for 3.4 or it is not needed for any historical Linux version which these drivers are supposed to be built against? What kernels have you build tested?

Ian.

Quoted 18 lines

diff -r 0f53540494f7 -r f81fa4014d8c unmodified_drivers/linux-2.6/platform-pci/platform-pci.c

unmodified_drivers/linux-2.6/platform-pci/platform-pci.c +0 -1
@@ -30,7 +30,6 @@
 #include <linux/interrupt.h>
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
-#include <asm/system.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/uaccess.h>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 8 lines · Ian Campbell
Quoted 7 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1336743357 -7200
# Node ID f81fa4014d8c66bd1a80e4914c5d777cbdb343d1 # Parent 0f53540494f779a1260d4e5319dcdb268389dd07
unmodified_drivers: remove inclusion of asm/system.h

Quoted 7 lines
Quoted 3 lines

Allow compilation of PVonHVM drivers with forward-ported xenlinux sources in openSuSE 12.2. Since Linux 3.4 asm/system.h is not present anymore. Remove inclusion of this header, its not needed.

It is not needed for 3.4 or it is not needed for any historical Linux version which these drivers are supposed to be built against? What kernels have you build tested?

asm/system.h does not need to be included.
I tested it with sles11sp1+2, opensuse 11.2, 11.4, 12.1 and 12.2. I have not tested it with a plain linux-2.6.18-xen.hg, but I suspect it should work there too.

Olaf

#3 lore raw
Quoted 15 lines
Quoted 1 line
Quoted 1 line · Olaf Hering
Quoted 12 lines · Ian Campbell
Quoted 10 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1336743357 -7200
# Node ID f81fa4014d8c66bd1a80e4914c5d777cbdb343d1 # Parent 0f53540494f779a1260d4e5319dcdb268389dd07
unmodified_drivers: remove inclusion of asm/system.h

Allow compilation of PVonHVM drivers with forward-ported xenlinux sources in openSuSE 12.2. Since Linux 3.4 asm/system.h is not present anymore. Remove inclusion of this header, its not needed.

Quoted 8 lines
Quoted 3 lines

It is not needed for 3.4 or it is not needed for any historical Linux version which these drivers are supposed to be built against? What kernels have you build tested?

asm/system.h does not need to be included.
I tested it with sles11sp1+2, opensuse 11.2, 11.4, 12.1 and 12.2. I have not tested it with a plain linux-2.6.18-xen.hg, but I suspect it should work there too.

I did before pushing it, and it's okay there too.

Jan