From: Greg Kroah-Hartman Date: Thu, 17 Oct 2024 09:33:42 +0000 (+0200) Subject: 5.10-stable patches X-Git-Tag: v5.10.227~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53985c23c4994bacfb8ed0ea36cb5039c154d783;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: device-property-add-const-qualifier-to-device_get_match_data-parameter.patch --- diff --git a/queue-5.10/device-property-add-const-qualifier-to-device_get_match_data-parameter.patch b/queue-5.10/device-property-add-const-qualifier-to-device_get_match_data-parameter.patch new file mode 100644 index 00000000000..0f372775f18 --- /dev/null +++ b/queue-5.10/device-property-add-const-qualifier-to-device_get_match_data-parameter.patch @@ -0,0 +1,65 @@ +From aade55c86033bee868a93e4bf3843c9c99e84526 Mon Sep 17 00:00:00 2001 +From: Andy Shevchenko +Date: Thu, 22 Sep 2022 16:54:10 +0300 +Subject: device property: Add const qualifier to device_get_match_data() parameter + +From: Andy Shevchenko + +commit aade55c86033bee868a93e4bf3843c9c99e84526 upstream. + +Add const qualifier to the device_get_match_data() parameter. +Some of the future users may utilize this function without +forcing the type. + +All the same, dev_fwnode() may be used with a const qualifier. + +Reported-by: kernel test robot +Acked-by: Heikki Krogerus +Signed-off-by: Andy Shevchenko +Link: https://lore.kernel.org/r/20220922135410.49694-1-andriy.shevchenko@linux.intel.com +Signed-off-by: Greg Kroah-Hartman +--- + drivers/base/property.c | 4 ++-- + include/linux/property.h | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +--- a/drivers/base/property.c ++++ b/drivers/base/property.c +@@ -18,7 +18,7 @@ + #include + #include + +-struct fwnode_handle *dev_fwnode(struct device *dev) ++struct fwnode_handle *dev_fwnode(const struct device *dev) + { + return IS_ENABLED(CONFIG_OF) && dev->of_node ? + &dev->of_node->fwnode : dev->fwnode; +@@ -1179,7 +1179,7 @@ int fwnode_graph_parse_endpoint(const st + } + EXPORT_SYMBOL(fwnode_graph_parse_endpoint); + +-const void *device_get_match_data(struct device *dev) ++const void *device_get_match_data(const struct device *dev) + { + return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev); + } +--- a/include/linux/property.h ++++ b/include/linux/property.h +@@ -31,7 +31,7 @@ enum dev_dma_attr { + DEV_DMA_COHERENT, + }; + +-struct fwnode_handle *dev_fwnode(struct device *dev); ++struct fwnode_handle *dev_fwnode(const struct device *dev); + + bool device_property_present(struct device *dev, const char *propname); + int device_property_read_u8_array(struct device *dev, const char *propname, +@@ -379,7 +379,7 @@ bool device_dma_supported(struct device + + enum dev_dma_attr device_get_dma_attr(struct device *dev); + +-const void *device_get_match_data(struct device *dev); ++const void *device_get_match_data(const struct device *dev); + + int device_get_phy_mode(struct device *dev); + diff --git a/queue-5.10/series b/queue-5.10/series index 30a3621351b..16f23e1a496 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -101,6 +101,7 @@ reset-berlin-fix-of-node-leak-in-probe-error-path.patch clocksource-drivers-qcom-add-missing-iounmap-on-erro.patch m68k-fix-kernel_clone_args.flags-in-m68k_clone.patch hwmon-max16065-fix-overflows-seen-when-writing-limit.patch +device-property-add-const-qualifier-to-device_get_match_data-parameter.patch i2c-add-i2c_get_match_data.patch hwmon-max16065-remove-use-of-i2c_match_id.patch hwmon-max16065-fix-alarm-attributes.patch @@ -256,7 +257,6 @@ pps-remove-usage-of-the-deprecated-ida_simple_xx-api.patch pps-add-an-error-check-in-parport_attach.patch usb-renesas-xhci-remove-renesas_xhci_pci_exit.patch xhci-set-quirky-xhc-pci-hosts-to-d3-_after_-stopping.patch -io_uring-sqpoll-do-not-allow-pinning-outside-of-cpuset.patch lockdep-fix-deadlock-issue-between-lockdep-and-rcu.patch mm-only-enforce-minimum-stack-gap-size-if-it-s-sensible.patch i2c-aspeed-update-the-stop-sw-state-when-the-bus-recovery-occurs.patch