drivers: peci: user space handlers not building correctly #45222
Labels
area: PECI
Platform Environment Control Interface
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
PECI subsystem cannot be enabled with USERSPACE feature
User handlers do not build correctly.
Please also mention any information which could help others to understand
the problem you're facing:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
PECI handlers build correctly
Impact
High
Logs and console output
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c:14:9: error: implicit declaration of function 'Z_SYSCALL_DRIVER_PECI'; did you mean 'Z_SYSCALL_DRIVER_GEN'? [-Werror=implicit-function-declaration]
14 | Z_OOPS(Z_SYSCALL_DRIVER_PECI(dev, config));
| ^~~~~~~~~~~~~~~~~~~~~
/home/jamezaar/ecwork/zephyr_fork/include/syscall_handler.h:293:7: note: in definition of macro 'Z_OOPS'
293 | if (expr) {
| ^~~~
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c:14:36: error: 'config' undeclared (first use in this function); did you mean 'mpu_config'?
14 | Z_OOPS(Z_SYSCALL_DRIVER_PECI(dev, config));
| ^~~~~~
/home/jamezaar/ecwork/zephyr_fork/include/syscall_handler.h:293:7: note: in definition of macro 'Z_OOPS'
293 | if (expr) {
| ^~~~
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c:14:36: note: each undeclared identifier is reported only once for each function it appears in
14 | Z_OOPS(Z_SYSCALL_DRIVER_PECI(dev, config));
| ^~~~~~
/home/jamezaar/ecwork/zephyr_fork/include/syscall_handler.h:293:7: note: in definition of macro 'Z_OOPS'
293 | if (expr) {
| ^~~~
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c: In function 'z_vrfy_peci_enable':
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c:22:36: error: 'enable' undeclared (first use in this function)
22 | Z_OOPS(Z_SYSCALL_DRIVER_PECI(dev, enable));
| ^~~~~~
/home/jamezaar/ecwork/zephyr_fork/include/syscall_handler.h:293:7: note: in definition of macro 'Z_OOPS'
293 | if (expr) {
| ^~~~
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c: In function 'z_vrfy_peci_disable':
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c:30:36: error: 'disable' undeclared (first use in this function)
30 | Z_OOPS(Z_SYSCALL_DRIVER_PECI(dev, disable));
| ^~~~~~~
/home/jamezaar/ecwork/zephyr_fork/include/syscall_handler.h:293:7: note: in definition of macro 'Z_OOPS'
293 | if (expr) {
| ^~~~
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c: In function 'z_vrfy_peci_transfer':
/home/jamezaar/ecwork/zephyr_fork/drivers/peci/peci_handlers.c:41:36: error: 'transfer' undeclared (first use in this function)
41 | Z_OOPS(Z_SYSCALL_DRIVER_PECI(dev, transfer));
| ^~~~~~~~
/home/jamezaar/ecwork/zephyr_fork/include/syscall_handler.h:293:7: note: in definition of macro 'Z_OOPS'
293 | if (expr) { \
Environment (please complete the following information):
Additional context
Add any other context that could be relevant to your issue, such as pin setting,
target configuration, ...
The text was updated successfully, but these errors were encountered: