]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 17 Oct 2018 17:09:02 +0000 (10:09 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 02:00:30 +0000 (20:00 -0600)
commitec8af9370e5363fa0333bf7ed04a2d26b404e108
tree475cbee498dbe4b2c83f800f5992a0e94213ec69
parentc987b6d9d60b31fa21106c5a68b43e9308094130
misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data

BugLink: https://bugs.launchpad.net/bugs/1836968
commit 7c97301285b62a41d6bceded7d964085fc8cc50f upstream.

After building the kernel with Clang, the following section mismatch
warning appears:

WARNING: vmlinux.o(.text+0x3bf19a6): Section mismatch in reference from
the function ssc_probe() to the function
.init.text:atmel_ssc_get_driver_data()
The function ssc_probe() references
the function __init atmel_ssc_get_driver_data().
This is often because ssc_probe lacks a __init
annotation or the annotation of atmel_ssc_get_driver_data is wrong.

Remove __init from atmel_ssc_get_driver_data to get rid of the mismatch.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/misc/atmel-ssc.c