[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201051937.PF3UZQy3-lkp@intel.com>
Date: Wed, 5 Jan 2022 20:03:55 +0800
From: kernel test robot <lkp@...el.com>
To: Eric Dumazet <edumazet@...gle.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: net/ipv6/ip6_gre.c:861:20: warning: unused function
'ip6gre_tnl_addr_conflict'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c9e6606c7fe92b50a02ce51dda82586ebdf99b48
commit: 919067cc845f323a80b6fe987b64238bd82d309e net: add CONFIG_PCPU_DEV_REFCNT
date: 10 months ago
config: mips-randconfig-r002-20220105 (https://download.01.org/0day-ci/archive/20220105/202201051937.PF3UZQy3-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e30ed3acad794dd0aec400e617daffc6cc3d)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=919067cc845f323a80b6fe987b64238bd82d309e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 919067cc845f323a80b6fe987b64238bd82d309e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/msm/ fs/ net/ipv6/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> net/ipv6/ip6_gre.c:861:20: warning: unused function 'ip6gre_tnl_addr_conflict'
static inline bool ip6gre_tnl_addr_conflict(const struct ip6_tnl
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 154, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $1, $2 # atomic_fetch_sub
subu $0, $1, $3
sc $0, $2
beqz $0, 1b
.set pop
move $0, $1
'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project d5b6e30ed3acad794dd0aec400e617daffc6cc3d)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-d5b6e30ed3/bin
clang-14: note: diagnostic msg:
Makefile arch drivers fs include kernel net nr_bisected scripts sound source usr
vim +/ip6gre_tnl_addr_conflict +861 net/ipv6/ip6_gre.c
c12b395a46646b xeb@...l.ru 2012-08-10 846
c12b395a46646b xeb@...l.ru 2012-08-10 847 /**
7ccbdff13e8df6 Sun Lianwen 2018-05-03 848 * ip6gre_tnl_addr_conflict - compare packet addresses to tunnel's own
c12b395a46646b xeb@...l.ru 2012-08-10 849 * @t: the outgoing tunnel device
c12b395a46646b xeb@...l.ru 2012-08-10 850 * @hdr: IPv6 header from the incoming packet
c12b395a46646b xeb@...l.ru 2012-08-10 851 *
c12b395a46646b xeb@...l.ru 2012-08-10 852 * Description:
c12b395a46646b xeb@...l.ru 2012-08-10 853 * Avoid trivial tunneling loop by checking that tunnel exit-point
c12b395a46646b xeb@...l.ru 2012-08-10 854 * doesn't match source of incoming packet.
c12b395a46646b xeb@...l.ru 2012-08-10 855 *
c12b395a46646b xeb@...l.ru 2012-08-10 856 * Return:
c12b395a46646b xeb@...l.ru 2012-08-10 857 * 1 if conflict,
c12b395a46646b xeb@...l.ru 2012-08-10 858 * 0 else
c12b395a46646b xeb@...l.ru 2012-08-10 859 **/
c12b395a46646b xeb@...l.ru 2012-08-10 860
c12b395a46646b xeb@...l.ru 2012-08-10 @861 static inline bool ip6gre_tnl_addr_conflict(const struct ip6_tnl *t,
c12b395a46646b xeb@...l.ru 2012-08-10 862 const struct ipv6hdr *hdr)
c12b395a46646b xeb@...l.ru 2012-08-10 863 {
c12b395a46646b xeb@...l.ru 2012-08-10 864 return ipv6_addr_equal(&t->parms.raddr, &hdr->saddr);
c12b395a46646b xeb@...l.ru 2012-08-10 865 }
c12b395a46646b xeb@...l.ru 2012-08-10 866
:::::: The code at line 861 was first introduced by commit
:::::: c12b395a46646bab69089ce7016ac78177f6001f gre: Support GRE over IPv6
:::::: TO: xeb@...l.ru <xeb@...l.ru>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists