Skip to content

Commit

Permalink
ACPI: APEI: EINJ: mark remove callback as non-__exit
Browse files Browse the repository at this point in the history
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 <arnd@arndb.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Arnd Bergmann authored and Rafael J. Wysocki committed Mar 26, 2024
1 parent 4cece76 commit a24118a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/apei/einj-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ static int __init einj_probe(struct platform_device *pdev)
return rc;
}

static void __exit einj_remove(struct platform_device *pdev)
static void einj_remove(struct platform_device *pdev)
{
struct apei_exec_context ctx;

Expand Down

0 comments on commit a24118a

Please sign in to comment.