diff mbox

ARM: SAMSUNG: Fix build of dev- infrastructure for module.h changes

Message ID 1312158567-22483-1-git-send-email-broonie@opensource.wolfsonmicro.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mark Brown Aug. 1, 2011, 12:29 a.m. UTC
The recent module.h changes cause a bunch of missing includes in the
Samsung dev- infrastructure.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 arch/arm/plat-samsung/dev-adc.c       |    2 ++
 arch/arm/plat-samsung/dev-backlight.c |    3 +++
 arch/arm/plat-samsung/dev-ide.c       |    2 ++
 arch/arm/plat-samsung/dev-ts.c        |    2 ++
 arch/arm/plat-samsung/dev-wdt.c       |    3 +++
 arch/arm/plat-samsung/platformdata.c  |    1 +
 6 files changed, 13 insertions(+), 0 deletions(-)

Comments

Paul Gortmaker Aug. 1, 2011, 11:03 a.m. UTC | #1
[[PATCH] ARM: SAMSUNG: Fix build of dev- infrastructure for module.h changes] On 01/08/2011 (Mon 09:29) Mark Brown wrote:

> The recent module.h changes cause a bunch of missing includes in the
> Samsung dev- infrastructure.

Thanks, but I've already fixed these just last night when I built
each and every one of all the arch/arm/config/* files.  So it should
be OK now.

I double checked what I did against yours, and I was using the
more minimal export.h in dev-wdt.c file.  Did I miss something
where it really requires all of module.h file?

Thanks,
Paul.

> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
>  arch/arm/plat-samsung/dev-adc.c       |    2 ++
>  arch/arm/plat-samsung/dev-backlight.c |    3 +++
>  arch/arm/plat-samsung/dev-ide.c       |    2 ++
>  arch/arm/plat-samsung/dev-ts.c        |    2 ++
>  arch/arm/plat-samsung/dev-wdt.c       |    3 +++
>  arch/arm/plat-samsung/platformdata.c  |    1 +
>  6 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/plat-samsung/dev-adc.c b/arch/arm/plat-samsung/dev-adc.c
> index 9d903d4..c7e3257 100644
> --- a/arch/arm/plat-samsung/dev-adc.c
> +++ b/arch/arm/plat-samsung/dev-adc.c
> @@ -13,6 +13,8 @@
>  #include <linux/string.h>
>  #include <linux/platform_device.h>
>  
> +#include <asm/sizes.h>
> +
>  #include <mach/irqs.h>
>  #include <mach/map.h>
>  
> diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/plat-samsung/dev-backlight.c
> index 3cedd4c..825a884 100644
> --- a/arch/arm/plat-samsung/dev-backlight.c
> +++ b/arch/arm/plat-samsung/dev-backlight.c
> @@ -14,6 +14,9 @@
>  #include <linux/platform_device.h>
>  #include <linux/io.h>
>  #include <linux/pwm_backlight.h>
> +#include <linux/slab.h>
> +
> +#include <asm/sizes.h>
>  
>  #include <plat/devs.h>
>  #include <plat/gpio-cfg.h>
> diff --git a/arch/arm/plat-samsung/dev-ide.c b/arch/arm/plat-samsung/dev-ide.c
> index b497982..5407574 100644
> --- a/arch/arm/plat-samsung/dev-ide.c
> +++ b/arch/arm/plat-samsung/dev-ide.c
> @@ -14,6 +14,8 @@
>  #include <linux/interrupt.h>
>  #include <linux/platform_device.h>
>  
> +#include <asm/sizes.h>
> +
>  #include <mach/map.h>
>  #include <plat/ata.h>
>  #include <plat/devs.h>
> diff --git a/arch/arm/plat-samsung/dev-ts.c b/arch/arm/plat-samsung/dev-ts.c
> index 82543f0..3eede40 100644
> --- a/arch/arm/plat-samsung/dev-ts.c
> +++ b/arch/arm/plat-samsung/dev-ts.c
> @@ -17,6 +17,8 @@
>  #include <linux/string.h>
>  #include <linux/platform_device.h>
>  
> +#include <asm/sizes.h>
> +
>  #include <mach/irqs.h>
>  #include <mach/map.h>
>  
> diff --git a/arch/arm/plat-samsung/dev-wdt.c b/arch/arm/plat-samsung/dev-wdt.c
> index 019b5b8..207a213 100644
> --- a/arch/arm/plat-samsung/dev-wdt.c
> +++ b/arch/arm/plat-samsung/dev-wdt.c
> @@ -12,6 +12,9 @@
>  
>  #include <linux/kernel.h>
>  #include <linux/platform_device.h>
> +#include <linux/module.h>
> +
> +#include <asm/sizes.h>
>  
>  #include <mach/irqs.h>
>  #include <mach/map.h>
> diff --git a/arch/arm/plat-samsung/platformdata.c b/arch/arm/plat-samsung/platformdata.c
> index 7cf2e1e..f857593 100644
> --- a/arch/arm/plat-samsung/platformdata.c
> +++ b/arch/arm/plat-samsung/platformdata.c
> @@ -12,6 +12,7 @@
>  #include <linux/kernel.h>
>  #include <linux/string.h>
>  #include <linux/platform_device.h>
> +#include <linux/slab.h>
>  
>  #include <plat/devs.h>
>  
> -- 
> 1.7.5.4
>
Mark Brown Aug. 1, 2011, 11:35 a.m. UTC | #2
On Mon, Aug 01, 2011 at 07:03:19AM -0400, Paul Gortmaker wrote:

> I double checked what I did against yours, and I was using the
> more minimal export.h in dev-wdt.c file.  Did I miss something
> where it really requires all of module.h file?

I don't know, my only interest at the time was in fixing the build for
my primary development platform after it broke suddenly during the merge
window.  Like I said yesterday the first I knew about any changes in
module.h was when Dave Jones mentioned it in response to my fix for
cpufreq, I had assumed it was an ARM-specific change.
diff mbox

Patch

diff --git a/arch/arm/plat-samsung/dev-adc.c b/arch/arm/plat-samsung/dev-adc.c
index 9d903d4..c7e3257 100644
--- a/arch/arm/plat-samsung/dev-adc.c
+++ b/arch/arm/plat-samsung/dev-adc.c
@@ -13,6 +13,8 @@ 
 #include <linux/string.h>
 #include <linux/platform_device.h>
 
+#include <asm/sizes.h>
+
 #include <mach/irqs.h>
 #include <mach/map.h>
 
diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/plat-samsung/dev-backlight.c
index 3cedd4c..825a884 100644
--- a/arch/arm/plat-samsung/dev-backlight.c
+++ b/arch/arm/plat-samsung/dev-backlight.c
@@ -14,6 +14,9 @@ 
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <linux/pwm_backlight.h>
+#include <linux/slab.h>
+
+#include <asm/sizes.h>
 
 #include <plat/devs.h>
 #include <plat/gpio-cfg.h>
diff --git a/arch/arm/plat-samsung/dev-ide.c b/arch/arm/plat-samsung/dev-ide.c
index b497982..5407574 100644
--- a/arch/arm/plat-samsung/dev-ide.c
+++ b/arch/arm/plat-samsung/dev-ide.c
@@ -14,6 +14,8 @@ 
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 
+#include <asm/sizes.h>
+
 #include <mach/map.h>
 #include <plat/ata.h>
 #include <plat/devs.h>
diff --git a/arch/arm/plat-samsung/dev-ts.c b/arch/arm/plat-samsung/dev-ts.c
index 82543f0..3eede40 100644
--- a/arch/arm/plat-samsung/dev-ts.c
+++ b/arch/arm/plat-samsung/dev-ts.c
@@ -17,6 +17,8 @@ 
 #include <linux/string.h>
 #include <linux/platform_device.h>
 
+#include <asm/sizes.h>
+
 #include <mach/irqs.h>
 #include <mach/map.h>
 
diff --git a/arch/arm/plat-samsung/dev-wdt.c b/arch/arm/plat-samsung/dev-wdt.c
index 019b5b8..207a213 100644
--- a/arch/arm/plat-samsung/dev-wdt.c
+++ b/arch/arm/plat-samsung/dev-wdt.c
@@ -12,6 +12,9 @@ 
 
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
+#include <linux/module.h>
+
+#include <asm/sizes.h>
 
 #include <mach/irqs.h>
 #include <mach/map.h>
diff --git a/arch/arm/plat-samsung/platformdata.c b/arch/arm/plat-samsung/platformdata.c
index 7cf2e1e..f857593 100644
--- a/arch/arm/plat-samsung/platformdata.c
+++ b/arch/arm/plat-samsung/platformdata.c
@@ -12,6 +12,7 @@ 
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/platform_device.h>
+#include <linux/slab.h>
 
 #include <plat/devs.h>