]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent section mismatch...
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 4 Oct 2023 11:16:24 +0000 (13:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:08:50 +0000 (23:08 +0200)
commit342f321af8333a5496ae47dc66f25a34f79bfa37
tree09c8dfcb879d11eb2e6b93d5ae8e3a891bd1e1f4
parentaf21c9119a37cecb7ff27ce0c2f3cf721e9d0ec4
platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent section mismatch warning

[ Upstream commit 5b44abbc39ca15df80d0da4756078c98c831090f ]

As described in the added code comment, a reference to .exit.text is ok
for drivers registered via module_platform_driver_probe(). Make this
explicit to prevent a section mismatch warning:

WARNING: modpost: drivers/platform/x86/hp/hp-wmi: section mismatch in reference: hp_wmi_driver+0x8 (section: .data) -> hp_wmi_bios_remove (section: .exit.text)

Fixes: c165b80cfecc ("hp-wmi: fix handling of platform device")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231004111624.2667753-1-u.kleine-koenig@pengutronix.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/hp/hp-wmi.c