From: Greg Kroah-Hartman Date: Tue, 27 May 2025 14:47:26 +0000 (+0200) Subject: 6.14-stable patches X-Git-Tag: v6.12.31~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a443a81f28d79aeb75b7ed1dd37f478107c39db4;p=thirdparty%2Fkernel%2Fstable-queue.git 6.14-stable patches added patches: err.h-move-iomem_err_ptr-to-err.h.patch --- diff --git a/queue-6.14/err.h-move-iomem_err_ptr-to-err.h.patch b/queue-6.14/err.h-move-iomem_err_ptr-to-err.h.patch new file mode 100644 index 0000000000..0dbccd0d1f --- /dev/null +++ b/queue-6.14/err.h-move-iomem_err_ptr-to-err.h.patch @@ -0,0 +1,46 @@ +From 18311a766c587fc69b1806f1d5943305903b7e6e Mon Sep 17 00:00:00 2001 +From: Raag Jadav +Date: Wed, 12 Feb 2025 11:55:02 +0530 +Subject: err.h: move IOMEM_ERR_PTR() to err.h + +From: Raag Jadav + +commit 18311a766c587fc69b1806f1d5943305903b7e6e upstream. + +Since IOMEM_ERR_PTR() macro deals with an error pointer, a better place +for it is err.h. This helps avoid dependency on io.h for the users that +don't need it. + +Suggested-by: Andy Shevchenko +Signed-off-by: Raag Jadav +Acked-by: Arnd Bergmann +Signed-off-by: Andy Shevchenko +Signed-off-by: Greg Kroah-Hartman +--- + include/linux/err.h | 3 +++ + include/linux/io.h | 2 -- + 2 files changed, 3 insertions(+), 2 deletions(-) + +--- a/include/linux/err.h ++++ b/include/linux/err.h +@@ -44,6 +44,9 @@ static inline void * __must_check ERR_PT + /* Return the pointer in the percpu address space. */ + #define ERR_PTR_PCPU(error) ((void __percpu *)(unsigned long)ERR_PTR(error)) + ++/* Cast an error pointer to __iomem. */ ++#define IOMEM_ERR_PTR(error) (__force void __iomem *)ERR_PTR(error) ++ + /** + * PTR_ERR - Extract the error code from an error pointer. + * @ptr: An error pointer. +--- a/include/linux/io.h ++++ b/include/linux/io.h +@@ -65,8 +65,6 @@ static inline void devm_ioport_unmap(str + } + #endif + +-#define IOMEM_ERR_PTR(err) (__force void __iomem *)ERR_PTR(err) +- + void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, + resource_size_t size); + void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset, diff --git a/queue-6.14/series b/queue-6.14/series index a661c68382..2bf93fc306 100644 --- a/queue-6.14/series +++ b/queue-6.14/series @@ -779,3 +779,4 @@ spi-spi-fsl-dspi-restrict-register-range-for-regmap-.patch spi-spi-fsl-dspi-halt-the-module-after-a-new-message.patch spi-spi-fsl-dspi-reset-sr-flags-before-sending-a-new.patch drm-xe-use-xe_mmio_read32-to-read-mtcfg-register.patch +err.h-move-iomem_err_ptr-to-err.h.patch