Skip to contentSkip to conversation

x86: remove vmalloc.h from asm/io.h

RFC PATCH In review Stephen Rothwell 4 participants 13 messages May 29, 2015 – Jun 2, 2015

Subsystems (15)
Networking Network drivers x86 SCSI +11 more subsystems
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 x86: remove vmalloc.h from asm/io.h

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Boris Ostrovsky <[email protected]>
Cc David Vrabel <[email protected]>
Cc Anton Vorontsov <[email protected]>
Cc Colin Cross <[email protected]>
Cc Kees Cook <[email protected]>
Cc Tony Luck <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Len Brown <[email protected]>
Cc Kristen Carlson Accardi <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Vinod Koul <[email protected]>
Cc "K. Y. Srinivasan" <[email protected]>
Cc Haiyang Zhang <[email protected]>
Cc Hiral Patel <[email protected]>
Cc Suma Ramars <[email protected]>
Cc Brian Uchino <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Andrew Morton <[email protected]>

---

Based in Linus' tree of today.

There are probably more places that need vmalloc.h included, but this passes 64 bit and 32 bit allmodconfig builds, so is a place to start.

Dave Miller suggested that I start this journey.

 arch/x86/include/asm/io.h          | 2 --
 arch/x86/kernel/crash.c            | 1 +
 arch/x86/kernel/machine_kexec_64.c | 1 +
 arch/x86/mm/pageattr-test.c        | 1 +
 arch/x86/mm/pageattr.c             | 1 +
 arch/x86/xen/p2m.c                 | 1 +
 drivers/acpi/apei/erst.c           | 1 +
 drivers/cpufreq/intel_pstate.c     | 1 +
 drivers/dma/mic_x100_dma.c         | 1 +
 drivers/net/hyperv/netvsc.c        | 1 +
 drivers/net/hyperv/rndis_filter.c  | 1 +
 drivers/scsi/fnic/fnic_debugfs.c   | 1 +
 drivers/scsi/fnic/fnic_trace.c     | 1 +
 sound/pci/asihpi/hpioctl.c         | 1 +
 14 files changed, 13 insertions(+), 2 deletions(-)
arch/x86/include/asm/io.h +0 -2
index 34a5b93704d3..5791e7ace9db 100644
@@ -197,8 +197,6 @@ extern void set_iounmap_nonlazy(void);
 
 #include <asm-generic/iomap.h>
 
-#include <linux/vmalloc.h>
-
 /*
  * Convert a virtual cached pointer to an uncached pointer
  */
arch/x86/kernel/crash.c +1 -0
index c76d3e37c6e1..e068d6683dba 100644
@@ -22,6 +22,7 @@
 #include <linux/elfcore.h>
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/vmalloc.h>
 
 #include <asm/processor.h>
 #include <asm/hardirq.h>
arch/x86/kernel/machine_kexec_64.c +1 -0
index 415480d3ea84..11546b462fa6 100644
@@ -17,6 +17,7 @@
 #include <linux/ftrace.h>
 #include <linux/io.h>
 #include <linux/suspend.h>
+#include <linux/vmalloc.h>
 
 #include <asm/init.h>
 #include <asm/pgtable.h>
arch/x86/mm/pageattr-test.c +1 -0
index 6629f397b467..8ff686aa7e8c 100644
@@ -9,6 +9,7 @@
 #include <linux/random.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
+#include <linux/vmalloc.h>
 
 #include <asm/cacheflush.h>
 #include <asm/pgtable.h>
arch/x86/mm/pageattr.c +1 -0
index 89af288ec674..bedfc794b4ba 100644
@@ -14,6 +14,7 @@
 #include <linux/percpu.h>
 #include <linux/gfp.h>
 #include <linux/pci.h>
+#include <linux/vmalloc.h>
 
 #include <asm/e820.h>
 #include <asm/processor.h>
arch/x86/xen/p2m.c +1 -0
index b47124d4cd67..8b7f18e200aa 100644
@@ -67,6 +67,7 @@
 #include <linux/seq_file.h>
 #include <linux/bootmem.h>
 #include <linux/slab.h>
+#include <linux/vmalloc.h>
 
 #include <asm/cache.h>
 #include <asm/setup.h>
drivers/acpi/apei/erst.c +1 -0
index ed65e9c4b5b0..3670bbab57a3 100644
@@ -35,6 +35,7 @@
 #include <linux/nmi.h>
 #include <linux/hardirq.h>
 #include <linux/pstore.h>
