From: Takashi Iwai <tiwai@suse.de>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
David Vrabel <david.vrabel@citrix.com>,
Anton Vorontsov <anton@enomsg.org>,
Colin Cross <ccross@android.com>,
Kees Cook <keescook@chromium.org>,
Tony Luck <tony.luck@intel.com>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>,
Kristen Carlson Accardi <kristen@linux.intel.com>,
Viresh Kumar <viresh.kumar@linaro.org>,
Vinod Koul <vinod.koul@intel.com>,
"K. Y. Srinivasan" <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Hiral Patel <hiralpat@cisco.com>, Suma Ramars <sramars@cisco.com>,
Brian Uchino <buchino@cisco.com>,
"James E.J. Bottomley" <JBottomley@odin.com>,
Jaroslav Kysela <perex@perex.cz>, Andrew Morton <akpm@lin>
Subject: Re: [RFC][PATCH] x86: remove vmalloc.h from asm/io.h
Date: Fri, 29 May 2015 14:43:14 +0200 [thread overview]
Message-ID: <s5h8uc75zbx.wl-tiwai@suse.de> (raw)
In-Reply-To: <20150529191847.2d4cb3a7@canb.auug.org.au>
At Fri, 29 May 2015 19:18:47 +1000,
Stephen Rothwell wrote:
>
> 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 <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: "H. Peter Anvin" <hpa@zytor.com>
> Cc: <x86@kernel.org>
> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> Cc: David Vrabel <david.vrabel@citrix.com>
> Cc: Anton Vorontsov <anton@enomsg.org>
> Cc: Colin Cross <ccross@android.com>
> Cc: Kees Cook <keescook@chromium.org>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Len Brown <lenb@kernel.org>
> Cc: Kristen Carlson Accardi <kristen@linux.intel.com>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: "K. Y. Srinivasan" <kys@microsoft.com>
> Cc: Haiyang Zhang <haiyangz@microsoft.com>
> Cc: Hiral Patel <hiralpat@cisco.com>
> Cc: Suma Ramars <sramars@cisco.com>
> Cc: Brian Uchino <buchino@cisco.com>
> Cc: "James E.J. Bottomley" <JBottomley@odin.com>
> Cc: Jaroslav Kysela <perex@perex.cz>
> Cc: Takashi Iwai <tiwai@suse.de>
For the sound bits,
Acked-by: Takashi Iwai <tiwai@suse.de>
thanks,
Takashi
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Suggested-by: David Miller <davem@davemloft.net>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
>
> ---
>
> 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(-)
>
> diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
> index 34a5b93704d3..5791e7ace9db 100644
> --- a/arch/x86/include/asm/io.h
> +++ b/arch/x86/include/asm/io.h
> @@ -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
> */
> diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
> index c76d3e37c6e1..e068d6683dba 100644
> --- a/arch/x86/kernel/crash.c
> +++ b/arch/x86/kernel/crash.c
> @@ -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>
> diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c
> index 415480d3ea84..11546b462fa6 100644
> --- a/arch/x86/kernel/machine_kexec_64.c
> +++ b/arch/x86/kernel/machine_kexec_64.c
> @@ -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>
> diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
> index 6629f397b467..8ff686aa7e8c 100644
> --- a/arch/x86/mm/pageattr-test.c
> +++ b/arch/x86/mm/pageattr-test.c
> @@ -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>
> diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
> index 89af288ec674..bedfc794b4ba 100644
> --- a/arch/x86/mm/pageattr.c
> +++ b/arch/x86/mm/pageattr.c
> @@ -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>
> diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c
> index b47124d4cd67..8b7f18e200aa 100644
> --- a/arch/x86/xen/p2m.c
> +++ b/arch/x86/xen/p2m.c
> @@ -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>
> diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
> index ed65e9c4b5b0..3670bbab57a3 100644
> --- a/drivers/acpi/apei/erst.c
> +++ b/drivers/acpi/apei/erst.c
> @@ -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"
> diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
> index 6414661ac1c4..2ba53f4f6af2 100644
> --- a/drivers/cpufreq/intel_pstate.c
> +++ b/drivers/cpufreq/intel_pstate.c
> @@ -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>
> diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c
> index 6de2e677be04..74d9db05a5ad 100644
> --- a/drivers/dma/mic_x100_dma.c
> +++ b/drivers/dma/mic_x100_dma.c
> @@ -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"
>
> diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
> index ea091bc5ff09..1e09243d5449 100644
> --- a/drivers/net/hyperv/netvsc.c
> +++ b/drivers/net/hyperv/netvsc.c
> @@ -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"
> diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
> index 9118cea91882..35a482d526d9 100644
> --- a/drivers/net/hyperv/rndis_filter.c
> +++ b/drivers/net/hyperv/rndis_filter.c
> @@ -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"
>
> diff --git a/drivers/scsi/fnic/fnic_debugfs.c b/drivers/scsi/fnic/fnic_debugfs.c
> index 5980c10c734d..d6498fabe628 100644
> --- a/drivers/scsi/fnic/fnic_debugfs.c
> +++ b/drivers/scsi/fnic/fnic_debugfs.c
> @@ -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;
> diff --git a/drivers/scsi/fnic/fnic_trace.c b/drivers/scsi/fnic/fnic_trace.c
> index 65a9bde26974..4e15c4bf0795 100644
> --- a/drivers/scsi/fnic/fnic_trace.c
> +++ b/drivers/scsi/fnic/fnic_trace.c
> @@ -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"
>
> diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c
> index 6610bd096fc9..d17937b92331 100644
> --- a/sound/pci/asihpi/hpioctl.c
> +++ b/sound/pci/asihpi/hpioctl.c
> @@ -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");
> --
> 2.1.4
>
> --
> Cheers,
> Stephen Rothwell sfr@canb.auug.org.au
> [2 OpenPGP digital signature <application/pgp-signature (7bit)>]
>
next prev parent reply other threads:[~2015-05-29 12:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 9:18 [RFC][PATCH] x86: remove vmalloc.h from asm/io.h Stephen Rothwell
2015-05-29 9:21 ` Ingo Molnar
2015-05-29 12:40 ` Stephen Rothwell
2015-05-29 12:43 ` Takashi Iwai [this message]
2015-05-29 15:28 ` Stephen Rothwell
2015-06-01 22:59 ` David Miller
2015-06-02 0:19 ` Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5h8uc75zbx.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=JBottomley@odin.com \
--cc=akpm@lin \
--cc=anton@enomsg.org \
--cc=boris.ostrovsky@oracle.com \
--cc=buchino@cisco.com \
--cc=ccross@android.com \
--cc=david.vrabel@citrix.com \
--cc=haiyangz@microsoft.com \
--cc=hiralpat@cisco.com \
--cc=hpa@zytor.com \
--cc=keescook@chromium.org \
--cc=konrad.wilk@oracle.com \
--cc=kristen@linux.intel.com \
--cc=kys@microsoft.com \
--cc=lenb@kernel.org \
--cc=mingo@redhat.com \
--cc=perex@perex.cz \
--cc=rjw@rjwysocki.net \
--cc=sfr@canb.auug.org.au \
--cc=sramars@cisco.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=vinod.koul@intel.com \
--cc=viresh.kumar@linaro.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox