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

can: remove obsolete pernet_operations definitions

The namespace support for the CAN subsystem does not need any additional
memory. So when ".size = 0" there's no extra memory allocated by the system.
And therefore ".id" is obsolete too.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Oliver Hartkopp and committed by
Marc Kleine-Budde
48452c16 a7bbd28f

-4
-4
net/can/af_can.c
··· 75 75 module_param(stats_timer, int, S_IRUGO); 76 76 MODULE_PARM_DESC(stats_timer, "enable timer for statistics (default:on)"); 77 77 78 - static int can_net_id; 79 - 80 78 static struct kmem_cache *rcv_cache __read_mostly; 81 79 82 80 /* table of registered CAN protocols */ ··· 933 935 static struct pernet_operations can_pernet_ops __read_mostly = { 934 936 .init = can_pernet_init, 935 937 .exit = can_pernet_exit, 936 - .id = &can_net_id, 937 - .size = 0, 938 938 }; 939 939 940 940 static __init int can_init(void)