[LTP] LTP build failure with 5.14 on ppc64le

Cyril Hrubis chrubis@suse.cz
Fri May 20 12:58:44 CEST 2022


Hi!
> make -C /lib/modules/5.14.21-150400.19-default/build
> M=/Workspace/ltp-master/testcases/kernel/device-drivers/acpi
>   CC [M]  /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
> In function 'get_sysfs_path':
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:132:11:
> error: implicit declaration of function 'acpi_bus_get_device'; did you
> mean 'acpi_get_gpe_device'? [-Werror=implicit-function-declaration]
>   status = acpi_bus_get_device(handle, &device);
>            ^~~~~~~~~~~~~~~~~~~
>            acpi_get_gpe_device
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:134:40:
> error: dereferencing pointer to incomplete type 'struct acpi_device'
>    sysfs_path = kobject_get_path(&device->dev.kobj, GFP_KERNEL);
>                                         ^~
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:
> In function 'acpi_test_bus':
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.c:407:11:
> error: implicit declaration of function 'acpi_bus_update_power'; did
> you mean 'acpi_os_trace_point'?
> [-Werror=implicit-function-declaration]
>   status = acpi_bus_update_power(device->handle, &state);
>            ^~~~~~~~~~~~~~~~~~~~~
>            acpi_os_trace_point
> cc1: some warnings being treated as errors
> make[7]: *** [/usr/src/linux-5.14.21-150400.19/scripts/Makefile.build:272:
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi/ltp_acpi_cmds.o]
> Error 1
> make[6]: *** [/usr/src/linux-5.14.21-150400.19/Makefile:1882:
> /Workspace/ltp-master/testcases/kernel/device-drivers/acpi] Error 2
> make[5]: *** [../../../linux-5.14.21-150400.19/Makefile:220: __sub-make] Error 2
> make[4]: [../../../../include/mk/module.mk:62: .dep_modules] Error 2 (ignored)
> rm -rf *.mod.c *.o *.ko.unsigned modules.order .tmp* .*.ko .*.cmd Module.symvers
> CC testcases/kernel/device-drivers/block/block_dev_user/block_dev

That's just a LTP kernel module build failure, the modules we have in
LTP does not support all kernel versions and may fail to build. This is
not treated as an error by the build system and when the module fails to
build the test is skipped when tests are executed.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list