Skip to content

Commit 7c97301

Browse files
nathanchancegregkh
authored andcommitted
misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data
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 <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fee05f4 commit 7c97301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/atmel-ssc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static const struct of_device_id atmel_ssc_dt_ids[] = {
132132
MODULE_DEVICE_TABLE(of, atmel_ssc_dt_ids);
133133
#endif
134134

135-
static inline const struct atmel_ssc_platform_data * __init
135+
static inline const struct atmel_ssc_platform_data *
136136
atmel_ssc_get_driver_data(struct platform_device *pdev)
137137
{
138138
if (pdev->dev.of_node) {

0 commit comments

Comments
 (0)