Re: [PATCH] OMAP: Fixing build warning with omap3_defconfig

Tony Lindgren
2010-03-11T22:22:33Z

* Anuj Aggarwal <anuj.aggarwal@ti.com> [100302 02:52]:
> Fixes the below build warning when compiled with omap3_defconfig:
>
> CC arch/arm/mach-omap2/board-am3517evm.o
> In file included from arch/arm/mach-omap2/board-am3517evm.c:23:
> include/linux/i2c/pca953x.h:14: warning: 'struct i2c_client' declared
> inside parameter list
> include/linux/i2c/pca953x.h:14: warning: its scope is only this definition
> or declaration, which is probably not what you want
> include/linux/i2c/pca953x.h:17: warning: 'struct i2c_client' declared inside
> parameter list
> CC arch/arm/mach-omap2/usb-musb.o
>
> Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
> ---
> include/linux/i2c/pca953x.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/i2c/pca953x.h b/include/linux/i2c/pca953x.h
> index 81736d6..6c8f853 100644
> --- a/include/linux/i2c/pca953x.h
> +++ b/include/linux/i2c/pca953x.h
> @@ -1,4 +1,5 @@
> /* platform data for the PCA9539 16-bit I/O expander driver */
> +#include <linux/i2c.h>
>
> struct pca953x_platform_data {
> /* number of the first GPIO */
>

This needs to go via the I2C list.

Tony