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 b1773934fe note_driver: fix build error
b1773934fe is described below

commit b1773934fe9259aae0c755b3c00df2b7b8d881b5
Author: pengyiqiang <pengyiqi...@xiaomi.com>
AuthorDate: Wed Feb 1 12:41:47 2023 +0800

    note_driver: fix build error
    
    note/note_driver.c: In function 'note_isenabled':
    note/note_driver.c:278:7: error: invalid type argument of unary '*' (have 
'int')
      278 |   if (CPU_ISSET(&g_note_filter.mode.cpuset, this_cpu()) == 0)
          |       ^~~~~~~~~
    note/note_driver.c:278:7: error: invalid operands to binary << (have 'int' 
and 'volatile cpu_set_t *' {aka 'volatile unsigned char *'})
      278 |   if (CPU_ISSET(&g_note_filter.mode.cpuset, this_cpu()) == 0)
          |       ^~~~~~~~~
          |                 |
          |                 volatile cpu_set_t * {aka volatile unsigned char *}
    
    Signed-off-by: pengyiqiang <pengyiqi...@xiaomi.com>
---
 drivers/note/note_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c
index e00e318d1f..354787bd48 100644
--- a/drivers/note/note_driver.c
+++ b/drivers/note/note_driver.c
@@ -275,7 +275,7 @@ static inline int note_isenabled(void)
 #ifdef CONFIG_SMP
   /* Ignore notes that are not in the set of monitored CPUs */
 
-  if (CPU_ISSET(&g_note_filter.mode.cpuset, this_cpu()) == 0)
+  if (CPU_ISSET(this_cpu(), &g_note_filter.mode.cpuset) == 0)
     {
       /* Not in the set of monitored CPUs.  Do not log the note. */
 

Reply via email to