From patchwork Fri Aug 26 16:10:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chase maupin X-Patchwork-Id: 1102592 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7QGJK8F014816 for ; Fri, 26 Aug 2011 16:19:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754756Ab1HZQTT (ORCPT ); Fri, 26 Aug 2011 12:19:19 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:58262 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754724Ab1HZQTS (ORCPT ); Fri, 26 Aug 2011 12:19:18 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7QGJFcW008039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 26 Aug 2011 11:19:18 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7QGJF5K005100 for ; Fri, 26 Aug 2011 21:49:15 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 8.3.106.1; Fri, 26 Aug 2011 21:49:15 +0530 Received: from localhost.localdomain (dbdp20.itg.ti.com [172.24.170.38]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7QGJBob012655; Fri, 26 Aug 2011 21:49:13 +0530 (IST) From: Chase Maupin To: CC: Chase Maupin Subject: [PATCH] omap_vout: fix section mismatch in probe function Date: Fri, 26 Aug 2011 11:10:15 -0500 Message-ID: <1314375015-15732-1-git-send-email-Chase.Maupin@ti.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 26 Aug 2011 16:19:20 +0000 (UTC) Building the OMAP vout driver resulted in the following message: WARNING: vmlinux.o(.data+0x38084): Section mismatch in reference from the variable omap_vout_driver to the function .init.text:omap_vout_probe() The variable omap_vout_driver references the function __init omap_vout_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console Signed-off-by: Chase Maupin --- drivers/media/video/omap/omap_vout.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index b3a5ecd..9b5dad5 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c @@ -2133,7 +2133,7 @@ static int omap_vout_remove(struct platform_device *pdev) return 0; } -static int __init omap_vout_probe(struct platform_device *pdev) +static int omap_vout_probe(struct platform_device *pdev) { int ret = 0, i; struct omap_overlay *ovl;