diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-03-29 13:02:01 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-08 17:20:44 +0300 |
commit | 5a87e0020d53f21965adf42420766e4d8719a229 (patch) | |
tree | 3e4be0a7ee56ad6045746acf6500ee6582371deb /arch/arc/mm/tlb.c | |
parent | fec50db7033ea478773b159e0e2efb135270e3b7 (diff) | |
download | linux-5a87e0020d53f21965adf42420766e4d8719a229.tar.xz |
ACPI: APEI: EINJ: mark remove callback as __exit
The einj_driver driver is registered using platform_driver_probe(). In
this case it cannot get unbound via sysfs and it's ok to put the remove
callback into an exit section. To prevent the modpost warning about
einj_driver referencing .exit.text, mark the driver struct with
__refdata and explain the situation in a comment.
This is an improvement over commit a24118a8a687 ("ACPI: APEI: EINJ: mark
remove callback as non-__exit") which recently addressed the same issue,
but picked a less optimal variant.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arc/mm/tlb.c')
0 files changed, 0 insertions, 0 deletions