tree:
https://github.com/jpirko/linux_mlxsw petrm_wip
head: c92561acddb910e2e36c78d9ec7111d3d770fafb
commit: c92561acddb910e2e36c78d9ec7111d3d770fafb [31/31] qevent wip
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c92561acddb910e2e36c78d9ec7111d3d770fafb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
net/sched/cls_api.c: In function 'tcf_block_find':
> net/sched/cls_api.c:1263:11: error: 'QEVENT_NONE'
undeclared (first use in this function); did you mean 'ET_NONE'?
1263 |
QEVENT_NONE, extack);
| ^~~~~~~~~~~
| ET_NONE
net/sched/cls_api.c:1263:11: note: each undeclared identifier is reported only once for
each function it appears in
net/sched/cls_api.c: At top level:
> net/sched/cls_api.c:1996:3: error: 'TCA_QEVENT_HOOK'
undeclared here (not in a function); did you mean 'TCA_QEVENT_ACT'?
1996
| [TCA_QEVENT_HOOK] = { .type = NLA_U32 },
| ^~~~~~~~~~~~~~~
| TCA_QEVENT_ACT
> net/sched/cls_api.c:1996:3: error: array index in initializer not
of integer type
net/sched/cls_api.c:1996:3: note: (near initialization for
'tc_qevent_policy')
net/sched/cls_api.c: In function 'tc_new_tfilter':
> net/sched/cls_api.c:2103:17: error: 'QEVENT_DROP'
undeclared (first use in this function)
2103 | qevent_hook = QEVENT_DROP;
| ^~~~~~~~~~~
net/sched/cls_api.c:2105:17: error: 'QEVENT_NONE' undeclared (first use in this
function); did you mean 'ET_NONE'?
2105 | qevent_hook = QEVENT_NONE;
| ^~~~~~~~~~~
| ET_NONE
net/sched/cls_api.c: In function 'tc_del_tfilter':
net/sched/cls_api.c:2322:11: error: 'QEVENT_NONE' undeclared (first use in this
function); did you mean 'ET_NONE'?
2322 | QEVENT_NONE, extack);
| ^~~~~~~~~~~
| ET_NONE
net/sched/cls_api.c: In function 'tc_get_tfilter':
net/sched/cls_api.c:2480:11: error: 'QEVENT_NONE' undeclared (first use in this
function); did you mean 'ET_NONE'?
2480 | QEVENT_NONE, extack);
| ^~~~~~~~~~~
| ET_NONE
--
net/sched/sch_red.c: In function 'red_qevent_change':
> net/sched/sch_red.c:464:7: error: 'QEVENT_DROP'
undeclared (first use in this function)
464 | case QEVENT_DROP:
| ^~~~~~~~~~~
net/sched/sch_red.c:464:7: note: each undeclared identifier is reported only once for
each function it appears in
--
In file included from include/linux/kernel.h:11,
from security/selinux/nlmsgtab.c:10:
security/selinux/nlmsgtab.c: In function 'selinux_nlmsg_lookup':
> include/linux/compiler.h:350:38: error: call to
'__compiletime_assert_208' declared with attribute error: BUILD_BUG_ON failed:
RTM_MAX != (RTM_NEWVLAN + 3)
350 | _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:331:4: note: in definition of macro
'__compiletime_assert'
331 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro
'_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
> security/selinux/nlmsgtab.c:174:3: note: in expansion of macro
'BUILD_BUG_ON'
174 | BUILD_BUG_ON(RTM_MAX != (RTM_NEWVLAN + 3));
| ^~~~~~~~~~~~
vim +1263 net/sched/cls_api.c
18d3eefb17cf19 Vlad Buslov 2019-02-11 1247
18d3eefb17cf19 Vlad Buslov 2019-02-11 1248 /* Find tcf block.
18d3eefb17cf19 Vlad Buslov 2019-02-11 1249 * Set q, parent, cl when appropriate.
18d3eefb17cf19 Vlad Buslov 2019-02-11 1250 */
18d3eefb17cf19 Vlad Buslov 2019-02-11 1251
18d3eefb17cf19 Vlad Buslov 2019-02-11 1252 static struct tcf_block
*tcf_block_find(struct net *net, struct Qdisc **q,
18d3eefb17cf19 Vlad Buslov 2019-02-11 1253 u32 *parent, unsigned long *cl,
18d3eefb17cf19 Vlad Buslov 2019-02-11 1254 int ifindex, u32 block_index,
18d3eefb17cf19 Vlad Buslov 2019-02-11 1255 struct netlink_ext_ack *extack)
18d3eefb17cf19 Vlad Buslov 2019-02-11 1256 {
18d3eefb17cf19 Vlad Buslov 2019-02-11 1257 struct tcf_block *block;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1258 int err = 0;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1259
18d3eefb17cf19 Vlad Buslov 2019-02-11 1260 ASSERT_RTNL();
18d3eefb17cf19 Vlad Buslov 2019-02-11 1261
f64f6128984da2 Petr Machata 2020-04-24 1262 err = __tcf_qdisc_find(net, q, parent,
ifindex, true,
f64f6128984da2 Petr Machata 2020-04-24 @1263 QEVENT_NONE, extack);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1264 if (err)
18d3eefb17cf19 Vlad Buslov 2019-02-11 1265 goto errout;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1266
18d3eefb17cf19 Vlad Buslov 2019-02-11 1267 err = __tcf_qdisc_cl_find(*q, *parent, cl,
ifindex, extack);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1268 if (err)
18d3eefb17cf19 Vlad Buslov 2019-02-11 1269 goto errout_qdisc;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1270
18d3eefb17cf19 Vlad Buslov 2019-02-11 1271 block = __tcf_block_find(net, *q, *cl,
ifindex, block_index, extack);
af736bf071e8cc Dan Carpenter 2019-02-18 1272 if (IS_ERR(block)) {
af736bf071e8cc Dan Carpenter 2019-02-18 1273 err = PTR_ERR(block);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1274 goto errout_qdisc;
af736bf071e8cc Dan Carpenter 2019-02-18 1275 }
18d3eefb17cf19 Vlad Buslov 2019-02-11 1276
18d3eefb17cf19 Vlad Buslov 2019-02-11 1277 return block;
e368fdb61d8e7c Vlad Buslov 2018-09-24 1278
e368fdb61d8e7c Vlad Buslov 2018-09-24 1279 errout_qdisc:
18d3eefb17cf19 Vlad Buslov 2019-02-11 1280 if (*q)
e368fdb61d8e7c Vlad Buslov 2018-09-24 1281 qdisc_put(*q);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1282 errout:
460b360104d515 Cong Wang 2018-09-27 1283 *q = NULL;
e368fdb61d8e7c Vlad Buslov 2018-09-24 1284 return ERR_PTR(err);
e368fdb61d8e7c Vlad Buslov 2018-09-24 1285 }
e368fdb61d8e7c Vlad Buslov 2018-09-24 1286
:::::: The code at line 1263 was first introduced by commit
:::::: f64f6128984da2c9961b5df9c3f27a129221964c qevent wip
:::::: TO: Petr Machata <petrm(a)mellanox.com>
:::::: CC: Petr Machata <petrm(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org