From patchwork Fri Mar 8 10:49:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2235841 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by patchwork2.kernel.org (Postfix) with ESMTP id 7B026DF215 for ; Fri, 8 Mar 2013 10:53:43 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r28AnqiG005429; Fri, 8 Mar 2013 04:49:52 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r28AnqZH025446; Fri, 8 Mar 2013 04:49:52 -0600 Received: from dlelxv24.itg.ti.com (172.17.1.199) by dfle73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.1.323.3; Fri, 8 Mar 2013 04:49:51 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r28Anpwr026171; Fri, 8 Mar 2013 04:49:51 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 53B1380627; Fri, 8 Mar 2013 04:49:51 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 489E280626 for ; Fri, 8 Mar 2013 04:49:49 -0600 (CST) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id r28Annje026850 for ; Fri, 8 Mar 2013 04:49:49 -0600 (CST) Received: from mail6.bemta12.messagelabs.com (mail6.bemta12.messagelabs.com [216.82.250.247]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id r28AnmMN025530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 8 Mar 2013 04:49:48 -0600 Received: from [216.82.250.99:5587] by server-12.bemta-12.messagelabs.com id CE/CE-20619-C42C9315; Fri, 08 Mar 2013 10:49:48 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-3.tower-126.messagelabs.com!1362739765!12868312!1 X-Originating-IP: [209.85.210.54] X-SpamReason: No, hits=0.0 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, spamassassin: X-StarScan-Received: X-StarScan-Version: 6.8.6; banners=-,-,- X-VirusChecked: Checked Received: (qmail 15810 invoked from network); 8 Mar 2013 10:49:26 -0000 Received: from mail-da0-f54.google.com (HELO mail-da0-f54.google.com) (209.85.210.54) by server-3.tower-126.messagelabs.com with RC4-SHA encrypted SMTP; 8 Mar 2013 10:49:26 -0000 Received: by mail-da0-f54.google.com with SMTP id p1so188927dad.27 for ; Fri, 08 Mar 2013 02:49:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=pGWayiVMYW07xt6hUwslKpp2NsuLOBijvCmp7AFF2iU=; b=hY0D82Edyi48SURx1BYoOqkiKUc1j+6Lef60rUNxegKLpodCOIVnxXU9+NSQz+tRO4 B//rF2HSxqza+H++vBrdlbLdZNbGnsMLRiW6DLubZBd0bINNaRIGgDTBrQxgDC21mb7W 7WxjVfem+r8pbSMpNnFEOw5H/0k7Y0ZPvvFCQh9HPMH8D/4UEkpfASTQy7yxd9aLyx/v UUdn1nHBjO7Bl4FM1DVg+PfEnCFBHUSObXJq299BSbiFtAqse6fLZC/BWa2Fktzmbqel deNsRTwSwlgVfIWK8dKQaBMfsoeGlCdbgebUjoA4W3p+gZsfbz2GY6LivpQiLNfaxm0z aYqQ== X-Received: by 10.68.232.38 with SMTP id tl6mr2529232pbc.153.1362739764972; Fri, 08 Mar 2013 02:49:24 -0800 (PST) Received: from localhost.localdomain ([122.166.13.141]) by mx.google.com with ESMTPS id aj2sm5862924pad.14.2013.03.08.02.49.17 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 08 Mar 2013 02:49:24 -0800 (PST) From: Prabhakar lad To: LMML Subject: [PATCH v2] davinci: vpif: Fix module build for capture and display Date: Fri, 8 Mar 2013 16:19:07 +0530 Message-ID: <1362739747-4166-1-git-send-email-prabhakar.lad@ti.com> X-Mailer: git-send-email 1.7.4.1 CC: DLOS , LKML , Mauro Carvalho Chehab X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com From: Lad, Prabhakar 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 Signed-off-by: Lad, Prabhakar --- 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); 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) {