+#include <linux/vmalloc.h>
 #include <acpi/apei.h>
 
 #include "apei-internal.h"
drivers/cpufreq/intel_pstate.c +1 -0
index 6414661ac1c4..2ba53f4f6af2 100644
@@ -26,6 +26,7 @@
 #include <linux/fs.h>
 #include <linux/debugfs.h>
 #include <linux/acpi.h>
+#include <linux/vmalloc.h>
 #include <trace/events/power.h>
 
 #include <asm/div64.h>
drivers/dma/mic_x100_dma.c +1 -0
index 6de2e677be04..74d9db05a5ad 100644
@@ -22,6 +22,7 @@
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/seq_file.h>
+#include <linux/vmalloc.h>
 
 #include "mic_x100_dma.h"
 
drivers/net/hyperv/netvsc.c +1 -0
index ea091bc5ff09..1e09243d5449 100644
@@ -28,6 +28,7 @@
 #include <linux/slab.h>
 #include <linux/netdevice.h>
 #include <linux/if_ether.h>
+#include <linux/vmalloc.h>
 #include <asm/sync_bitops.h>
 
 #include "hyperv_net.h"
drivers/net/hyperv/rndis_filter.c +1 -0
index 9118cea91882..35a482d526d9 100644
@@ -27,6 +27,7 @@
 #include <linux/netdevice.h>
 #include <linux/if_vlan.h>
 #include <linux/nls.h>
+#include <linux/vmalloc.h>
 
 #include "hyperv_net.h"
 
drivers/scsi/fnic/fnic_debugfs.c +1 -0
index 5980c10c734d..d6498fabe628 100644
@@ -18,6 +18,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/debugfs.h>
+#include <linux/vmalloc.h>
 #include "fnic.h"
 
 static struct dentry *fnic_trace_debugfs_root;
drivers/scsi/fnic/fnic_trace.c +1 -0
index 65a9bde26974..4e15c4bf0795 100644
@@ -21,6 +21,7 @@
 #include <linux/spinlock.h>
 #include <linux/kallsyms.h>
 #include <linux/time.h>
+#include <linux/vmalloc.h>
 #include "fnic_io.h"
 #include "fnic.h"
 
sound/pci/asihpi/hpioctl.c +1 -0
index 6610bd096fc9..d17937b92331 100644
@@ -32,6 +32,7 @@
 #include <linux/pci.h>
 #include <linux/stringify.h>
 #include <linux/module.h>
+#include <linux/vmalloc.h>
 
 #ifdef MODULE_FIRMWARE
 MODULE_FIRMWARE("asihpi/dsp5000.bin");
Signature · 5 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Stephen Rothwell

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

Good idea.

Quoted 4 lines

Based in Linus' tree of today.

There are probably more places that need vmalloc.h included, but this passes 64 bit and 32 bit allmodconfig builds, so is a place to start.

Please also test x86 allnoconfig and defconfig 32/64, that tends to unearth the remaining places. People doing randconfig testing will find the rest.

Thanks,

Ingo

Acked-by on v1 1/1
#4 lore raw
In reply to Stephen Rothwell
Quoted 7 lines · Stephen Rothwell

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

Good idea.

Quoted 4 lines

Based in Linus' tree of today.

There are probably more places that need vmalloc.h included, but this passes 64 bit and 32 bit allmodconfig builds, so is a place to start.

Please also test x86 allnoconfig and defconfig 32/64, that tends to unearth the remaining places. People doing randconfig testing will find the rest.

Thanks,

Ingo

#2 lore raw
In reply to Ingo Molnar

Hi Ingo,

Quoted 4 lines · On Fri, 29 May 2015 11:21:05 +0200 Ingo Molnar <[email protected]> wrote:

Good idea.

Thanks.

Quoted 2 lines

Please also test x86 allnoconfig and defconfig 32/64, that tends to unearth the remaining places. People doing randconfig testing will find the rest.

Good idea. the allnoconfigs produced this further patch. I will squash it into the original. The defconfigs built ok.

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 22:01:41 +1000
Subject: [PATCH] x86: more fixes for removing vmalloc.h fron asm/io.h

---
 arch/x86/include/asm/io.h | 1 +
 include/linux/io.h        | 1 +
 2 files changed, 2 insertions(+)
arch/x86/include/asm/io.h +1 -0
index 5791e7ace9db..2a3543a4db1d 100644
@@ -40,6 +40,7 @@
 #include <linux/compiler.h>
 #include <asm/page.h>
 #include <asm/early_ioremap.h>
