Patch "drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()

to the 4.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drivers-depend-on-has_iomem-for-devm_platform_ioremap_resource.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 837ccda3480d2861c09aabc5fa014be18df9dd3c Mon Sep 17 00:00:00 2001
From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
Date: Thu, 21 Feb 2019 17:26:27 +0100
Subject: drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()

From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>

commit 837ccda3480d2861c09aabc5fa014be18df9dd3c upstream.

We only build devm_ioremap_resource() if HAS_IOMEM is selected, so this
dependency must cascade down to devm_platform_ioremap_resource().

Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/base/platform.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -88,6 +88,7 @@ EXPORT_SYMBOL_GPL(platform_get_resource)
  *        resource managemend
  * @index: resource index
  */
+#ifdef CONFIG_HAS_IOMEM
 void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev,
 					     unsigned int index)
 {
@@ -97,6 +98,7 @@ void __iomem *devm_platform_ioremap_reso
 	return devm_ioremap_resource(&pdev->dev, res);
 }
 EXPORT_SYMBOL_GPL(devm_platform_ioremap_resource);
+#endif /* CONFIG_HAS_IOMEM */
 
 /**
  * platform_get_irq - get an IRQ for a device


Patches currently in stable-queue which might be from bgolaszewski@xxxxxxxxxxxx are

queue-4.19/drivers-depend-on-has_iomem-for-devm_platform_ioremap_resource.patch
queue-4.19/drivers-provide-devm_platform_ioremap_resource.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux