All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] asm-generic: correct reference to GENERIC_LIB_DEVMEM_IS_ALLOWED
@ 2021-10-06 14:58 Lukas Bulwahn
  2021-10-06 15:17 ` Arnd Bergmann
  0 siblings, 1 reply; 11+ messages in thread
From: Lukas Bulwahn @ 2021-10-06 14:58 UTC (permalink / raw)
  To: Arnd Bergmann, Luis Chamberlain, Palmer Dabbelt, linux-arch
  Cc: kernel-janitors, linux-kernel, Lukas Bulwahn

Commit 527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")
introduces the config symbol GENERIC_LIB_DEVMEM_IS_ALLOWED, but then
falsely refers to CONFIG_GENERIC_DEVMEM_IS_ALLOWED (note the missing LIB
in the reference) in ./include/asm-generic/io.h.

Luckily, ./scripts/checkkconfigsymbols.py warns on non-existing configs:

GENERIC_DEVMEM_IS_ALLOWED
Referencing files: include/asm-generic/io.h

Correct the name of the config to the intended one.

Fixes: 527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
---
 include/asm-generic/io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index cc7338f9e0d1..6364174504d7 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -1125,7 +1125,7 @@ static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer,
 }
 #endif
 
-#ifndef CONFIG_GENERIC_DEVMEM_IS_ALLOWED
+#ifndef CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED
 extern int devmem_is_allowed(unsigned long pfn);
 #endif
 
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-07-21 20:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 14:58 [PATCH] asm-generic: correct reference to GENERIC_LIB_DEVMEM_IS_ALLOWED Lukas Bulwahn
2021-10-06 15:17 ` Arnd Bergmann
2021-10-06 16:52   ` Palmer Dabbelt
2022-07-07 11:40     ` Lukas Bulwahn
2022-07-07 12:13       ` Arnd Bergmann
2022-07-07 12:20         ` Conor.Dooley
2022-07-07 13:07           ` Arnd Bergmann
2022-07-07 14:41             ` Lukas Bulwahn
2022-07-20 10:50               ` Arnd Bergmann
2022-07-21  6:52                 ` Lukas Bulwahn
2022-07-21 20:41                   ` Lukas Bulwahn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.