On 12/12/22 09:56, Alvaro Karsz wrote:
Even better would be a separate CONFIG_SNET_VDPA_HWMON Kconfig option.
I prefer to wrap everything with a single Kconfig option.
depends on HWMON || HWMON=n
Are you referring here to CONFIG_SNET_VDPA, or to the
CONFIG_SNET_VDPA_HWMON you suggested?
Either
Because if this refers to CONFIG_SNET_VDPA, HWMON=m will block the driver.
No, it won't. It would force SNET_VDPA to be built as module if HWMON
is built as module. Then you would not need IS_REACHABLE but could use
IS_ENABLED instead.
Guenter