lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 17 Jun 2019 09:21:40 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     LKML <linux-kernel@...r.kernel.org>, linux-iio@...r.kernel.org
Cc:     Geert Uytterhoeven <geert@...ux-m68k.org>,
        Kjeld Flarup <kfa@...f.com>,
        Patrick Havelange <patrick.havelange@...ensium.com>,
        William Breathitt Gray <vilhelm.gray@...il.com>,
        Richard Weinberger <richard@....at>
Subject: [PATCH] counter: fix ftm-quaddec build error on UML

From: Randy Dunlap <rdunlap@...radead.org>

Fix build error on user-mode Linux, which does not set HAS_IOMEM,
so devm_ioremap() is not available.  Fixes this build error:

ERROR: "devm_ioremap" [drivers/counter/ftm-quaddec.ko] undefined!

Fixes: a3b9a99980d9 ("counter: add FlexTimer Module Quadrature decoder counter driver")

Reported-by: Geert Uytterhoeven <geert@...ux-m68k.org>
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Kjeld Flarup <kfa@...f.com>
Cc: Patrick Havelange <patrick.havelange@...ensium.com>
Cc: William Breathitt Gray <vilhelm.gray@...il.com>
Cc: linux-iio@...r.kernel.org
---
BTW, please fix these lines to have ending '>' characters:
MODULE_AUTHOR("Kjeld Flarup <kfa@...f.com");
MODULE_AUTHOR("Patrick Havelange <patrick.havelange@...ensium.com");

 drivers/counter/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- lnx-52-rc5.orig/drivers/counter/Kconfig
+++ lnx-52-rc5/drivers/counter/Kconfig
@@ -51,6 +51,7 @@ config STM32_LPTIMER_CNT
 
 config FTM_QUADDEC
 	tristate "Flex Timer Module Quadrature decoder driver"
+	depends on HAS_IOMEM
 	help
 	  Select this option to enable the Flex Timer Quadrature decoder
 	  driver.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