+#include <asm/pgtable_types.h>
 
 #define build_mmio_read(name, size, type, reg, barrier) \
 static inline type name(const volatile void __iomem *addr) \
include/linux/io.h +1 -0
index 986f2bffea1e..cb753a2450b8 100644
@@ -19,6 +19,7 @@
 #define _LINUX_IO_H
 
 #include <linux/types.h>
+#include <linux/init.h>
 #include <asm/io.h>
 #include <asm/page.h>
 
Signature · 5 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
#3 lore raw
In reply to Ingo Molnar

Hi Ingo,

Quoted 4 lines · On Fri, 29 May 2015 11:21:05 +0200 Ingo Molnar <[email protected]> wrote:

Good idea.

Thanks.

Quoted 2 lines

Please also test x86 allnoconfig and defconfig 32/64, that tends to unearth the remaining places. People doing randconfig testing will find the rest.

Good idea. the allnoconfigs produced this further patch. I will squash it into the original. The defconfigs built ok.

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 22:01:41 +1000
Subject: [PATCH] x86: more fixes for removing vmalloc.h fron asm/io.h

---
 arch/x86/include/asm/io.h | 1 +
 include/linux/io.h        | 1 +
 2 files changed, 2 insertions(+)
arch/x86/include/asm/io.h +1 -0
index 5791e7ace9db..2a3543a4db1d 100644
@@ -40,6 +40,7 @@
 #include <linux/compiler.h>
 #include <asm/page.h>
 #include <asm/early_ioremap.h>
+#include <asm/pgtable_types.h>
 
 #define build_mmio_read(name, size, type, reg, barrier) \
 static inline type name(const volatile void __iomem *addr) \
include/linux/io.h +1 -0
index 986f2bffea1e..cb753a2450b8 100644
@@ -19,6 +19,7 @@
 #define _LINUX_IO_H
 
 #include <linux/types.h>
+#include <linux/init.h>
 #include <asm/io.h>
 #include <asm/page.h>
 
Signature · 5 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]

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

Acked-by on v1 1/1
#5 lore raw
In reply to Stephen Rothwell

At Fri, 29 May 2015 19:18:47 +1000,

Quoted 25 lines · Stephen Rothwell

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Boris Ostrovsky <[email protected]>
Cc David Vrabel <[email protected]>
Cc Anton Vorontsov <[email protected]>
Cc Colin Cross <[email protected]>
Cc Kees Cook <[email protected]>
Cc Tony Luck <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Len Brown <[email protected]>
Cc Kristen Carlson Accardi <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Vinod Koul <[email protected]>
Quoted 8 lines
Cc "K. Y. Srinivasan" <[email protected]>
Cc Haiyang Zhang <[email protected]>
Cc Hiral Patel <[email protected]>
Cc Suma Ramars <[email protected]>
Cc Brian Uchino <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>

For the sound bits,

thanks,

Takashi

Quoted 206 lines

---

Based in Linus' tree of today.

There are probably more places that need vmalloc.h included, but this passes 64 bit and 32 bit allmodconfig builds, so is a place to start.

Dave Miller suggested that I start this journey.

 arch/x86/include/asm/io.h          | 2 --
 arch/x86/kernel/crash.c            | 1 +
 arch/x86/kernel/machine_kexec_64.c | 1 +
 arch/x86/mm/pageattr-test.c        | 1 +
 arch/x86/mm/pageattr.c             | 1 +
 arch/x86/xen/p2m.c                 | 1 +
 drivers/acpi/apei/erst.c           | 1 +
 drivers/cpufreq/intel_pstate.c     | 1 +
 drivers/dma/mic_x100_dma.c         | 1 +
 drivers/net/hyperv/netvsc.c        | 1 +
 drivers/net/hyperv/rndis_filter.c  | 1 +
 drivers/scsi/fnic/fnic_debugfs.c   | 1 +
 drivers/scsi/fnic/fnic_trace.c     | 1 +
 sound/pci/asihpi/hpioctl.c         | 1 +
 14 files changed, 13 insertions(+), 2 deletions(-)
arch/x86/include/asm/io.h +0 -2
index 34a5b93704d3..5791e7ace9db 100644
@@ -197,8 +197,6 @@ extern void set_iounmap_nonlazy(void);
 
 #include <asm-generic/iomap.h>
 
-#include <linux/vmalloc.h>
-
 /*
  * Convert a virtual cached pointer to an uncached pointer
  */
