[corrected linux-can@ email address] On 2/9/23 17:56, Randy Dunlap wrote: > Hi, > > It's possible to have a kernel .config (randconfig) file with > # CONFIG_CAN_CALC_BITTIMING is not set > > which ends up with different number of arguments to can_calc_bittiming(). > > Full compiler error listing is: > > ../drivers/net/can/dev/bittiming.c: In function ‘can_get_bittiming’: > ../drivers/net/can/dev/bittiming.c:145:24: error: too many arguments to function ‘can_calc_bittiming’ > 145 | return can_calc_bittiming(dev, bt, btc, extack); > | ^~~~~~~~~~~~~~~~~~ > In file included from ../include/linux/can/dev.h:18, > from ../drivers/net/can/dev/bittiming.c:7: > ../include/linux/can/bittiming.h:126:1: note: declared here > 126 | can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt, > | ^~~~~~~~~~~~~~~~~~ > > > A failing i386 .config file is attached. > > Do you have any suggestions for resolving this error? > > Thank you. -- ~Randy