[LTP] LTP build failure with 5.14 on ppc64le
samir mulani
samirmulani93@gmail.com
Fri May 20 12:46:13 CEST 2022
Hi Team,
If anyone is help me with below build error message,
git clone https://github.com/linux-test-project/ltp.git
$ cd ltp
$ make autotools
$ ./configure
$ make
Log,
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
Regards,
Samir M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220520/746b3ae0/attachment.htm>
More information about the ltp
mailing list