This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 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 9af02b832e5 drivers/misc/optee: fix compile error
9af02b832e5 is described below

commit 9af02b832e5cd0f75e2fbf2258420ed57c75f146
Author: hujun5 <[email protected]>
AuthorDate: Thu Nov 12 20:39:46 2026 +0800

    drivers/misc/optee: fix compile error
    
    CC:  vfs/fs_dup2.c misc/optee.c: In function 'optee_shm_mmap':
    misc/optee.c:543:23: error: implicit declaration of function 'this_task'; 
did you mean 'up_this_task'? [-Werror=implicit-function-declaration]
      543 |           shm->munmap(this_task()->group, entry,
          |                       ^~~~~~~~~
          |                       up_this_task
    misc/optee.c:543:34: error: invalid type argument of '->' (have 'int')
      543 |           shm->munmap(this_task()->group, entry,
          |                                  ^~
    
    Signed-off-by: hujun5 <[email protected]>
---
 drivers/misc/optee.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/optee.c b/drivers/misc/optee.c
index 323415d91cc..4056e7ff134 100644
--- a/drivers/misc/optee.c
+++ b/drivers/misc/optee.c
@@ -540,7 +540,7 @@ static int optee_shm_mmap(FAR struct file *filep,
       ret = optee_shm_register(priv, shm);
       if (ret < 0)
         {
-          shm->munmap(this_task()->group, entry,
+          shm->munmap(nxsched_self()->group, entry,
                       entry->vaddr, entry->length);
           optee_shm_free(shm);
         }

Reply via email to