]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Oct 2023 08:19:07 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Oct 2023 08:19:07 +0000 (10:19 +0200)
It's not needed.

queue-4.14/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch [deleted file]
queue-4.14/series
queue-4.19/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch [deleted file]
queue-4.19/series
queue-5.10/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch [deleted file]
queue-5.10/series
queue-5.4/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch [deleted file]
queue-5.4/series

diff --git a/queue-4.14/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch b/queue-4.14/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
deleted file mode 100644 (file)
index 2af10a9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From 956d3b5be914be989ba168c30d717fde304d8f3b Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Wed, 4 Oct 2023 13:16:24 +0200
-Subject: platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent
- section mismatch warning
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-[ 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-wmi.c |    8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
---- a/drivers/platform/x86/hp-wmi.c
-+++ b/drivers/platform/x86/hp-wmi.c
-@@ -1001,7 +1001,13 @@ static const struct dev_pm_ops hp_wmi_pm
-       .restore  = hp_wmi_resume_handler,
- };
--static struct platform_driver hp_wmi_driver = {
-+/*
-+ * hp_wmi_bios_remove() lives in .exit.text. For drivers registered via
-+ * module_platform_driver_probe() this is ok because they cannot get unbound at
-+ * runtime. So mark the driver struct with __refdata to prevent modpost
-+ * triggering a section mismatch warning.
-+ */
-+static struct platform_driver hp_wmi_driver __refdata = {
-       .driver = {
-               .name = "hp-wmi",
-               .pm = &hp_wmi_pm_ops,
index 06a8fc7973f539289e7fa0a0f84aa385be1f2f91..32bca27ba803f348523614fe0687afefcb98a442 100644 (file)
@@ -1,5 +1,4 @@
 rdma-cxgb4-check-skb-value-for-failure-to-allocate.patch
-platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
 hid-logitech-hidpp-fix-kernel-crash-on-receiver-usb-disconnect.patch
 drm-etvnaviv-fix-bad-backport-leading-to-warning.patch
 ieee802154-ca8210-fix-a-potential-uaf-in-ca8210_prob.patch
diff --git a/queue-4.19/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch b/queue-4.19/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
deleted file mode 100644 (file)
index 154f7f4..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From a4b467c1e7741ec60e6697f8edccaf83d29d61e8 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Wed, 4 Oct 2023 13:16:24 +0200
-Subject: platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent
- section mismatch warning
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-[ 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-wmi.c |    8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
---- a/drivers/platform/x86/hp-wmi.c
-+++ b/drivers/platform/x86/hp-wmi.c
-@@ -1001,7 +1001,13 @@ static const struct dev_pm_ops hp_wmi_pm
-       .restore  = hp_wmi_resume_handler,
- };
--static struct platform_driver hp_wmi_driver = {
-+/*
-+ * hp_wmi_bios_remove() lives in .exit.text. For drivers registered via
-+ * module_platform_driver_probe() this is ok because they cannot get unbound at
-+ * runtime. So mark the driver struct with __refdata to prevent modpost
-+ * triggering a section mismatch warning.
-+ */
-+static struct platform_driver hp_wmi_driver __refdata = {
-       .driver = {
-               .name = "hp-wmi",
-               .pm = &hp_wmi_pm_ops,
index 965aa034316bea8fe3c3452b1180325927603808..92b80aafe727c476e0e95b87aaa365da6a607d19 100644 (file)
@@ -3,7 +3,6 @@ net-use-indirect-calls-helpers-at-the-socket-layer.patch
 net-fix-kernel-doc-warnings-for-socket.c.patch
 net-prevent-rewrite-of-msg_name-in-sock_sendmsg.patch
 rdma-cxgb4-check-skb-value-for-failure-to-allocate.patch
-platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
 hid-logitech-hidpp-fix-kernel-crash-on-receiver-usb-disconnect.patch
 quota-fix-slow-quotaoff.patch
 net-prevent-address-rewrite-in-kernel_bind.patch
diff --git a/queue-5.10/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch b/queue-5.10/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
deleted file mode 100644 (file)
index 1a05c15..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-From 8b9c58c64c01a5088e1c95822d9035d2b7293e3b Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Wed, 4 Oct 2023 13:16:24 +0200
-Subject: platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent
- section mismatch warning
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-[ 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-wmi.c | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
-index 6642d09b17b55..364d95cdaf2db 100644
---- a/drivers/platform/x86/hp-wmi.c
-+++ b/drivers/platform/x86/hp-wmi.c
-@@ -986,7 +986,13 @@ static const struct dev_pm_ops hp_wmi_pm_ops = {
-       .restore  = hp_wmi_resume_handler,
- };
--static struct platform_driver hp_wmi_driver = {
-+/*
-+ * hp_wmi_bios_remove() lives in .exit.text. For drivers registered via
-+ * module_platform_driver_probe() this is ok because they cannot get unbound at
-+ * runtime. So mark the driver struct with __refdata to prevent modpost
-+ * triggering a section mismatch warning.
-+ */
-+static struct platform_driver hp_wmi_driver __refdata = {
-       .driver = {
-               .name = "hp-wmi",
-               .pm = &hp_wmi_pm_ops,
--- 
-2.40.1
-
index 06ff20db8761c493414ba4d9924732935972cbea..b905f7463471d539696aff466738e2cac09c5da1 100644 (file)
@@ -2,7 +2,6 @@ rdma-srp-make-struct-scsi_cmnd-and-struct-srp_reques.patch
 rdma-srp-do-not-call-scsi_done-from-srp_abort.patch
 rdma-cxgb4-check-skb-value-for-failure-to-allocate.patch
 perf-arm-cmn-fix-the-unhandled-overflow-status-of-co.patch
-platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
 lib-test_meminit-fix-off-by-one-error-in-test_pages.patch
 hid-logitech-hidpp-fix-kernel-crash-on-receiver-usb-disconnect.patch
 quota-fix-slow-quotaoff.patch
diff --git a/queue-5.4/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch b/queue-5.4/platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
deleted file mode 100644 (file)
index 5f2a84a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-From cc07d5c31446b9ce43950ac7e0c63c3506dca785 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Wed, 4 Oct 2023 13:16:24 +0200
-Subject: platform/x86: hp-wmi:: Mark driver struct with __refdata to prevent
- section mismatch warning
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-[ 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-wmi.c | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
-index d3a329b201b1e..f7d714a775300 100644
---- a/drivers/platform/x86/hp-wmi.c
-+++ b/drivers/platform/x86/hp-wmi.c
-@@ -964,7 +964,13 @@ static const struct dev_pm_ops hp_wmi_pm_ops = {
-       .restore  = hp_wmi_resume_handler,
- };
--static struct platform_driver hp_wmi_driver = {
-+/*
-+ * hp_wmi_bios_remove() lives in .exit.text. For drivers registered via
-+ * module_platform_driver_probe() this is ok because they cannot get unbound at
-+ * runtime. So mark the driver struct with __refdata to prevent modpost
-+ * triggering a section mismatch warning.
-+ */
-+static struct platform_driver hp_wmi_driver __refdata = {
-       .driver = {
-               .name = "hp-wmi",
-               .pm = &hp_wmi_pm_ops,
--- 
-2.40.1
-
index c852396143b230d0978735f06dfb165ed2c77505..ed587fc454ca41c7784819eb61eb914e0e151865 100644 (file)
@@ -1,5 +1,4 @@
 rdma-cxgb4-check-skb-value-for-failure-to-allocate.patch
-platform-x86-hp-wmi-mark-driver-struct-with-__refdat.patch
 lib-test_meminit-fix-off-by-one-error-in-test_pages.patch
 pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch
 hid-logitech-hidpp-fix-kernel-crash-on-receiver-usb-disconnect.patch