From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Prabhakar lad <prabhakar.csengg@gmail.com>
Cc: LMML <linux-media@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
DLOS <davinci-linux-open-source@linux.davincidsp.com>,
Sekhar Nori <nsekhar@ti.com>
Subject: Re: [PATCH v2] davinci: vpif: Fix module build for capture and display
Date: Tue, 19 Mar 2013 15:30:43 -0300 [thread overview]
Message-ID: <20130319153043.23f7d127@redhat.com> (raw)
In-Reply-To: <1362739747-4166-1-git-send-email-prabhakar.lad@ti.com>
Em Fri, 8 Mar 2013 16:19:07 +0530
Prabhakar lad <prabhakar.csengg@gmail.com> escreveu:
> From: Lad, Prabhakar <prabhakar.csengg@gmail.com>
>
> export the symbols which are used by two modules vpif_capture and
> vpif_display.
>
> This patch fixes following error:
> ERROR: "ch_params" [drivers/media/platform/davinci/vpif_display.ko] undefined!
> ERROR: "vpif_ch_params_count" [drivers/media/platform/davinci/vpif_display.ko] undefined!
> ERROR: "vpif_base" [drivers/media/platform/davinci/vpif_display.ko] undefined!
> ERROR: "ch_params" [drivers/media/platform/davinci/vpif_capture.ko] undefined!
> ERROR: "vpif_ch_params_count" [drivers/media/platform/davinci/vpif_capture.ko] undefined!
> ERROR: "vpif_base" [drivers/media/platform/davinci/vpif_capture.ko] undefined!
> make[1]: *** [__modpost] Error 1
>
> Reported-by: Sekhar Nori <nsekhar@ti.com>
> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
> ---
> Changes for v2:
> 1: use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL() as pointed by
> Sekhar.
>
> drivers/media/platform/davinci/vpif.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/media/platform/davinci/vpif.c b/drivers/media/platform/davinci/vpif.c
> index 28638a8..42c7eba 100644
> --- a/drivers/media/platform/davinci/vpif.c
> +++ b/drivers/media/platform/davinci/vpif.c
> @@ -44,6 +44,8 @@ static struct resource *res;
> spinlock_t vpif_lock;
>
> void __iomem *vpif_base;
> +EXPORT_SYMBOL_GPL(vpif_base);
> +
> struct clk *vpif_clk;
>
> /**
> @@ -220,8 +222,10 @@ const struct vpif_channel_config_params ch_params[] = {
> .stdid = V4L2_STD_625_50,
> },
> };
> +EXPORT_SYMBOL_GPL(ch_params);
Please don't use simple names like that. It would be very easy that some
other driver could try to declare the same symbol. Instead, prefix it
with the driver name (vpif_ch_params).
>
> const unsigned int vpif_ch_params_count = ARRAY_SIZE(ch_params);
> +EXPORT_SYMBOL_GPL(vpif_ch_params_count);
>
> static inline void vpif_wr_bit(u32 reg, u32 bit, u32 val)
> {
Regards,
Mauro
next prev parent reply other threads:[~2013-03-19 18:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-08 10:49 [PATCH v2] davinci: vpif: Fix module build for capture and display Prabhakar lad
2013-03-19 18:30 ` Mauro Carvalho Chehab [this message]
2013-03-20 5:19 ` Prabhakar Lad
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=20130319153043.23f7d127@redhat.com \
--to=mchehab@redhat.com \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=prabhakar.csengg@gmail.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