wloot /home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:12:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, idVendor);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_idVendor $2 offsetof(struct usb_device_id, idVendor)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:13:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, idProduct);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_idProduct $4 offsetof(struct usb_device_id, idProduct)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:14:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bcdDevice_lo);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bcdDevice_lo $6 offsetof(struct usb_device_id, bcdDevice_lo)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:15:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bcdDevice_hi);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bcdDevice_hi $8 offsetof(struct usb_device_id, bcdDevice_hi)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:16:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bDeviceClass);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bDeviceClass $10 offsetof(struct usb_device_id, bDeviceClass)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:17:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bDeviceSubClass);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bDeviceSubClass $11 offsetof(struct usb_device_id, bDeviceSubClass)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:18:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bDeviceProtocol);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bDeviceProtocol $12 offsetof(struct usb_device_id, bDeviceProtocol)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:19:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bInterfaceClass);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bInterfaceClass $13 offsetof(struct usb_device_id, bInterfaceClass)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:20:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bInterfaceSubClass);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bInterfaceSubClass $14 offsetof(struct usb_device_id, bInterfaceSubClass)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:21:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bInterfaceProtocol);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bInterfaceProtocol $15 offsetof(struct usb_device_id, bInterfaceProtocol)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:22:2: error: unexpected token at start of statement
DEVID_FIELD(usb_device_id, bInterfaceNumber);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_usb_device_id_bInterfaceNumber $16 offsetof(struct usb_device_id, bInterfaceNumber)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:24:2: error: unexpected token at start of statement
DEVID(hid_device_id);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:4:22: note: expanded from macro ‘DEVID’
#define DEVID(devid) DEFINE(SIZE##devid, sizeof(struct devid))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->SIZE_hid_device_id $24 sizeof(struct hid_device_id)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:25:2: error: unexpected token at start of statement
DEVID_FIELD(hid_device_id, bus);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_hid_device_id_bus $0 offsetof(struct hid_device_id, bus)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:26:2: error: unexpected token at start of statement
DEVID_FIELD(hid_device_id, group);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_hid_device_id_group $2 offsetof(struct hid_device_id, group)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:27:2: error: unexpected token at start of statement
DEVID_FIELD(hid_device_id, vendor);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_hid_device_id_vendor $4 offsetof(struct hid_device_id, vendor)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:28:2: error: unexpected token at start of statement
DEVID_FIELD(hid_device_id, product);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’
DEFINE(OFF##devid####field, offsetof(struct devid, field))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->OFF_hid_device_id_product $8 offsetof(struct hid_device_id, product)
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:30:2: error: unexpected token at start of statement
DEVID(ieee1394_device_id);
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/devicetable-offsets.c:4:22: note: expanded from macro ‘DEVID’
#define DEVID(devid) DEFINE(SIZE##devid, sizeof(struct devid))
^
/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’
asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val))
^
<inline asm>:2:1: note: instantiated into assembly here
->SIZE_ieee1394_device_id $32 sizeof(struct ieee1394_device_id)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
16 warnings and 20 errors generated.
make[3]: *** [/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/mod/Makefile:35:scripts/mod/devicetable-offsets.s] 错误 1
make[2]: *** [/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/scripts/Makefile.build:455:scripts/mod] 错误 2
make[2]: *** 正在等待未完成的任务….
HOSTCC scripts/selinux/mdp/mdp
make[1]: *** [/home/sherlock/桌面/android_kernel_huawei_kiwi-lineage-17.1/Makefile:525:scripts] 错误 2
make: *** [Makefile:130:sub-make] 错误 2
这个呢?clang编译的