From patchwork Tue Sep 10 16:46:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 273933 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 0D23F2C0485 for ; Wed, 11 Sep 2013 02:47:50 +1000 (EST) Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 3F5912C0097; Wed, 11 Sep 2013 02:47:19 +1000 (EST) Received: by mail-la0-f46.google.com with SMTP id eh20so6435726lab.33 for ; Tue, 10 Sep 2013 09:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=FOWr4F4qXi+X59WLPsKWKc8ExFRpGDjCO1eWHx9KgAg=; b=GtSxdTcxokjwZHrARuW7Dm7qIgJo8YoQHelE3uDRJwhckmSfwMGMCg8BjSNAZ/COYI V6MNHItDiKRz/3MVzSXfq1reRIU2QmvU2tdhaO9mEWF7fjXfFYEBZLWIzlslHCBSGELO KTLrBr+GhmWBvyRV6Yf5vtmi6EyEfeYWNSnKqwbiwIeTUoeam2P3oVKtbtbqO138NCHH sCdvKp7Ov1cgKRK2f4lXQIAoLfSVRr3WCea9CFSFta9t6Yv9Pbqmz0+Natl7LyiprQSv oC9vNLYPlqk1ZVTHzs99ZNzTh+iEtObbpBIgwIe3avYwuWS044LlfhgAaTdT0O+gHPAu eEiQ== X-Received: by 10.152.37.103 with SMTP id x7mr7327948laj.28.1378831635774; Tue, 10 Sep 2013 09:47:15 -0700 (PDT) Received: from localhost ([83.220.237.255]) by mx.google.com with ESMTPSA id pw4sm9054984lbb.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 09:47:15 -0700 (PDT) From: Vladimir Murzin To: linux-fbdev@vger.kernel.org, cbe-oss-dev@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 3/3] fbdev/ps3fb: fix section mismatch warning for ps3fb_probe Date: Tue, 10 Sep 2013 18:46:30 +0200 Message-Id: <1378831590-2349-1-git-send-email-murzin.v@gmail.com> X-Mailer: git-send-email 1.8.1.5 Cc: geoff@infradead.org, Vladimir Murzin , tomi.valkeinen@ti.com, plagnioj@jcrosoft.com X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" While cross-building for PPC64 I've got WARNING: drivers/video/built-in.o(.text+0x9f9ca): Section mismatch in reference from the function .ps3fb_probe() to th e variable .init.data:ps3fb_fix The function .ps3fb_probe() references the variable __initdata ps3fb_fix. This is often because .ps3fb_probe lacks a __initdata annotation or the annotation of ps3fb_fix is wrong. WARNING: drivers/video/built-in.o(.text+0x9f9d2): Section mismatch in reference from the function .ps3fb_probe() to the variable .init.data:ps3fb_fix The function .ps3fb_probe() references the variable __initdata ps3fb_fix. This is often because .ps3fb_probe lacks a __initdata annotation or the annotation of ps3fb_fix is wrong. WARNING: drivers/built-in.o(.text+0xe222a): Section mismatch in reference from the function .ps3fb_probe() to the variable .init.data:ps3fb_fix The function .ps3fb_probe() references the variable __initdata ps3fb_fix. This is often because .ps3fb_probe lacks a __initdata annotation or the annotation of ps3fb_fix is wrong. WARNING: drivers/built-in.o(.text+0xe2232): Section mismatch in reference from the function .ps3fb_probe() to the variable .init.data:ps3fb_fix The function .ps3fb_probe() references the variable __initdata ps3fb_fix. This is often because .ps3fb_probe lacks a __initdata annotation or the annotation of ps3fb_fix is wrong. WARNING: vmlinux.o(.text+0x561d4a): Section mismatch in reference from the function .ps3fb_probe() to the variable .init.data:ps3fb_fix The function .ps3fb_probe() references the variable __initdata ps3fb_fix. This is often because .ps3fb_probe lacks a __initdata annotation or the annotation of ps3fb_fix is wrong. Mismatch was introduced with 48c68c4f "Drivers: video: remove __dev* attributes." Remove __init data annotation from ps3fb_fix. Signed-off-by: Vladimir Murzin --- drivers/video/ps3fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index dbfe2c1..b269abd 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c @@ -952,7 +952,7 @@ static struct fb_ops ps3fb_ops = { .fb_compat_ioctl = ps3fb_ioctl }; -static struct fb_fix_screeninfo ps3fb_fix __initdata = { +static struct fb_fix_screeninfo ps3fb_fix = { .id = DEVICE_NAME, .type = FB_TYPE_PACKED_PIXELS, .visual = FB_VISUAL_TRUECOLOR,