Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: uapi: move CAN_RAW_FILTER_MAX definition to raw.h

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>

authored by

Oliver Hartkopp and committed by
Marc Kleine-Budde
735d86a8 dc7dabab

+2 -1
-1
include/uapi/linux/can.h
··· 285 285 }; 286 286 287 287 #define CAN_INV_FILTER 0x20000000U /* to be set in can_filter.can_id */ 288 - #define CAN_RAW_FILTER_MAX 512 /* maximum number of can_filter set via setsockopt() */ 289 288 290 289 #endif /* !_UAPI_CAN_H */
+2
include/uapi/linux/can/raw.h
··· 49 49 #include <linux/can.h> 50 50 51 51 #define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW) 52 + #define CAN_RAW_FILTER_MAX 512 /* maximum number of can_filter set via setsockopt() */ 53 + 52 54 enum { 53 55 SCM_CAN_RAW_ERRQUEUE = 1, 54 56 };