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

Paul Gortmaker paul.gortmaker at windriver.com
Mon Aug 1 07:03:19 EDT 2011


[[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 at 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
> 



More information about the linux-arm-kernel mailing list