]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
soc: samsung: exynos-chipid: correct helpers __init annotation
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 5 Jan 2021 17:44:40 +0000 (18:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:41:21 +0000 (07:41 +0200)
commit 6166174afc2bc74ca550af388508384b57d5163d upstream.

After converting to builtin driver, the probe function should not call
__init functions anymore:

  >> WARNING: modpost: vmlinux.o(.text+0x8884d4):
  Section mismatch in reference from the function exynos_chipid_probe() to the function .init.text:product_id_to_soc_id()

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 352bfbb3e023 ("soc: samsung: exynos-chipid: convert to driver and merge exynos-asv")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20210105174440.120041-1-krzk@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/samsung/exynos-chipid.c

index fb9e80b63b917cd49cfb8c8ca1457aea263ea8fe..e52f907fe7d0a3e8fd9846f9ab92a4b5156ad0d5 100644 (file)
@@ -55,7 +55,7 @@ static const struct exynos_soc_id {
        { "EXYNOS5433", 0xE5433000 },
 };
 
-static const char * __init product_id_to_soc_id(unsigned int product_id)
+static const char *product_id_to_soc_id(unsigned int product_id)
 {
        int i;