Re: [PATCH net-next] can: fix build error without CONFIG_PROC_FS

2017-04-27 Thread Oliver Hartkopp
Hello Arnd, many thanks for your patch. Btw > static void canbcm_pernet_exit(struct net *net) > { > +#ifdef CONFIG_PROC_FS >/* remove /proc/net/can-bcm directory */ >if (IS_ENABLED(CONFIG_PROC_FS)) { >if (net->can.bcmproc_dir) >remove_proc_entry("can-bc

Re: [PATCH net-next] can: fix build error without CONFIG_PROC_FS

2017-04-27 Thread Marc Kleine-Budde
Hello Arnd, On 04/27/2017 04:21 PM, Arnd Bergmann wrote: > The procfs dir entry was added inside of an #ifdef, causing a build error > when we try to access it without CONFIG_PROC_FS set: > > net/can/bcm.c:1541:14: error: 'struct netns_can' has no member named > 'bcmproc_dir' > net/can/bcm.c: In

[PATCH net-next] can: fix build error without CONFIG_PROC_FS

2017-04-27 Thread Arnd Bergmann
The procfs dir entry was added inside of an #ifdef, causing a build error when we try to access it without CONFIG_PROC_FS set: net/can/bcm.c:1541:14: error: 'struct netns_can' has no member named 'bcmproc_dir' net/can/bcm.c: In function 'bcm_connect': net/can/bcm.c:1601:14: error: 'struct netns_c