can: Kconfig: select CAN driver netlink infrastructure by default
Subsystems (4)
Oliver Hartkopp
maintainerPATCH v2 1/1 can: Kconfig: select CAN driver netlink infrastructure by default
The CAN bus support enabled with CONFIG_CAN provides a socket-based access to CAN interfaces. With the introduction of the latest CAN protocol CAN XL additional configuration status information needs to be exposed to the network layer than formerly provided by standard Linux network drivers.
This requires the CAN driver infrastructure to be selected by default. As the CAN network layer can only operate on CAN interfaces anyway all distributions and common default configs enable at least one CAN driver.
So selecting CONFIG_CAN_DEV and CONFIG_CAN_NETLINK when CONFIG_CAN is selected by the user has no effect on established configurations but solves potential build issues when CONFIG_CAN[_XXX]=y is set together with CANFIG_CAN_DEV=m or CONFIG_CAN_NETLINK=n
---
v2: In fact CONFIG_CAN_NETLINK was missing too. Reported by kernel test robot.
---
net/can/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
net/can/Kconfig +2 -0
@@ -3,10 +3,12 @@ # Controller Area Network (CAN) network layer core configuration # menuconfig CAN tristate "CAN bus subsystem support" + select CAN_DEV + select CAN_NETLINK help Controller Area Network (CAN) is a slow (up to 1Mbit/s) serial communications protocol. Development of the CAN bus started in 1983 at Robert Bosch GmbH, and the protocol was officially released in 1986. The CAN bus was originally mainly for automotive,
Signature · 1 line
2.47.3