From patchwork Tue Oct 2 16:36:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11954 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 431822414D for ; Tue, 2 Oct 2012 16:37:19 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id E1B86A1880A for ; Tue, 2 Oct 2012 16:37:18 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so14609064iej.11 for ; Tue, 02 Oct 2012 09:37:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=/EWOuVi0tXNg+t1mC852NG5roXVPNOa1Xu3BHqz/nRQ=; b=p2mZwoIakjDDnS5813OlQpqbs3jQsfS5P+e4p7qRI8UKBgXrjUk8lwef6fptSXHHSQ 0BugiU9F9yEDyc6QZ3HYE+EJXSh4akS57qiadlcakNmBpIW8kmTjq/QehdAonsC+hi4K 3O9KMDShuS5GjQKNPMS4O8HQbOsc18OoxWO5UVpVBByc9HdJEf15joYEzOqqqrLtytuN Iirjzb6hkEwfbxpqexV8gI54Dt6il3nxShW0rV8D2nCFd/dMDxLCHrCqRz/ZQJHQkWI/ 09IroopSOgKip2lRH42qSR7zCPOQVKtb/utBq+INucb5gSXwHapW9EJW8JNwy+BMctf3 mbbw== Received: by 10.42.110.130 with SMTP id q2mr14404449icp.53.1349195838678; Tue, 02 Oct 2012 09:37:18 -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.50.184.232 with SMTP id ex8csp92052igc; Tue, 2 Oct 2012 09:37:17 -0700 (PDT) Received: by 10.180.73.76 with SMTP id j12mr23121392wiv.11.1349195836312; Tue, 02 Oct 2012 09:37:16 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.8]) by mx.google.com with ESMTPS id k57si1722384wef.83.2012.10.02.09.37.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 09:37:16 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.8; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LZlXA-1TiYNi3sj6-00lcHL; Tue, 02 Oct 2012 18:37:15 +0200 From: Arnd Bergmann To: linux-arm-kernel@infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Bjorn Helgaas , Lennert Buytenhek , Dan Williams Subject: [PATCH 12/17] ARM: iop13xx: mark iop13xx_scan_bus as __devinit Date: Tue, 2 Oct 2012 18:36:51 +0200 Message-Id: <1349195816-2225-13-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349195816-2225-1-git-send-email-arnd@arndb.de> References: <1349195816-2225-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:ZrFsq+pxJoi8qJ06zh+Akc67nxShe8wc4NanVJUGdj9 elrNLKbez1AIfgz+hzRNH88yNJvR1qF0QzUprhfOkgRbg2cwt0 tQKeGcW7Y8GOgJt6D2KVgqK8PjtFb2BnFqp5zMr0oJ3MeA2xw0 j/+6Vr88KMaQKc9EES75D3g8yFp8+8n/X+2EqtKAxn5wEWwK6/ wydcISUc49OhyOtxLAoRnjq3Ys8r0bJ9qNDPTHL1zXcocqt2zw juXtch+RX/kFREzqCc9G803Q2Owo3t/dlYWh+Dgq7Wl62PgpxQ 9Gjnn7Q0tcrjbj3BtFRVSr5eJAwGmhX8B4XhUjyaj3cSFCR3L3 CGot6+2jBtj9eYaDhx4sJCrLDdltCN/x3nRzL9GVfy4OqJC6b/ JodIULo9TWTBA== X-Gm-Message-State: ALoCoQkl4uvAwWmcnMAo3sMg8RobUyNf3tbWUe19iGSYYw6pOBGmHxrcWJUNgGIAo5jE7ZohBbfT pci_scan_root_bus is __devinit, so iop13xx_scan_bus has to be the same in order to safely call it. This is ok because the function itself is only called from the hwpci->scan callback. WARNING: vmlinux.o(.text+0x10138): Section mismatch in reference from the function iop13xx_scan_bus() to the function .devinit.text:pci_scan_root_bus() The function iop13xx_scan_bus() references the function __devinit pci_scan_root_bus(). This is often because iop13xx_scan_bus lacks a __devinit annotation or the annotation of pci_scan_root_bus is wrong. Signed-off-by: Arnd Bergmann Cc: Bjorn Helgaas Cc: Lennert Buytenhek Cc: Dan Williams --- arch/arm/mach-iop13xx/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-iop13xx/pci.c b/arch/arm/mach-iop13xx/pci.c index 861cb12..9d7f4ca 100644 --- a/arch/arm/mach-iop13xx/pci.c +++ b/arch/arm/mach-iop13xx/pci.c @@ -506,7 +506,7 @@ iop13xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) /* Scan an IOP13XX PCI bus. nr selects which ATU we use. */ -struct pci_bus *iop13xx_scan_bus(int nr, struct pci_sys_data *sys) +struct pci_bus * __devinit iop13xx_scan_bus(int nr, struct pci_sys_data *sys) { int which_atu; struct pci_bus *bus = NULL;