From: Sylwester Nawrocki <snjw23@gmail.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>,
'Marek Szyprowski' <m.szyprowski@samsung.com>,
linux Media Mailing List <linux-media@vger.kernel.org>,
Kukjin Kim <kgene.kim@samsung.com>,
Sungchun Kang <sungchun.kang@samsung.com>
Subject: Re: Dependency troubles with s5p-fimc driver
Date: Wed, 27 Apr 2011 00:06:37 +0200 [thread overview]
Message-ID: <4DB741ED.30700@gmail.com> (raw)
In-Reply-To: <4DB72C74.1070305@redhat.com>
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]
next prev parent reply other threads:[~2011-04-26 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-26 20:35 Dependency troubles with s5p-fimc driver Mauro Carvalho Chehab
2011-04-26 22:06 ` Sylwester Nawrocki [this message]
2011-04-27 0:15 ` Mauro Carvalho Chehab
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=4DB741ED.30700@gmail.com \
--to=snjw23@gmail.com \
--cc=kgene.kim@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@redhat.com \
--cc=s.nawrocki@samsung.com \
--cc=sungchun.kang@samsung.com \
/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