]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.9/mmc-davinci-remove-extraneous-__init-annotation.patch
remove unneeded perf patch from 4.9
[thirdparty/kernel/stable-queue.git] / queue-4.9 / mmc-davinci-remove-extraneous-__init-annotation.patch
1 From 49a0a23a7327d709e9178698000d67bb05ff5a4a Mon Sep 17 00:00:00 2001
2 From: Arnd Bergmann <arnd@arndb.de>
3 Date: Thu, 7 Mar 2019 11:10:11 +0100
4 Subject: mmc: davinci: remove extraneous __init annotation
5
6 [ Upstream commit 9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a ]
7
8 Building with clang finds a mistaken __init tag:
9
10 WARNING: vmlinux.o(.text+0x5e4250): Section mismatch in reference from the function davinci_mmcsd_probe() to the function .init.text:init_mmcsd_host()
11 The function davinci_mmcsd_probe() references
12 the function __init init_mmcsd_host().
13 This is often because davinci_mmcsd_probe lacks a __init
14 annotation or the annotation of init_mmcsd_host is wrong.
15
16 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 Acked-by: Wolfram Sang <wsa@the-dreams.de>
18 Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
19 Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
20 Signed-off-by: Sasha Levin <sashal@kernel.org>
21 ---
22 drivers/mmc/host/davinci_mmc.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
26 index 8fa478c3b0db..619457b90dc7 100644
27 --- a/drivers/mmc/host/davinci_mmc.c
28 +++ b/drivers/mmc/host/davinci_mmc.c
29 @@ -1120,7 +1120,7 @@ static inline void mmc_davinci_cpufreq_deregister(struct mmc_davinci_host *host)
30 {
31 }
32 #endif
33 -static void __init init_mmcsd_host(struct mmc_davinci_host *host)
34 +static void init_mmcsd_host(struct mmc_davinci_host *host)
35 {
36
37 mmc_davinci_reset_ctrl(host, 1);
38 --
39 2.19.1
40