Commit 8838555089f0345b87f4277fe5a8dd647dc65589
Committed by
Lee Jones
1 parent
4b3ab9372f
mfd: twl-core: Fix section annotations on {,un}protect_pm_master
When building the kernel with Clang, the following section mismatch warning appears: WARNING: vmlinux.o(.text+0x3d84a3b): Section mismatch in reference from the function twl_probe() to the function .init.text:unprotect_pm_master() The function twl_probe() references the function __init unprotect_pm_master(). This is often because twl_probe lacks a __init annotation or the annotation of unprotect_pm_master is wrong. Remove the __init annotation on the *protect_pm_master functions so there is no more mismatch. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/mfd/twl-core.c
... | ... | @@ -979,7 +979,7 @@ |
979 | 979 | * letting it generate the right frequencies for USB, MADC, and |
980 | 980 | * other purposes. |
981 | 981 | */ |
982 | -static inline int __init protect_pm_master(void) | |
982 | +static inline int protect_pm_master(void) | |
983 | 983 | { |
984 | 984 | int e = 0; |
985 | 985 | |
... | ... | @@ -988,7 +988,7 @@ |
988 | 988 | return e; |
989 | 989 | } |
990 | 990 | |
991 | -static inline int __init unprotect_pm_master(void) | |
991 | +static inline int unprotect_pm_master(void) | |
992 | 992 | { |
993 | 993 | int e = 0; |
994 | 994 |