From patchwork Sun Oct 7 22:46:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 189871 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D94122C00F4 for ; Mon, 8 Oct 2012 09:46:49 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751497Ab2JGWqs (ORCPT ); Sun, 7 Oct 2012 18:46:48 -0400 Received: from mail-yh0-f46.google.com ([209.85.213.46]:56258 "EHLO mail-yh0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751491Ab2JGWqr (ORCPT ); Sun, 7 Oct 2012 18:46:47 -0400 Received: by mail-yh0-f46.google.com with SMTP id m54so754520yhm.19 for ; Sun, 07 Oct 2012 15:46:46 -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:x-mailer; bh=MfLDV/1fMsWKdUh1uZSR8vu54yLG61IUNeiCnx6IpmA=; b=Ztsh9Xd+02eAZ7qAggNtrRbEfrLC58SNSe0ZEp46fZiU5/QeGloPSsrl22rc4tudpt sVOS5qITkmAtWg1avBanIkmXq1zFuduQYtsgbD3kfQU0j1/i+GLIl9amjFUyRU5i3ZGg RhWBIy69FFjFFozLubayziqQyLw7sBh3JsAOTDya2OrOBvahaepwmcvxC0o1Km8rmqdt evqLJpViPm3vAdbRPqSzbr5EGxCNAlcwmBQG/2XXIFE93mKOMNsZAk5eVo60GN2T8eNc QVCKIAgkGUADSLxHmPZ5p3Xdb3jKzY/2ouRbnj/IYnTA1IB86WsvTyJLjkJtd0nl+X8Q zt6Q== Received: by 10.101.6.7 with SMTP id j7mr4323742ani.47.1349650006820; Sun, 07 Oct 2012 15:46:46 -0700 (PDT) Received: from localhost.localdomain ([186.207.91.39]) by mx.google.com with ESMTPS id l58sm5759408yhj.10.2012.10.07.15.46.44 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 07 Oct 2012 15:46:46 -0700 (PDT) From: Fabio Estevam To: jgarzik@pobox.com Cc: rob.herring@calxeda.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Fabio Estevam Subject: [PATCH] ata: sata_highbank: Fix section mismatch Date: Sun, 7 Oct 2012 19:46:36 -0300 Message-Id: <1349649996-17115-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Fabio Estevam Building multi_v7_defconfig leads to the following warning: WARNING: vmlinux.o(.data+0xf7d8): Section mismatch in reference from the variable ahci_highbank_driver to the function .init.text:ahci_highbank_probe() The variable ahci_highbank_driver references the function __init ahci_highbank_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 Fix it by annotating ahci_highbank_probe as __devinit. Signed-off-by: Fabio Estevam --- drivers/ata/sata_highbank.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index 0d7c4c2..36a141a 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c @@ -260,7 +260,7 @@ static const struct of_device_id ahci_of_match[] = { }; MODULE_DEVICE_TABLE(of, ahci_of_match); -static int __init ahci_highbank_probe(struct platform_device *pdev) +static int __devinit ahci_highbank_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct ahci_host_priv *hpriv;