From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7BD52C9C for ; Wed, 5 Jan 2022 12:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641384280; x=1672920280; h=date:from:to:cc:subject:message-id:mime-version; bh=kYIb/dOGRrqK3IjlCBA1zi0pKK37fygCdMsbt9ergPk=; b=OTY324B/fbmgQkdLsxi8lk9kwgN7nFABJfx4EVGsGmSd+FO1L0nBeXpj QOSBQ0ZyYPYfycDaPFbmz7WDxk8lEDZsk9MLkR4Z9wCVu8CTPtnX2rTIu FiOYlqgefkIU+YTrREXjky+K7r99VFpCpforebD3rAwm0YRs93f7dXd04 YYSnaOPOgrWeJKsNi97xC+yzpW9x5nu3B/ZH0sjHcxgZu59uz0+gC4/ER 5G/IMyuifxd5rBeue2SknRgN/W3aWC9ndQOxI7UOVh6MOIvZ0fdsoW66o fnS3jaL6K6v7OEO2/9MvgpuwNeT8rDAB5iJ6rW99Xc2sCi2UKuwu9KY4s Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10217"; a="229743617" X-IronPort-AV: E=Sophos;i="5.88,263,1635231600"; d="scan'208";a="229743617" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2022 04:04:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,263,1635231600"; d="scan'208";a="472469743" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 05 Jan 2022 04:04:38 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n551x-000Ga0-Sy; Wed, 05 Jan 2022 12:04:37 +0000 Date: Wed, 5 Jan 2022 20:03:55 +0800 From: kernel test robot To: Eric Dumazet Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: net/ipv6/ip6_gre.c:861:20: warning: unused function 'ip6gre_tnl_addr_conflict' Message-ID: <202201051937.PF3UZQy3-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) 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 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@mail.ru 2012-08-10 846 c12b395a46646b xeb@mail.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@mail.ru 2012-08-10 849 * @t: the outgoing tunnel device c12b395a46646b xeb@mail.ru 2012-08-10 850 * @hdr: IPv6 header from the incoming packet c12b395a46646b xeb@mail.ru 2012-08-10 851 * c12b395a46646b xeb@mail.ru 2012-08-10 852 * Description: c12b395a46646b xeb@mail.ru 2012-08-10 853 * Avoid trivial tunneling loop by checking that tunnel exit-point c12b395a46646b xeb@mail.ru 2012-08-10 854 * doesn't match source of incoming packet. c12b395a46646b xeb@mail.ru 2012-08-10 855 * c12b395a46646b xeb@mail.ru 2012-08-10 856 * Return: c12b395a46646b xeb@mail.ru 2012-08-10 857 * 1 if conflict, c12b395a46646b xeb@mail.ru 2012-08-10 858 * 0 else c12b395a46646b xeb@mail.ru 2012-08-10 859 **/ c12b395a46646b xeb@mail.ru 2012-08-10 860 c12b395a46646b xeb@mail.ru 2012-08-10 @861 static inline bool ip6gre_tnl_addr_conflict(const struct ip6_tnl *t, c12b395a46646b xeb@mail.ru 2012-08-10 862 const struct ipv6hdr *hdr) c12b395a46646b xeb@mail.ru 2012-08-10 863 { c12b395a46646b xeb@mail.ru 2012-08-10 864 return ipv6_addr_equal(&t->parms.raddr, &hdr->saddr); c12b395a46646b xeb@mail.ru 2012-08-10 865 } c12b395a46646b xeb@mail.ru 2012-08-10 866 :::::: The code at line 861 was first introduced by commit :::::: c12b395a46646bab69089ce7016ac78177f6001f gre: Support GRE over IPv6 :::::: TO: xeb@mail.ru :::::: CC: David S. Miller --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org