Skip to content

Commit a24118a

Browse files
arndbrafaeljw
authored andcommitted
ACPI: APEI: EINJ: mark remove callback as non-__exit
The remove callback of a device is called whenever it is unbound, which may happen during runtime e.g. through sysfs, so this is not allowed to be dropped from the binary: WARNING: modpost: vmlinux: section mismatch in reference: einj_driver+0x8 (section: .data) -> einj_remove (section: .exit.text) ERROR: modpost: Section mismatches detected. Remove that annotation. Fixes: 12fb28e ("EINJ: Add CXL error type support") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Dan Williams <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 4cece76 commit a24118a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/apei/einj-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static int __init einj_probe(struct platform_device *pdev)
851851
return rc;
852852
}
853853

854-
static void __exit einj_remove(struct platform_device *pdev)
854+
static void einj_remove(struct platform_device *pdev)
855855
{
856856
struct apei_exec_context ctx;
857857

0 commit comments

Comments
 (0)