arch/x86/kernel/crash.c +1 -0
index c76d3e37c6e1..e068d6683dba 100644
@@ -22,6 +22,7 @@
 #include <linux/elfcore.h>
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/vmalloc.h>
 
 #include <asm/processor.h>
 #include <asm/hardirq.h>
arch/x86/kernel/machine_kexec_64.c +1 -0
index 415480d3ea84..11546b462fa6 100644
@@ -17,6 +17,7 @@
 #include <linux/ftrace.h>
 #include <linux/io.h>
 #include <linux/suspend.h>
+#include <linux/vmalloc.h>
 
 #include <asm/init.h>
 #include <asm/pgtable.h>
arch/x86/mm/pageattr-test.c +1 -0
index 6629f397b467..8ff686aa7e8c 100644
@@ -9,6 +9,7 @@
 #include <linux/random.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
+#include <linux/vmalloc.h>
 
 #include <asm/cacheflush.h>
 #include <asm/pgtable.h>
arch/x86/mm/pageattr.c +1 -0
index 89af288ec674..bedfc794b4ba 100644
@@ -14,6 +14,7 @@
 #include <linux/percpu.h>
 #include <linux/gfp.h>
 #include <linux/pci.h>
+#include <linux/vmalloc.h>
 
 #include <asm/e820.h>
 #include <asm/processor.h>
arch/x86/xen/p2m.c +1 -0
index b47124d4cd67..8b7f18e200aa 100644
@@ -67,6 +67,7 @@
 #include <linux/seq_file.h>
 #include <linux/bootmem.h>
 #include <linux/slab.h>
+#include <linux/vmalloc.h>
 
 #include <asm/cache.h>
 #include <asm/setup.h>
drivers/acpi/apei/erst.c +1 -0
index ed65e9c4b5b0..3670bbab57a3 100644
@@ -35,6 +35,7 @@
 #include <linux/nmi.h>
 #include <linux/hardirq.h>
 #include <linux/pstore.h>
+#include <linux/vmalloc.h>
 #include <acpi/apei.h>
 
 #include "apei-internal.h"
drivers/cpufreq/intel_pstate.c +1 -0
index 6414661ac1c4..2ba53f4f6af2 100644
@@ -26,6 +26,7 @@
 #include <linux/fs.h>
 #include <linux/debugfs.h>
 #include <linux/acpi.h>
+#include <linux/vmalloc.h>
 #include <trace/events/power.h>
 
 #include <asm/div64.h>
drivers/dma/mic_x100_dma.c +1 -0
index 6de2e677be04..74d9db05a5ad 100644
@@ -22,6 +22,7 @@
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/seq_file.h>
+#include <linux/vmalloc.h>
 
 #include "mic_x100_dma.h"
 
drivers/net/hyperv/netvsc.c +1 -0
index ea091bc5ff09..1e09243d5449 100644
@@ -28,6 +28,7 @@
 #include <linux/slab.h>
 #include <linux/netdevice.h>
 #include <linux/if_ether.h>
+#include <linux/vmalloc.h>
 #include <asm/sync_bitops.h>
 
 #include "hyperv_net.h"
drivers/net/hyperv/rndis_filter.c +1 -0
index 9118cea91882..35a482d526d9 100644
@@ -27,6 +27,7 @@
 #include <linux/netdevice.h>
 #include <linux/if_vlan.h>
 #include <linux/nls.h>
+#include <linux/vmalloc.h>
 
 #include "hyperv_net.h"
 
drivers/scsi/fnic/fnic_debugfs.c +1 -0
index 5980c10c734d..d6498fabe628 100644
@@ -18,6 +18,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/debugfs.h>
+#include <linux/vmalloc.h>
 #include "fnic.h"
 
 static struct dentry *fnic_trace_debugfs_root;
drivers/scsi/fnic/fnic_trace.c +1 -0
index 65a9bde26974..4e15c4bf0795 100644
@@ -21,6 +21,7 @@
 #include <linux/spinlock.h>
 #include <linux/kallsyms.h>
 #include <linux/time.h>
+#include <linux/vmalloc.h>
 #include "fnic_io.h"
 #include "fnic.h"
 
sound/pci/asihpi/hpioctl.c +1 -0
index 6610bd096fc9..d17937b92331 100644
@@ -32,6 +32,7 @@
 #include <linux/pci.h>
 #include <linux/stringify.h>
 #include <linux/module.h>
