Unable to build on AlmaLinux 9.4 (kernel 5.14.0-427.42.1.el9_4.x86_64)
Hi,
I'm not able to build it on AlmaLinux 9.4 kernel 5.14.0-427.42.1.el9_4.x86_64:
make testconfig
make[1]: Entering directory '/mnt/stuff/vhci_hcd-1.15.1'
rm -f test/.o test/.ko test/..cmd test/..flags test/.mod.c test/Module.symvers test/Module.markers test/modules.order
rm -rf test/.tmp_versions/
make -C /lib/modules/5.14.0-427.42.1.el9_4.x86_64/build M=/mnt/stuff/vhci_hcd-1.15.1/test PWD=/mnt/stuff/vhci_hcd-1.15.1/test BUILD_PREFIX= KDIR=/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build KVERSION=5.14.0-427.42.1.el9_4.x86_64 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build/include/linux/usb/hcd.h" ' modules
make[2]: Entering directory '/usr/src/kernels/5.14.0-427.42.1.el9_4.x86_64'
CC [M] /mnt/stuff/vhci_hcd-1.15.1/test/test.o
MODPOST /mnt/stuff/vhci_hcd-1.15.1/test/Module.symvers
CC [M] /mnt/stuff/vhci_hcd-1.15.1/test/test.mod.o
LD [M] /mnt/stuff/vhci_hcd-1.15.1/test/test.ko
make[2]: Leaving directory '/usr/src/kernels/5.14.0-427.42.1.el9_4.x86_64'
mkdir -p conf/
echo "// do not edit; automatically generated by 'make testconfig' in vhci-hcd sourcedir" >conf/usb-vhci.config.h
echo "#define USB_VHCI_HCD_VERSION "1.15"" >>conf/usb-vhci.config.h
echo "#define USB_VHCI_HCD_DATE "2025-01-26"" >>conf/usb-vhci.config.h
echo "#define USB_VHCI_IOCIFC_VERSION "1.15"" >>conf/usb-vhci.config.h
echo "#define USB_VHCI_IOCIFC_DATE USB_VHCI_HCD_DATE" >>conf/usb-vhci.config.h
make clean-test
make[2]: Entering directory '/mnt/stuff/vhci_hcd-1.15.1'
rm -f test/.o test/.ko test/..cmd test/..flags test/.mod.c test/Module.symvers test/Module.markers test/modules.order
rm -rf test/.tmp_versions/
make[2]: Leaving directory '/mnt/stuff/vhci_hcd-1.15.1'
if make -C /lib/modules/5.14.0-427.42.1.el9_4.x86_64/build M=/mnt/stuff/vhci_hcd-1.15.1/test PWD=/mnt/stuff/vhci_hcd-1.15.1/test BUILD_PREFIX= KDIR=/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build KVERSION=5.14.0-427.42.1.el9_4.x86_64 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build/include/linux/usb/hcd.h" -DTEST_GIVEBACK_MECH' modules >/dev/null 2>&1; then
echo "//#define OLD_GIVEBACK_MECH" >>conf/usb-vhci.config.h;
else
echo "#define OLD_GIVEBACK_MECH" >>conf/usb-vhci.config.h;
fi
make clean-test
make[2]: Entering directory '/mnt/stuff/vhci_hcd-1.15.1'
rm -f test/.o test/.ko test/..cmd test/..flags test/.mod.c test/Module.symvers test/Module.markers test/modules.order
rm -rf test/.tmp_versions/
make[2]: Leaving directory '/mnt/stuff/vhci_hcd-1.15.1'
if make -C /lib/modules/5.14.0-427.42.1.el9_4.x86_64/build M=/mnt/stuff/vhci_hcd-1.15.1/test PWD=/mnt/stuff/vhci_hcd-1.15.1/test BUILD_PREFIX= KDIR=/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build KVERSION=5.14.0-427.42.1.el9_4.x86_64 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build/include/linux/usb/hcd.h" -DTEST_DEV_BUS_ID' modules >/dev/null 2>&1; then
echo "//#define OLD_DEV_BUS_ID" >>conf/usb-vhci.config.h;
else
echo "#define OLD_DEV_BUS_ID" >>conf/usb-vhci.config.h;
fi
make clean-test
make[2]: Entering directory '/mnt/stuff/vhci_hcd-1.15.1'
rm -f test/.o test/.ko test/..cmd test/..flags test/.mod.c test/Module.symvers test/Module.markers test/modules.order
rm -rf test/.tmp_versions/
make[2]: Leaving directory '/mnt/stuff/vhci_hcd-1.15.1'
if make -C /lib/modules/5.14.0-427.42.1.el9_4.x86_64/build M=/mnt/stuff/vhci_hcd-1.15.1/test PWD=/mnt/stuff/vhci_hcd-1.15.1/test BUILD_PREFIX= KDIR=/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build KVERSION=5.14.0-427.42.1.el9_4.x86_64 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build/include/linux/usb/hcd.h" -DTEST_DEV_INIT_NAME' modules >/dev/null 2>&1; then
echo "//#define NO_DEV_INIT_NAME" >>conf/usb-vhci.config.h;
else
echo "#define NO_DEV_INIT_NAME" >>conf/usb-vhci.config.h;
fi
make clean-test
make[2]: Entering directory '/mnt/stuff/vhci_hcd-1.15.1'
rm -f test/.o test/.ko test/..cmd test/..flags test/*.mod.c test/Module.symvers test/Module.markers test/modules.order
rm -rf test/.tmp_versions/
make[2]: Leaving directory '/mnt/stuff/vhci_hcd-1.15.1'
if make -C /lib/modules/5.14.0-427.42.1.el9_4.x86_64/build M=/mnt/stuff/vhci_hcd-1.15.1/test PWD=/mnt/stuff/vhci_hcd-1.15.1/test BUILD_PREFIX= KDIR=/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build KVERSION=5.14.0-427.42.1.el9_4.x86_64 EXTRA_CFLAGS='-Wno-unused -DEXPORT_SYMTAB -DKBUILD_EXTMOD -DINCLUDE_CORE_HCD="/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build/include/linux/usb/hcd.h" -DTEST_HAS_TT_FLAG' modules >/dev/null 2>&1; then
echo "//#define NO_HAS_TT_FLAG" >>conf/usb-vhci.config.h;
else
echo "#define NO_HAS_TT_FLAG" >>conf/usb-vhci.config.h;
fi
echo "// end of file" >>conf/usb-vhci.config.h
make[1]: Leaving directory '/mnt/stuff/vhci_hcd-1.15.1'
make -C /lib/modules/5.14.0-427.42.1.el9_4.x86_64/build M=/mnt/stuff/vhci_hcd-1.15.1 PWD=/mnt/stuff/vhci_hcd-1.15.1 BUILD_PREFIX= KDIR=/lib/modules/5.14.0-427.42.1.el9_4.x86_64/build KVERSION=5.14.0-427.42.1.el9_4.x86_64 modules
make[1]: Entering directory '/usr/src/kernels/5.14.0-427.42.1.el9_4.x86_64'
CC [M] /mnt/stuff/vhci_hcd-1.15.1/usb-vhci-hcd.o
CC [M] /mnt/stuff/vhci_hcd-1.15.1/usb-vhci-iocifc.o
/mnt/stuff/vhci_hcd-1.15.1/usb-vhci-iocifc.c:1073:10: error: ‘struct class’ has no member named ‘owner’
1073 | .owner = THIS_MODULE,
| ^~~~~
In file included from ./include/linux/linkage.h:7,
from ./arch/x86/include/asm/cache.h:5,
from ./include/linux/cache.h:6,
from ./arch/x86/include/asm/current.h:9,
from ./include/linux/sched.h:12,
from ./include/linux/uaccess.h:8,
from /mnt/stuff/vhci_hcd-1.15.1/usb-vhci-iocifc.c:23:
./include/linux/export.h:17:21: error: initialization of ‘const char *’ from incompatible pointer type ‘struct module *’ [-Werror=incompatible-pointer-types]
17 | #define THIS_MODULE (&__this_module)
| ^
/mnt/stuff/vhci_hcd-1.15.1/usb-vhci-iocifc.c:1073:18: note: in expansion of macro ‘THIS_MODULE’
1073 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
./include/linux/export.h:17:21: note: (near initialization for ‘vhci_iocifc_class.name’)
17 | #define THIS_MODULE (&__this_module)
| ^
/mnt/stuff/vhci_hcd-1.15.1/usb-vhci-iocifc.c:1073:18: note: in expansion of macro ‘THIS_MODULE’
1073 | .owner = THIS_MODULE,
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:299: /mnt/stuff/vhci_hcd-1.15.1/usb-vhci-iocifc.o] Error 1
make[1]: *** [Makefile:1936: /mnt/stuff/vhci_hcd-1.15.1] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-427.42.1.el9_4.x86_64'
make: *** [Makefile:35: default] Error 2