Hi Paolo,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net/master]
[also build test ERROR on net-next/master linus/master v5.8-rc1 next-20200618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Paolo-Abeni/net-sched-add-indire...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
ef7232da6bcd4294cbb2d424bc35885721570f01
config: x86_64-randconfig-a001-20200619 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from net/sched/sch_codel.c:54:
> include/net/sch_hint.h:39:43: error: conflicting types for
'codel_dequeue'
INDIRECT_CALLABLE_DECLARE(struct sk_buff
*NET_SCHED_DEQUEUE(struct Qdisc *q));
^
include/net/sch_hint.h:27:27: note: expanded from macro 'NET_SCHED_DEQUEUE'
#define NET_SCHED_DEQUEUE codel_dequeue
^
include/net/codel_impl.h:142:24: note: previous definition is here
static struct sk_buff *codel_dequeue(void *ctx,
^
> net/sched/sch_codel.c:93:29: warning: no previous prototype for
function 'codel_qdisc_dequeue' [-Wmissing-prototypes]
CODEL_SCOPE struct
sk_buff *codel_qdisc_dequeue(struct Qdisc *sch)
^
net/sched/sch_codel.c:93:13: note: declare 'static' if the function is not
intended to be used outside of this translation unit
CODEL_SCOPE struct sk_buff *codel_qdisc_dequeue(struct Qdisc *sch)
^
static
> net/sched/sch_codel.c:115:17: warning: no previous prototype for
function 'codel_qdisc_enqueue' [-Wmissing-prototypes]
CODEL_SCOPE int
codel_qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch,
^
net/sched/sch_codel.c:115:13: note: declare 'static' if the function is not
intended to be used outside of this translation unit
CODEL_SCOPE int codel_qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch,
^
static
2 warnings and 1 error generated.
--
In file included from net/sched/sch_fq_codel.c:25:
> include/net/sch_hint.h:39:43: error: conflicting types for
'codel_dequeue'
INDIRECT_CALLABLE_DECLARE(struct sk_buff
*NET_SCHED_DEQUEUE(struct Qdisc *q));
^
include/net/sch_hint.h:27:27: note: expanded from macro 'NET_SCHED_DEQUEUE'
#define NET_SCHED_DEQUEUE codel_dequeue
^
include/net/codel_impl.h:142:24: note: previous definition is here
static struct sk_buff *codel_dequeue(void *ctx,
^
1 error generated.
vim +/codel_dequeue +39 include/net/sch_hint.h
34
35 #if defined(NET_SCHED_DEQUEUE)
36 INDIRECT_CALLABLE_DECLARE(int NET_SCHED_ENQUEUE(struct sk_buff *skb,
37 struct Qdisc *qdisc,
38 struct sk_buff **to_free));
39 INDIRECT_CALLABLE_DECLARE(struct sk_buff *NET_SCHED_DEQUEUE(struct
Qdisc *q));
40
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org