[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMZ6RqKVi8GFxU7s2zkzcv9RLSr_GidayjKu1YyNFRDOijUvgg@mail.gmail.com>
Date: Mon, 16 Nov 2020 23:44:54 +0900
From: Vincent MAILHOL <mailhol.vincent@...adoo.fr>
To: Marc Kleine-Budde <mkl@...gutronix.de>
Cc: linux-can <linux-can@...r.kernel.org>,
Oliver Hartkopp <socketcan@...tkopp.net>,
Arunachalam Santhanam <arunachalam.santhanam@...bosch.com>,
Wolfgang Grandegger <wg@...ndegger.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Masahiro Yamada <masahiroy@...nel.org>,
open list <linux-kernel@...r.kernel.org>,
"open list:NETWORKING DRIVERS" <netdev@...r.kernel.org>
Subject: Re: [PATCH v6] can: usb: etas_es58X: add support for ETAS ES58X CAN
USB interfaces
On Mon. 16 Nov 2020 at 03:55, Marc Kleine-Budde wrote:
> On 11/14/20 4:22 PM, Vincent Mailhol wrote:
> > This driver supports the ES581.4, ES582.1 and ES584.1 interfaces from
> > ETAS GmbH (https://www.etas.com/en/products/es58x.php).
> >
> > Co-developed-by: Arunachalam Santhanam <arunachalam.santhanam@...bosch.com>
> > Signed-off-by: Arunachalam Santhanam <arunachalam.santhanam@...bosch.com>
> > Signed-off-by: Vincent Mailhol <mailhol.vincent@...adoo.fr>
>
> The driver fails to compile with CONFIG_SYSFS switched off
>
> CC [M] drivers/net/can/usb/etas_es58x/es58x_core.o
> drivers/net/can/usb/etas_es58x/es58x_core.c: In function ‘es58x_init_netdev’:
> drivers/net/can/usb/etas_es58x/es58x_core.c:2380:32: error: ‘struct netdev_queue’ has no member named ‘dql’
> 2380 | netdev_get_tx_queue(netdev, 0)->dql.min_limit =
> | ^~
Thanks, nice catch!
CONFIG_SYSFS is an expert setting, I totally missed that one. Took me
actually a couple of minutes navigating in the menuconfig to find how
to remove the option.
The root cause is actually on CONFIG_BQL (which depends on
CONFIG_SYSFS).
Reference: https://elixir.bootlin.com/linux/latest/source/include/linux/netdevice.h#L636
Will send a v7 patch right after.
Out of curiosity, how did you find this? Did you find it during a code
review or did you just happen to have a .config with CONFIG_SYSFS
Yours sincerely,
Vincent Mailhol
Powered by blists - more mailing lists