+#include <linux/vmalloc.h>
 
 #ifdef MODULE_FIRMWARE
 MODULE_FIRMWARE("asihpi/dsp5000.bin");
Signature · 6 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
[2 OpenPGP digital signature <application/pgp-signature (7bit)>]
Acked-by on v1 1/1
#8 lore raw
In reply to Stephen Rothwell

At Fri, 29 May 2015 19:18:47 +1000,

Quoted 25 lines · Stephen Rothwell

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Boris Ostrovsky <[email protected]>
Cc David Vrabel <[email protected]>
Cc Anton Vorontsov <[email protected]>
Cc Colin Cross <[email protected]>
Cc Kees Cook <[email protected]>
Cc Tony Luck <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Len Brown <[email protected]>
Cc Kristen Carlson Accardi <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Vinod Koul <[email protected]>
Quoted 8 lines
Cc "K. Y. Srinivasan" <[email protected]>
Cc Haiyang Zhang <[email protected]>
Cc Hiral Patel <[email protected]>
Cc Suma Ramars <[email protected]>
Cc Brian Uchino <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>

For the sound bits,

thanks,

Takashi

Quoted 206 lines

---

Based in Linus' tree of today.

There are probably more places that need vmalloc.h included, but this passes 64 bit and 32 bit allmodconfig builds, so is a place to start.

Dave Miller suggested that I start this journey.

 arch/x86/include/asm/io.h          | 2 --
 arch/x86/kernel/crash.c            | 1 +
 arch/x86/kernel/machine_kexec_64.c | 1 +
 arch/x86/mm/pageattr-test.c        | 1 +
 arch/x86/mm/pageattr.c             | 1 +
 arch/x86/xen/p2m.c                 | 1 +
 drivers/acpi/apei/erst.c           | 1 +
 drivers/cpufreq/intel_pstate.c     | 1 +
 drivers/dma/mic_x100_dma.c         | 1 +
 drivers/net/hyperv/netvsc.c        | 1 +
 drivers/net/hyperv/rndis_filter.c  | 1 +
 drivers/scsi/fnic/fnic_debugfs.c   | 1 +
 drivers/scsi/fnic/fnic_trace.c     | 1 +
 sound/pci/asihpi/hpioctl.c         | 1 +
 14 files changed, 13 insertions(+), 2 deletions(-)
arch/x86/include/asm/io.h +0 -2
index 34a5b93704d3..5791e7ace9db 100644
@@ -197,8 +197,6 @@ extern void set_iounmap_nonlazy(void);
 
 #include <asm-generic/iomap.h>
 
-#include <linux/vmalloc.h>
-
 /*
  * Convert a virtual cached pointer to an uncached pointer
  */
arch/x86/kernel/crash.c +1 -0
index c76d3e37c6e1..e068d6683dba 100644
@@ -22,6 +22,7 @@
 #include <linux/elfcore.h>
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/vmalloc.h>
 
 #include <asm/processor.h>
 #include <asm/hardirq.h>
arch/x86/kernel/machine_kexec_64.c +1 -0
index 415480d3ea84..11546b462fa6 100644
@@ -17,6 +17,7 @@
 #include <linux/ftrace.h>
 #include <linux/io.h>
 #include <linux/suspend.h>
+#include <linux/vmalloc.h>
 
 #include <asm/init.h>
 #include <asm/pgtable.h>
arch/x86/mm/pageattr-test.c +1 -0
index 6629f397b467..8ff686aa7e8c 100644
@@ -9,6 +9,7 @@
 #include <linux/random.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
+#include <linux/vmalloc.h>
 
 #include <asm/cacheflush.h>
 #include <asm/pgtable.h>
arch/x86/mm/pageattr.c +1 -0
index 89af288ec674..bedfc794b4ba 100644
@@ -14,6 +14,7 @@
 #include <linux/percpu.h>
 #include <linux/gfp.h>
 #include <linux/pci.h>
+#include <linux/vmalloc.h>
 
 #include <asm/e820.h>
 #include <asm/processor.h>
arch/x86/xen/p2m.c +1 -0
index b47124d4cd67..8b7f18e200aa 100644
@@ -67,6 +67,7 @@
 #include <linux/seq_file.h>
 #include <linux/bootmem.h>
 #include <linux/slab.h>
+#include <linux/vmalloc.h>
 
 #include <asm/cache.h>
 #include <asm/setup.h>
