Skip to contentSkip to conversation

net: initialize online_mask unconditionally in __netif_set_xps_queue()

PATCH Yury Norov 1 participant 1 message Oct 14, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Yury Norov

author
#1 lore raw
Quoted 13 lines · kernel test robot

net/core/dev.c: In function '__netif_set_xps_queue':

Quoted 1 line
Quoted 1 line

net/core/dev.c:2571:29: warning: passing argument 1 of 'bitmap_fill' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

    2571 |                 bitmap_fill(online_mask, nr_ids);
         |                             ^~~~~~~~~~~
   In file included from include/linux/cpumask.h:12,
                    from arch/loongarch/include/asm/processor.h:9,
                    from arch/loongarch/include/asm/thread_info.h:15,
                    from include/linux/thread_info.h:60,
                    from include/asm-generic/current.h:5,
                    from ./arch/loongarch/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from include/linux/uaccess.h:8,
                    from net/core/dev.c:71:

Damn, sure. I'll send v3. Sorry for noise.