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 <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
96a70b908f
commit
b1773934fe
@ -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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user