drivers/acpi/apei/erst.c +1 -0
index ed65e9c4b5b0..3670bbab57a3 100644
@@ -35,6 +35,7 @@
 #include <linux/nmi.h>
 #include <linux/hardirq.h>
 #include <linux/pstore.h>
+#include <linux/vmalloc.h>
 #include <acpi/apei.h>
 
 #include "apei-internal.h"
drivers/cpufreq/intel_pstate.c +1 -0
index 6414661ac1c4..2ba53f4f6af2 100644
@@ -26,6 +26,7 @@
 #include <linux/fs.h>
 #include <linux/debugfs.h>
 #include <linux/acpi.h>
+#include <linux/vmalloc.h>
 #include <trace/events/power.h>
 
 #include <asm/div64.h>
drivers/dma/mic_x100_dma.c +1 -0
index 6de2e677be04..74d9db05a5ad 100644
@@ -22,6 +22,7 @@
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/seq_file.h>
+#include <linux/vmalloc.h>
 
 #include "mic_x100_dma.h"
 
drivers/net/hyperv/netvsc.c +1 -0
index ea091bc5ff09..1e09243d5449 100644
@@ -28,6 +28,7 @@
 #include <linux/slab.h>
 #include <linux/netdevice.h>
 #include <linux/if_ether.h>
+#include <linux/vmalloc.h>
 #include <asm/sync_bitops.h>
 
 #include "hyperv_net.h"
drivers/net/hyperv/rndis_filter.c +1 -0
index 9118cea91882..35a482d526d9 100644
@@ -27,6 +27,7 @@
 #include <linux/netdevice.h>
 #include <linux/if_vlan.h>
 #include <linux/nls.h>
+#include <linux/vmalloc.h>
 
 #include "hyperv_net.h"
 
drivers/scsi/fnic/fnic_debugfs.c +1 -0
index 5980c10c734d..d6498fabe628 100644
@@ -18,6 +18,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/debugfs.h>
+#include <linux/vmalloc.h>
 #include "fnic.h"
 
 static struct dentry *fnic_trace_debugfs_root;
drivers/scsi/fnic/fnic_trace.c +1 -0
index 65a9bde26974..4e15c4bf0795 100644
@@ -21,6 +21,7 @@
 #include <linux/spinlock.h>
 #include <linux/kallsyms.h>
 #include <linux/time.h>
+#include <linux/vmalloc.h>
 #include "fnic_io.h"
 #include "fnic.h"
 
sound/pci/asihpi/hpioctl.c +1 -0
index 6610bd096fc9..d17937b92331 100644
@@ -32,6 +32,7 @@
 #include <linux/pci.h>
 #include <linux/stringify.h>
 #include <linux/module.h>
+#include <linux/vmalloc.h>
 
 #ifdef MODULE_FIRMWARE
 MODULE_FIRMWARE("asihpi/dsp5000.bin");
Signature · 6 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
[2 OpenPGP digital signature <application/pgp-signature (7bit)>]
maintainer Acked-by on v1 1/1
#9 lore raw
In reply to Stephen Rothwell

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 19:18:47 +1000

Quoted 8 lines

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

...

Quoted 2 lines

With the follow-on allnoconfig fixes:

Thanks a lot for doing this!

maintainer Acked-by on v1 1/1
#12 lore raw
In reply to Stephen Rothwell

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 19:18:47 +1000

Quoted 8 lines

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

...

Quoted 2 lines

With the follow-on allnoconfig fixes:

Thanks a lot for doing this!

#10 lore raw
In reply to David Miller

Hi Dave,

Quoted 12 lines · On Mon, 01 Jun 2015 15:59:31 -0700 (PDT) David Miller <[email protected]>…

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 19:18:47 +1000

Quoted 8 lines

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

Quoted 7 lines

...

Quoted 2 lines

With the follow-on allnoconfig fixes:

Noted, thanks.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

#11 lore raw
In reply to David Miller

Hi Dave,

Quoted 12 lines · On Mon, 01 Jun 2015 15:59:31 -0700 (PDT) David Miller <[email protected]>…

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 19:18:47 +1000

Quoted 8 lines

Nothing in asm/io.h uses anything from vmalloc.h, so remove the include and fix up the build problems in an allmodconfig (64 bit and 32 bit) build.

This may be the place where x86 builds get vmalloc.h implicitly included and that tends to hide places where vmalloc() et al are added to files but the include of vmalloc.h is forgotten.

Quoted 7 lines

...

Quoted 2 lines

With the follow-on allnoconfig fixes:

Noted, thanks.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]

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