This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new cf1e92e5a2 driver/optee: fix compile break
cf1e92e5a2 is described below
commit cf1e92e5a2f0fe54b1d6d531a59e1f64e78170b0
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Fri Jun 13 09:46:29 2025 +0800
driver/optee: fix compile break
update api name accroading to new implementation.
Signed-off-by: dongjiuzhu1 <[email protected]>
---
drivers/misc/optee.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/misc/optee.c b/drivers/misc/optee.c
index 43ec2a5e47..f3e52310bd 100644
--- a/drivers/misc/optee.c
+++ b/drivers/misc/optee.c
@@ -539,14 +539,14 @@ static int optee_close(FAR struct file *filep)
idr_for_each_entry(priv->shms, shm, id)
{
- if (shm->fd > -1 && fs_get(shm->fd, &shm_filep) >= 0)
+ if (shm->fd > -1 && file_get(shm->fd, &shm_filep) >= 0)
{
/* The user did not call close(), prevent vfs auto-close from
* double-freeing our SHM
*/
shm_filep->f_priv = NULL;
- fs_put(shm_filep);
+ file_put(shm_filep);
}
optee_shm_free(shm);
@@ -1038,8 +1038,7 @@ optee_ioctl_shm_register(FAR struct optee_priv_data *priv,
return ret;
}
- ret = file_allocate_from_inode(&g_optee_shm_inode, O_CLOEXEC,
- 0, shm, 0, true);
+ ret = file_allocate_from_inode(&g_optee_shm_inode, O_CLOEXEC, 0, shm, 0);
if (ret < 0)
{
optee_shm_free(shm);