]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: exynos: Fix add_pcie_port() section mismatch warning
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 28 May 2014 09:48:45 +0000 (15:18 +0530)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:44 +0000 (21:18 -0600)
commit9e525a31843c0a0e983e83a2fbb5b595f550cf5d
tree465061fb36df9b6f01177e362d147af890026b43
parent36352e56f04337ee7b389a621dfb5305396686fe
PCI: exynos: Fix add_pcie_port() section mismatch warning

add_pcie_port() is called only from exynos_pcie_probe(), which is annotated
with __init.  Thus it makes sense to annotate add_pcie_port() with __init
to avoid the following section mismatch warning:

  WARNING: drivers/pci/built-in.o(.text.unlikely+0xf8): Section mismatch in reference from the function add_pcie_port() to the function .init.text:dw_pcie_host_init()
    The function add_pcie_port() references
    the function __init dw_pcie_host_init().
    This is often because add_pcie_port lacks a __init
    annotation or the annotation of dw_pcie_host_init is wrong.

[bhelgaas: changelog]
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
(cherry picked from commit 17d7acc8e1c81f8125730aa900c67412a2ac69e2)
drivers/pci/host/pci-exynos.c