From: Christian Breunig Date: Sun, 3 May 2026 20:18:00 +0000 Subject: [PATCH 1/3] kcompat: HAVE_AUXILIARY_DEVICE_ID when mod_devicetable has it --- src/kcompat-generator.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/src/kcompat-generator.sh +++ b/src/kcompat-generator.sh @@ -58,9 +58,10 @@ function gen-aux() { fi gen HAVE_AUXILIARY_DRIVER_INT_REMOVE if string "$HAVE_AUX_INT_REMOVE" equals 1 - # generate HAVE_AUXILIARY_DEVICE_ID only for cases when it's disabled in .config + # Whenever mod_devicetable.h defines struct auxiliary_device_id, vendor + # auxiliary_bus.h must not redefine it (true for CONFIG_AUXILIARY_BUS=y as well). HAVE_AUX_DEV_ID=0 - if ! config_has CONFIG_AUXILIARY_BUS && check struct auxiliary_device_id in "$mh" ; then + if check struct auxiliary_device_id in "$mh" ; then HAVE_AUX_DEV_ID=1 fi gen HAVE_AUXILIARY_DEVICE_ID if string "$HAVE_AUX_DEV_ID" equals 1