]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
can: uapi: move CAN_RAW_FILTER_MAX definition to raw.h
authorOliver Hartkopp <socketcan@hartkopp.net>
Fri, 9 Jun 2023 12:10:51 +0000 (14:10 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 22 Jun 2023 07:44:28 +0000 (09:44 +0200)
CAN_RAW_FILTER_MAX is only relevant for CAN_RAW sockets and used in
linux/can/raw.c or in userspace applications that include the raw.h
file anyway.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/all/20230609121051.9631-1-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/uapi/linux/can.h
include/uapi/linux/can/raw.h

index dd645ea72306c3f69ee0a0bd1224acce8e552849..939db23882084fd0976a0e3739e7b198e917fb0e 100644 (file)
@@ -285,6 +285,5 @@ struct can_filter {
 };
 
 #define CAN_INV_FILTER 0x20000000U /* to be set in can_filter.can_id */
-#define CAN_RAW_FILTER_MAX 512 /* maximum number of can_filter set via setsockopt() */
 
 #endif /* !_UAPI_CAN_H */
index ff12f525c37cebcf6442344b78af91e78b4cf955..31622c9b7988d3a4321c5a6d898b66c57bde04cb 100644 (file)
@@ -49,6 +49,8 @@
 #include <linux/can.h>
 
 #define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW)
+#define CAN_RAW_FILTER_MAX 512 /* maximum number of can_filter set via setsockopt() */
+
 enum {
        SCM_CAN_RAW_ERRQUEUE = 1,
 };