Skip to content

[BUG] imx93-evk/koptee: Too many arguments to function 'file_allocate_from_inode' #16523

@lupyuen

Description

@lupyuen

Description / Steps to reproduce the issue

NuttX Mirror is failing the build for imx93-evk/koptee:
https://github.com/NuttX/nuttx/actions/runs/15620888808/job/44005310338#step:7:414

Configuration/Tool: imx93-evk/koptee
misc/optee.c: In function 'optee_close':
Error: misc/optee.c:542:27: error: implicit declaration of function 'fs_get' [-Werror=implicit-function-declaration]
  542 |       if (shm->fd > -1 && fs_get(shm->fd, &shm_filep) >= 0)
      |                           ^~~~~~
Error: misc/optee.c:549:11: error: implicit declaration of function 'fs_put' [-Werror=implicit-function-declaration]
  549 |           fs_put(shm_filep);
      |           ^~~~~~
misc/optee.c: In function 'optee_ioctl_shm_register':
Error: misc/optee.c:1041:9: error: too many arguments to function 'file_allocate_from_inode'
 1041 |   ret = file_allocate_from_inode(&g_optee_shm_inode, O_CLOEXEC,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from misc/optee.c:31:
/github/workspace/sources/nuttx/include/nuttx/fs/fs.h:1077:5: note: declared here
 1077 | int file_allocate_from_inode(FAR struct inode *inode, int oflags, off_t pos,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:109: optee.o] Error 1
make[1]: Target 'libdrivers.a' not remade because of errors.
make: *** [tools/LibTargets.mk:107: drivers/libdrivers.a] Error 2
make: Target 'all' not remade because of errors.
/github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu LTS (GitHub Actions)

NuttX Version

master

Issue Architecture

[Arch: arm64]

Issue Area

[Area: Board support]

Host information

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: arm64Issues related to ARM64 (64-bit) architectureArea: Board supportBoard support issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions