Thread (169 messages) 169 messages, 8 authors, 2023-02-10
STALE1244d REVIEWED: 2 (1M)

[PATCH 11/13] Hide MAX_RAW_MINORS behind #ifdef __KERNEL__

From: Palmer Dabbelt <palmer@dabbelt.com>
Date: 2015-09-09 21:09:36
Also in: linux-arch, linux-fbdev, lkml, netdev
Subsystem: the rest · Maintainer: Linus Torvalds

I don't think this was ever meant to be exposed to userspace.

Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Reviewed-by: Andrew Waterman <redacted>
Reviewed-by: Albert Ou <aou@eecs.berkeley.edu>
---
 include/uapi/linux/raw.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/uapi/linux/raw.h b/include/uapi/linux/raw.h
index 62d543e70603..6d8d87524ff2 100644
--- a/include/uapi/linux/raw.h
+++ b/include/uapi/linux/raw.h
@@ -13,6 +13,8 @@ struct raw_config_request
 	__u64	block_minor;
 };
 
+#ifdef __KERNEL__
 #define MAX_RAW_MINORS CONFIG_MAX_RAW_DEVS
+#endif
 
 #endif /* __LINUX_RAW_H */
-- 
2.4.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help