blob: 3326dd79a3b19cc7f12fa46f0d4fd3e0a9d6640e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From: Christian Breunig <christian@breunig.cc>
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
|