Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp571726lqe; Sat, 6 Apr 2024 13:36:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/dZyOwIzkq+RO6Qrc0h7By6SiGYcFC+PteJpOyknIwWh2N1i9ldXgawvH0b/A55x7xJeSAIxtCmwAkQTteUCHf6eNGyzx+hzpSg6ZxQ== X-Google-Smtp-Source: AGHT+IEi1OxpYpsnHH+yRib98n+Is9nxjJKHEiU++LdKUAgrYt0pvYZxPrzByOTz3mxqYfGWMBlb X-Received: by 2002:a50:cd13:0:b0:568:a30c:2db5 with SMTP id z19-20020a50cd13000000b00568a30c2db5mr3024884edi.40.1712435761555; Sat, 06 Apr 2024 13:36:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712435761; cv=pass; d=google.com; s=arc-20160816; b=NrM2YL9YJUZG042hHTLIvcdOrWF2zBQPqnaktRIRzeLGI4XkSWwbf7YyumHeBvCYMt SFhtah8YalOHI3iMPLzk6nKcZEiOa7iNmTHuJ8PZjureSCPWucYK+nCLNm07zRaqAVkL 0Wf4SmsRPFmO2l8Ma581lvWALck3qSRXRVhkEzLmxUBoP9kORw0QAnGNaytx2tfpLefh Z0xBONPZIoHIPJBuX4egOio8BYAkk396YjQ5YKJ3PGiSADbZIssWA2lWNMrH4u3YyROT AAN8kPWzWUkyjZPdlCc0DisHboaZT1Hu+z3/pTltTn9P4Ve7K+51IahQA/ufBBbwmta0 ehxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=zgpOnCK5n1B3w1z7OvJj3goewUZhuiFN000IbBW3QHI=; fh=gOXw5euOEH+ikS4ahxDsTYYXbVHC02oZt2sp94kY++U=; b=QEI2wvgCZaD3OcU7kRZ7tJhv079RGBsljGM6c90cohQpyMxn3ItmR9KcRTLUaaTG4/ sXzeRDiXLwlIhJDHYMyYhsPiZsahgjBL7NnslGHkG/DUtzbtwPgOKZTzAwTmqbkH873/ G1rqAV87kSKaaN7OfC+fP0PMZx0+LeTqezO01RidXmno/AoJdoC1UWQwC4NklUXFeW4x CT895b6lKpGqt8TfgsADxheQCx0tXLZL3pFXB4iBjSsn0PowTP/06D1ygjAcxij3oG+s iD47wcYveN+uC0NIz287HiC6NEO7C9z5/c9dRCN6jWGe0rknoMD2d7ReTtHrp/ckZXmU pNkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J0nygJzF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u22-20020a50d516000000b0056c41068d90si2134873edi.293.2024.04.06.13.36.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 13:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J0nygJzF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134074-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4B4461F2312F for ; Sat, 6 Apr 2024 20:36:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA4864D121; Sat, 6 Apr 2024 20:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="J0nygJzF" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 1009718C1F for ; Sat, 6 Apr 2024 20:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712435753; cv=none; b=kcBiv1fSkAZDZSiG4ePoBkHGCXdIGEmgff2F4AXERR7db6HUcHK6MIIXR3BJ6bHzN/BwaeX4skTbwkCH7MtkNoi9BePHkOw5UBiEnvdqYdbnfjxXi8q4jZDnkNHOUh/CP+7q3xWye1wsBSm6EFcFopPr2oVXrEKblBVsOeDsx+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712435753; c=relaxed/simple; bh=rkD9NL6W+G6GrYqTYymBTl0TVkn2V8FXKcBG7YbWhAU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=r+RN5pDSwPSaFFpL87IayMQFh0PqCZA3XzRTTHDpgHJq7RWJhtVU3pbx73G36w/y7ujYXZTlXUkaggb/b5/VGPsOqMT/ssul+XC2P4tMuV8YbQfksbMKogmo1c6b8S6IZSJWH1ffvszjFtelO1CBU6jQfJuVJegD8COxh7y1CU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=J0nygJzF; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712435752; x=1743971752; h=date:from:to:cc:subject:message-id:mime-version; bh=rkD9NL6W+G6GrYqTYymBTl0TVkn2V8FXKcBG7YbWhAU=; b=J0nygJzFgEWpvz5LNUO8GGJ9LJWZLbmdDppBKd54KiWRv5xRaDPDvVoU lFkLvTHweu5GoyX5oFBK+BsOVOO5vLmM6fmK61IOXn6QJzTRX04rsc3OV /5Eo2CUNFD+isz7UAWv1i2Ml3C8MKUAf6aRszRIjPrnzn92veWdvBmGnU Icdao2Kkl/lvYAWDxzQ8W7XOzVp2ACaGr62xANLvp66n9DGnBJkZNTyF0 QZw1hJNn3r2D/P4L/MVPJdad1unbg8QseTI7FCOUVlfv/VbXiDFUm0qMz AFAzacu75cDJqthR6og5Rj0rxgFpdSR246GV5LfshwCsbRmxox4gk+eLp A==; X-CSE-ConnectionGUID: Vhj4vTgyQHGj5BEgLvoQcg== X-CSE-MsgGUID: czwVZRz/S1SYdurfk8Ov+Q== X-IronPort-AV: E=McAfee;i="6600,9927,11036"; a="19179123" X-IronPort-AV: E=Sophos;i="6.07,183,1708416000"; d="scan'208";a="19179123" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2024 13:35:51 -0700 X-CSE-ConnectionGUID: 7Cn4H+4RS6GkPfHROLwVRA== X-CSE-MsgGUID: ZJFWNazNR+aQ1RJ5TfR9uw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,183,1708416000"; d="scan'208";a="24118862" Received: from lkp-server01.sh.intel.com (HELO e61807b1d151) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 06 Apr 2024 13:35:49 -0700 Received: from kbuild by e61807b1d151 with local (Exim 4.96) (envelope-from ) id 1rtClO-0003pi-26; Sat, 06 Apr 2024 20:35:46 +0000 Date: Sun, 7 Apr 2024 04:35:28 +0800 From: kernel test robot To: Kees Cook Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Marco Elver Subject: lib/overflow_kunit.c:295:14-19: Unneeded variable: "index". Return "0" on line 297 Message-ID: <202404070416.WaNXeve0-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f2f80ac809875855ac843f9e5e7480604b5cbff5 commit: 08d45ee84bb2650e237e150caca87cc4ded9b3e2 overflow: Introduce wrapping_assign_add() and wrapping_assign_sub() date: 5 weeks ago config: hexagon-randconfig-r053-20240406 (https://download.01.org/0day-ci/archive/20240407/202404070416.WaNXeve0-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 546dc2245ffc4cccd0b05b58b7a5955e355a3b27) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202404070416.WaNXeve0-lkp@intel.com/ cocci warnings: (new ones prefixed by >>) >> lib/overflow_kunit.c:295:14-19: Unneeded variable: "index". Return "0" on line 297 vim +295 lib/overflow_kunit.c 292 293 static int get_index(void) 294 { > 295 volatile int index = 0; 296 bump_counter(); > 297 return index; 298 } 299 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki