From patchwork Sat May 9 19:45:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 22777 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n49Jjvjc013729 for ; Sat, 9 May 2009 19:45:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752218AbZEITpg (ORCPT ); Sat, 9 May 2009 15:45:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753174AbZEITpg (ORCPT ); Sat, 9 May 2009 15:45:36 -0400 Received: from mail.gmx.net ([213.165.64.20]:50761 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752218AbZEITpg (ORCPT ); Sat, 9 May 2009 15:45:36 -0400 Received: (qmail invoked by alias); 09 May 2009 19:45:35 -0000 Received: from p57BD0F80.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.15.128] by mail.gmx.net (mp069) with SMTP; 09 May 2009 21:45:35 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX18eN85GCnAe43SgB9VQOuYCiyTYEWJ6uaFnii19WR gMZT/3IobUxmac Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1M2sUL-0002qc-8c; Sat, 09 May 2009 21:45:37 +0200 Date: Sat, 9 May 2009 21:45:37 +0200 (CEST) From: Guennadi Liakhovetski To: Mauro Carvalho Chehab cc: Linux Media Mailing List Subject: [PATCH] soc-camera: Fix section mismatch warning In-Reply-To: <20090509062726.22d18182@pedra.chehab.org> Message-ID: References: <20090509062726.22d18182@pedra.chehab.org> MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org modpost needs a __refdata marker in driver structs to ensure references to .probe and .remove functions from .devinit.text and .devexit.text sections respectively are valid. Add __refdata to soc_camera_pdrv platform driver. Signed-off-by: Guennadi Liakhovetski --- > Applied, but it is not producing two section mismatches. Please fix it and send > this patch alone, ASAP, since I intend to fold it together with your patch, at my -git. Below. Also available as usual from http://linuxtv.org/hg/~gliakhovetski/v4l-dvb changeset 01/01: soc-camera: Fix section mismatch warning http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=203422fec1b2 drivers/media/video/soc_camera.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index fecd7e7..2014e9e 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c @@ -1203,7 +1203,7 @@ static int __devexit soc_camera_pdrv_remove(struct platform_device *pdev) return 0; } -static struct platform_driver soc_camera_pdrv = { +static struct platform_driver __refdata soc_camera_pdrv = { .probe = soc_camera_pdrv_probe, .remove = __exit_p(soc_camera_pdrv_remove), .driver = {