From patchwork Wed Dec 28 01:46:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guan Xuetao X-Patchwork-Id: 133376 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-iy0-f184.google.com (mail-iy0-f184.google.com [209.85.210.184]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 7DE8DB6FBA for ; Wed, 28 Dec 2011 12:47:08 +1100 (EST) Received: by iaeo4 with SMTP id o4sf35725666iae.11 for ; Tue, 27 Dec 2011 17:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=SBRbgRpWC05or0y1BYQr7TAM4uXG4OmZUgbFPvE/QHg=; b=VxaBZEEt+UkS6y9x3MqqhbZhnopwe5o8cD47lCwaOXcGkLCqmH32E+QvJjFzv/NGQn Xi+1M7KmTHjAXFyDkuBJfjfziqAo20u5Y5m7DFY2PTqaEijGPE1ek17lgAIGBtjVSjQN 8/WlUHOh0JTAM0BhWC36BBCNjI9dYflnbI1Ag= Received: by 10.50.135.102 with SMTP id pr6mr8554354igb.1.1325036825630; Tue, 27 Dec 2011 17:47:05 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.231.1.73 with SMTP id 9ls9401990ibe.2.gmail; Tue, 27 Dec 2011 17:47:05 -0800 (PST) Received: by 10.50.193.133 with SMTP id ho5mr12775581igc.2.1325036825100; Tue, 27 Dec 2011 17:47:05 -0800 (PST) Received: by 10.50.193.133 with SMTP id ho5mr12775580igc.2.1325036825090; Tue, 27 Dec 2011 17:47:05 -0800 (PST) Received: from mprc.pku.edu.cn (mprc.pku.edu.cn. [162.105.203.9]) by gmr-mx.google.com with ESMTPS id dn4si15327990igb.2.2011.12.27.17.47.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Dec 2011 17:47:05 -0800 (PST) Received-SPF: neutral (google.com: 162.105.203.9 is neither permitted nor denied by best guess record for domain of guanxuetao@linuxdev) client-ip=162.105.203.9; Received: from linuxdev ([162.105.203.8]) by mprc.pku.edu.cn (8.13.8/8.13.8) with ESMTP id pBS1qvdo009189; Wed, 28 Dec 2011 09:52:58 +0800 Received: by linuxdev (Postfix, from userid 1000) id 1FF4F2E069D; Wed, 28 Dec 2011 09:46:55 +0800 (CST) From: Guan Xuetao To: linux-kernel@vger.kernel.org Cc: Guan Xuetao , Axel Lin , Michal Marek , Arnd Bergmann , Alessandro Zummo , rtc-linux@googlegroups.com Subject: [rtc-linux] [PATCH] rtc-puv3: solve section mismatch in rtc-puv3.c Date: Wed, 28 Dec 2011 09:46:53 +0800 Message-Id: <1325036813-17419-1-git-send-email-gxt@mprc.pku.edu.cn> X-Mailer: git-send-email 1.7.4.1 X-Original-Sender: gxt@mprc.pku.edu.cn X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 162.105.203.9 is neither permitted nor denied by best guess record for domain of guanxuetao@linuxdev) smtp.mail=guanxuetao@linuxdev Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , The patch renames puv3_rtcdrv to puv3_rtc_driver, so that modpost will know that this is simply a list of pointers to driver functions, in which case the section mismatch is OK. (Thanks Michal Marek) Cc: Axel Lin Cc: Michal Marek Cc: Arnd Bergmann Cc: Alessandro Zummo Cc: rtc-linux@googlegroups.com Signed-off-by: Guan Xuetao --- Section mismatch warning information: WARNING: drivers/rtc/built-in.o(.data+0x90): Section mismatch in reference from the variable puv3_rtcdrv to the function .devinit.text:puv3_rtc_probe() The variable puv3_rtcdrv references the function __devinit puv3_rtc_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console WARNING: drivers/rtc/built-in.o(.data+0x94): Section mismatch in reference from the variable puv3_rtcdrv to the function .devexit.text:puv3_rtc_remove() The variable puv3_rtcdrv references the function __devexit puv3_rtc_remove() If the reference is valid then annotate the variable with __exit* (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console WARNING: drivers/built-in.o(.data+0x6c04): Section mismatch in reference from the variable puv3_rtcdrv to the function .devinit.text:puv3_rtc_probe() The variable puv3_rtcdrv references the function __devinit puv3_rtc_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console WARNING: drivers/built-in.o(.data+0x6c08): Section mismatch in reference from the variable puv3_rtcdrv to the function .devexit.text:puv3_rtc_remove() The variable puv3_rtcdrv references the function __devexit puv3_rtc_remove() If the reference is valid then annotate the variable with __exit* (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console WARNING: vmlinux.o(.data+0x1126c): Section mismatch in reference from the variable puv3_rtcdrv to the function .devinit.text:puv3_rtc_probe() The variable puv3_rtcdrv references the function __devinit puv3_rtc_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console WARNING: vmlinux.o(.data+0x11270): Section mismatch in reference from the variable puv3_rtcdrv to the function .devexit.text:puv3_rtc_remove() The variable puv3_rtcdrv references the function __devexit puv3_rtc_remove() If the reference is valid then annotate the variable with __exit* (see linux/init.h) or name the variable: *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console --- drivers/rtc/rtc-puv3.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-puv3.c b/drivers/rtc/rtc-puv3.c index 6490a02..ab0acae 100644 --- a/drivers/rtc/rtc-puv3.c +++ b/drivers/rtc/rtc-puv3.c @@ -326,7 +326,7 @@ static int puv3_rtc_resume(struct platform_device *pdev) #define puv3_rtc_resume NULL #endif -static struct platform_driver puv3_rtcdrv = { +static struct platform_driver puv3_rtc_driver = { .probe = puv3_rtc_probe, .remove = __devexit_p(puv3_rtc_remove), .suspend = puv3_rtc_suspend, @@ -337,7 +337,7 @@ static struct platform_driver puv3_rtcdrv = { } }; -module_platform_driver(puv3_rtcdrv); +module_platform_driver(puv3_rtc_driver); MODULE_DESCRIPTION("RTC Driver for the PKUnity v3 chip"); MODULE_AUTHOR("Hu Dongliang");