]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
can: fix CAN BCM build with CONFIG_PROC_FS disabled
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 26 Apr 2017 18:14:34 +0000 (20:14 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 Apr 2017 07:34:13 +0000 (09:34 +0200)
commitc2701b370e6b4d0022043691b5ac7adad015e4fc
tree87dbde8a95f583461a3e73a33493aa735572fb2c
parentb1513c35317c106a1588f3ab32f6888f0e2afd71
can: fix CAN BCM build with CONFIG_PROC_FS disabled

The introduced namespace support moved the BCM variables for procfs into a
per-net data structure. This leads to a build failure with disabled procfs:

on x86_64:

when CONFIG_PROC_FS is not enabled:

../net/can/bcm.c:1541:14: error: 'struct netns_can' has no member named 'bcmproc_dir'
../net/can/bcm.c:1601:14: error: 'struct netns_can' has no member named 'bcmproc_dir'
../net/can/bcm.c:1696:11: error: 'struct netns_can' has no member named 'bcmproc_dir'
../net/can/bcm.c:1707:15: error: 'struct netns_can' has no member named 'bcmproc_dir'

http://marc.info/?l=linux-can&m=149321842526524&w=2

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/bcm.c