Hi Mauro,

On 04/26/2011 10:35 PM, Mauro Carvalho Chehab wrote:
> Hi Sylvester/Marek,
> 
> I've changed the kernel configuration in order to compile the media subsystem 
> as a

Which kernel tree is this?
I assume it's kernel maintained by the System LSI team, so I cced Mr. Kukjin 
Kim.

> module (in order to allow me to use the media_build tree and compile just the
> modules I want). The end result is that the arch tree refused to compile with 
> this
> error:
> 
>    CC      arch/arm/mach-s5pv310/mach-smdkc210.o
> arch/arm/mach-s5pv310/mach-smdkc210.c:1721:18: error: ‘writeback_info’ 
> undeclared here (not in a function)
> arch/arm/mach-s5pv310/mach-smdkc210.c: In function ‘smdkc210_machine_init’:
> arch/arm/mach-s5pv310/mach-smdkc210.c:1947:7: warning: 
> "CONFIG_VIDEO_SAMSUNG_S5P_FIMC" is not defined
> arch/arm/mach-s5pv310/mach-smdkc210.c: At top level:
> arch/arm/mach-s5pv310/mach-smdkc210.c:1673:33: warning: ‘isp_info’ defined 
> but not used
> arch/arm/mach-s5pv310/mach-smdkc210.c:1729:20: warning: 
> ‘smdkv310_subdev_config’ defined but not used
> arch/arm/mach-s5pv310/mach-smdkc210.c:1735:20: warning: 
> ‘smdkv310_camera_config’ defined but not used
> make[1]: ** [arch/arm/mach-s5pv310/mach-smdkc210.o] Erro 1
> 
> By looking at arch/arm/mach-s5pv310/mach-smdkc210.c, it has lots of things 
> like:
> 
> #if defined(CONFIG_SND_SOC_WM8994) || defined(CONFIG_SND_SOC_WM8994_MODULE)
> #include<linux/mfd/wm8994/pdata.h>
> #endif
> 
> Using #if/#endif blocks to include header data is not a good practice. 
> Unfortunately,
> it seems that all platform data is full of this. The error seems to be here:

Yes, I agree this is not right. However our team maintains only the
following boards:

arch/arm/mach-s5pv210/mach-goni.c
arch/arm/mach-s5pv210/mach-aquila.c
arch/arm/mach-exynos4/mach-universal_c210.c

> 
> /* for mainline fimc interface */
> #ifdef CONFIG_VIDEO_SAMSUNG_S5P_FIMC
> #ifdef WRITEBACK_ENABLED
> struct writeback_mbus_platform_data {
>       int id;
>       struct v4l2_mbus_framefmt fmt;
> };
> 
> static struct i2c_board_info writeback_info = {
>       I2C_BOARD_INFO("writeback", 0x0),
> };
> #endif

Hmm...first time I see this stuff..

Kgene, could you please have a look?
Or please forward this to someone who can take care of these issues.

Thank you,
Sylwester

> 
> You should be doing, instead, a check like this one for all symbols that are 
> allowed
> to be module at the Kconfig:
> 
> #if defined(CONFIG_SND_SOC_WM8994) || defined(CONFIG_SND_SOC_WM8994_MODULE)
> 
> Cheers,
> Mauro.
> 
> -
> As reference, I'm enclosing my .config.
> 
[snip]

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to