From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43933C433EF for ; Tue, 21 Jun 2022 12:32:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE3C06B0072; Tue, 21 Jun 2022 08:32:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B92ED6B0073; Tue, 21 Jun 2022 08:32:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A5BCF6B0074; Tue, 21 Jun 2022 08:32:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 929796B0072 for ; Tue, 21 Jun 2022 08:32:39 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6691A3501C for ; Tue, 21 Jun 2022 12:32:39 +0000 (UTC) X-FDA: 79602181638.11.75C03C4 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf26.hostedemail.com (Postfix) with ESMTP id AE5D61400B2 for ; Tue, 21 Jun 2022 12:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655814755; x=1687350755; h=date:from:to:cc:subject:message-id:mime-version; bh=puqlpfLoufQcrSGWfuk338gWOcLxoRktPSd52RUZSLE=; b=ALjNq7/kPR7BiSeRjnmL5uT3/3tvEMkDRCgxlnrWzIIz8BCbBgWsONgi gJTnik6oTzRX49AECdBO5MEZVH+3yfbtdQOygBMevImEfd+1DBv6rxx7P YUoXN2fEsO3azYO1gwhB+mv22jcgdtHSC4ji6O3quUhux+TDbG0Dtr5ch uNSwh3sZ8gD0z1myIsP4QdWHwqEizS0EL0atchSA2DLyuP8AMRUXTDoNh aR4kqydDqGvC7rXBE8i/kuxziufTQeXhKxR7apgJ6/QmkWnlHMYUBSpWa aRaZW1AcRqFV+Jqazu3THKk+5Khytzov1l2kPKuK8D3PP46YwWZHHsm+7 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10384"; a="344098011" X-IronPort-AV: E=Sophos;i="5.92,209,1650956400"; d="scan'208";a="344098011" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2022 05:32:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,209,1650956400"; d="scan'208";a="585265562" Received: from lkp-server02.sh.intel.com (HELO afd2e3565656) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 21 Jun 2022 05:32:33 -0700 Received: from kbuild by afd2e3565656 with local (Exim 4.95) (envelope-from ) id 1o3d3Y-00005H-Ig; Tue, 21 Jun 2022 12:32:32 +0000 Date: Tue, 21 Jun 2022 20:31:44 +0800 From: kernel test robot To: Eric Dumazet Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 3790/4834] net/ipv6/raw.c:338:40: warning: variable 'daddr' set but not used Message-ID: <202206212029.Yr5m7Cd3-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655814756; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=Ux8rSpT6Kt+0QKMim032aFF9F/+TyOs/TcfXhSUflsY=; b=M+jl+HqppO/hTLbZsvL+veqdXx6eV5gWLWNsQfEvISuvpuD2Xaf4TVHQYH5035FfclxFsH aq4V6bW+/yh5obKM/36px5cymOPYT5wJkfPusireQnK47AGbss+0/5kS2Qn5uObdL3cfLp cS4d0N349ZTbcDySCQOACDT+xzOIinU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="ALjNq7/k"; spf=none (imf26.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655814756; a=rsa-sha256; cv=none; b=FkMv/Fqilk4N6CJJX87jTWaftCXPH0Uht1fm7QzlW2acNGruAh1OAlhWWszoxSHPsM5SxA nvM+PZHMHCb1lI9J34YBbyluAGpJLPt8Y+XgZA37pTrpGX/Dfe184w21LZjOnuGOO1VYHp AmfXKBFZrcjiiLvd4oFjTb0wgz2jWfs= X-Stat-Signature: kakn65phdmigfndsxi5gn5a74fdb88qa X-Rspamd-Queue-Id: AE5D61400B2 X-Rspamd-Server: rspam11 X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="ALjNq7/k"; spf=none (imf26.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1655814755-330404 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 34d1d36073ea4d4c532e8c8345627a9702be799e commit: ba44f8182ec299c5d1c8a72fc0fde4ec127b5a6d [3790/4834] raw: use more conventional iterators config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220621/202206212029.Yr5m7Cd3-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 11.3.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ba44f8182ec299c5d1c8a72fc0fde4ec127b5a6d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout ba44f8182ec299c5d1c8a72fc0fde4ec127b5a6d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash net/ipv6/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): net/ipv6/raw.c: In function 'raw6_icmp_error': >> net/ipv6/raw.c:338:40: warning: variable 'daddr' set but not used [-Wunused-but-set-variable] 338 | const struct in6_addr *saddr, *daddr; | ^~~~~ >> net/ipv6/raw.c:338:32: warning: variable 'saddr' set but not used [-Wunused-but-set-variable] 338 | const struct in6_addr *saddr, *daddr; | ^~~~~ vim +/daddr +338 net/ipv6/raw.c 334 335 void raw6_icmp_error(struct sk_buff *skb, int nexthdr, 336 u8 type, u8 code, int inner_offset, __be32 info) 337 { > 338 const struct in6_addr *saddr, *daddr; 339 struct net *net = dev_net(skb->dev); 340 struct hlist_head *head; 341 struct sock *sk; 342 int hash; 343 344 hash = nexthdr & (RAW_HTABLE_SIZE - 1); 345 head = &raw_v6_hashinfo.ht[hash]; 346 read_lock(&raw_v6_hashinfo.lock); 347 sk_for_each(sk, head) { 348 /* Note: ipv6_hdr(skb) != skb->data */ 349 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data; 350 saddr = &ip6h->saddr; 351 daddr = &ip6h->daddr; 352 353 if (!raw_v6_match(net, sk, nexthdr, &ip6h->saddr, &ip6h->daddr, 354 inet6_iif(skb), inet6_iif(skb))) 355 continue; 356 rawv6_err(sk, skb, NULL, type, code, inner_offset, info); 357 } 358 read_unlock(&raw_v6_hashinfo.lock); 359 } 360 -- 0-DAY CI Kernel Test Service https://01.org/lkp