From patchwork Fri Oct 7 11:55:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 4567 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 85EA023F59 for ; Fri, 7 Oct 2011 12:00:14 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 55994A18E9C for ; Fri, 7 Oct 2011 12:00:14 +0000 (UTC) Received: by mail-gy0-f180.google.com with SMTP id 8so5199025gyd.11 for ; Fri, 07 Oct 2011 05:00:14 -0700 (PDT) Received: by 10.223.65.68 with SMTP id h4mr9769233fai.24.1317988813591; Fri, 07 Oct 2011 05:00:13 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.23.170 with SMTP id n10cs2031laf; Fri, 7 Oct 2011 05:00:13 -0700 (PDT) Received: by 10.224.194.193 with SMTP id dz1mr1684486qab.62.1317988812560; Fri, 07 Oct 2011 05:00:12 -0700 (PDT) Received: from mail-qy0-f178.google.com (mail-qy0-f178.google.com [209.85.216.178]) by mx.google.com with ESMTPS id gs7si6557837qab.109.2011.10.07.05.00.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 05:00:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.216.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.216.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.216.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by qyg14 with SMTP id 14so3967425qyg.16 for ; Fri, 07 Oct 2011 05:00:12 -0700 (PDT) Received: by 10.68.19.42 with SMTP id b10mr13753745pbe.83.1317988811440; Fri, 07 Oct 2011 05:00:11 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id p4sm30580311pbs.6.2011.10.07.05.00.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Oct 2011 05:00:10 -0700 (PDT) From: Tushar Behera To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: ben-linux@fluff.org, linux@arm.linux.org.uk, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH V2 1/2] ARM: S3C2410: Add __init attribute to usb_simtec_init() Date: Fri, 7 Oct 2011 17:25:12 +0530 Message-Id: <1317988513-20800-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1317988513-20800-1-git-send-email-tushar.behera@linaro.org> References: <1317988513-20800-1-git-send-email-tushar.behera@linaro.org> usb_simtec_init() references s3c_ohci_set_platdata() which is defined with __init attribute. Hence to remove section mismatch warning, __init attribute is added to usb_simtec_init(). It removes following two warnigs. WARNING: vmlinux.o(.text+0x1460c): Section mismatch in reference from the function usb_simtec_init() to the function .init.text:s3c_ohci_set_platdata() The function usb_simtec_init() references the function __init s3c_ohci_set_platdata(). WARNING: vmlinux.o(.text+0x14650): Section mismatch in reference from the function usb_simtec_init() to the (unknown reference) .init.data:(unknown) The function usb_simtec_init() references the (unknown reference) __initdata (unknown). Signed-off-by: Tushar Behera --- arch/arm/mach-s3c2410/usb-simtec.c | 2 +- arch/arm/mach-s3c2410/usb-simtec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-s3c2410/usb-simtec.c b/arch/arm/mach-s3c2410/usb-simtec.c index 29bd3d9..3a1028c 100644 --- a/arch/arm/mach-s3c2410/usb-simtec.c +++ b/arch/arm/mach-s3c2410/usb-simtec.c @@ -104,7 +104,7 @@ static struct s3c2410_hcd_info usb_simtec_info __initdata = { }; -int usb_simtec_init(void) +int __init usb_simtec_init(void) { int ret; diff --git a/arch/arm/mach-s3c2410/usb-simtec.h b/arch/arm/mach-s3c2410/usb-simtec.h index 03842ed..43cc88f 100644 --- a/arch/arm/mach-s3c2410/usb-simtec.h +++ b/arch/arm/mach-s3c2410/usb-simtec.h @@ -12,5 +12,5 @@ * published by the Free Software Foundation. */ -extern int usb_simtec_init(void); +extern int __init usb_simtec_init(void);