tree: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git netlink-validation head: 644e4f56485a315c4d08b743e67e4dcddb6fa4da commit: 8acd53e0cbdd2f39c6c76df1f54cd0740a0acd84 [2/9] netlink: remove type-unsafe validation_data pointer config: x86_64-allmodconfig (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: git checkout 8acd53e0cbdd2f39c6c76df1f54cd0740a0acd84 # save the attached .config to linux build tree make ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): In file included from include/net/rtnetlink.h:6:0, from include/net/sch_generic.h:20, from include/net/pkt_sched.h:9, from net/sched/sch_red.c:17: >> net/sched/sch_red.c:215:42: error: initializer element is not constant [TCA_RED_FLAGS] = NLA_POLICY_BITFIELD32(red_supported_flags), ^ include/net/netlink.h:345:48: note: in definition of macro 'NLA_POLICY_BITFIELD32' { .type = NLA_BITFIELD32, .bitfield32_valid = valid } ^~~~~ net/sched/sch_red.c:215:42: note: (near initialization for 'red_policy[4].<anonymous>.bitfield32_valid') [TCA_RED_FLAGS] = NLA_POLICY_BITFIELD32(red_supported_flags), ^ include/net/netlink.h:345:48: note: in definition of macro 'NLA_POLICY_BITFIELD32' { .type = NLA_BITFIELD32, .bitfield32_valid = valid } ^~~~~ vim +215 net/sched/sch_red.c 209 210 static const struct nla_policy red_policy[TCA_RED_MAX + 1] = { 211 [TCA_RED_UNSPEC] = { .strict_start_type = TCA_RED_FLAGS }, 212 [TCA_RED_PARMS] = { .len = sizeof(struct tc_red_qopt) }, 213 [TCA_RED_STAB] = { .len = RED_STAB_SIZE }, 214 [TCA_RED_MAX_P] = { .type = NLA_U32 }, > 215 [TCA_RED_FLAGS] = NLA_POLICY_BITFIELD32(red_supported_flags), 216 }; 217 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip