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 29948CD5BC4 for ; Tue, 19 Sep 2023 14:06:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 98A9E6B053A; Tue, 19 Sep 2023 10:06:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 913436B053C; Tue, 19 Sep 2023 10:06:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7B3B56B053D; Tue, 19 Sep 2023 10:06:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 662E76B053A for ; Tue, 19 Sep 2023 10:06:29 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 344D8404B2 for ; Tue, 19 Sep 2023 14:06:29 +0000 (UTC) X-FDA: 81253522098.06.C760F69 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by imf12.hostedemail.com (Postfix) with ESMTP id 0CA8040019 for ; Tue, 19 Sep 2023 14:06:21 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=e6qQ9udC; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695132382; 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=3ZoXPr8e1Tw8guZjlt46/vWe3FkWq7xZBND19DH2zPw=; b=LxUHWw/ZjreCJKGUtRvaY1JP6WiBAV7WY4Xga26DKyf6pdL6xRmKvKX0owhFcf8/EYcB5l Ta2HPHdy501vA3XsVPS43L98+AJ098EvfqEMh2WgKwEFLwz98OPh6CTfov/LNR0AO6iui5 MZdpm1MIG5JO+/yGM0tLgN8AhTUjJdQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695132382; a=rsa-sha256; cv=none; b=brbvd1NIwjf3MwM3SIW/jxYlysTXpST2sQyuB+LKipEUb9ssxZPITiJR2zguChfnWwuIxE 7MbtVEcrWQ9ruBPWMuOTIPB6nDOJSNQFQTze+Mx0wEu6+NwrTDKFy8A1M4CtMzrsYW/qSC r0/wYuEapHZGOV915r/f3Zyd5e5Kaf8= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=e6qQ9udC; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695132382; x=1726668382; h=date:from:to:cc:subject:message-id:mime-version; bh=Fp8VV3ZVcU4e4X2yqZDES6E7/lsM9NYE3xcif1X26t0=; b=e6qQ9udCdoFy2xdET4Zd5yX7sxwGVrgf1UG5WzyatKLBZr17Nu7Wl9Ao cH44vM60VAR61/JQAIqgz8uI9KWIlWSnXQPwgDLhP+dUon9oe7oKStthV T075cE4kbrJvR/UXnzirrKsAXbKI0tlXdPt/nqTkLE8A9CmwDHNixL9hX Zpmk9GCj/lEUrDLkUmTFxytX88fPiVPChRP0k1XfGsEHNdH3LNW2dOne9 +ohMZ/l6AuO78qc9+qMmby29eYzCtVloHFrekJwZ4Ae4yzdqkZcl1Unjs ww2G90RLhgedkvotMJa4Py9c1ojhBzD8+KjgEn0NA8piOVsPGujA/e1Kp Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="370265679" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="370265679" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 07:06:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="889510964" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="889510964" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 19 Sep 2023 07:05:31 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qibMk-0007Qc-2L; Tue, 19 Sep 2023 14:06:14 +0000 Date: Tue, 19 Sep 2023 22:05:39 +0800 From: kernel test robot To: Waiman Long Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Tejun Heo Subject: [linux-next:master 6144/6333] include/linux/bitmap.h:245:22: warning: array subscript 0 is outside array bounds of 'struct cpumask[0]' Message-ID: <202309192149.5OtHmIo1-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 0CA8040019 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: o6utmdpjmp9ffe59xg3ixt9d38coaemf X-HE-Tag: 1695132381-389315 X-HE-Meta: U2FsdGVkX18+f42Gw2F8ffCI/bi0LA+/ef2YwJHd3c2M8T9uEwj4OEFTNsfRuU+G9m8b+TvLexI75IxlAVbkf85emO4vY9Xbhweuqjz2w+UXi2lBwAk+iqCgdcdyVx84QF8eIDIT1FcJiNDeTkDeaqxyeSKNXKardSMRQlaNyY/qRlJYY7AR/5Mdr0Q/mBNxMHwBE3C6ha2WyLthXTqDBend3e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ub7VBE5sc7woEAGCG5l5iwP3li4pTT0+u0= 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: 29e400e3ea486bf942b214769fc9778098114113 commit: e2ffe502ba4505ee9c7b432980c702b7801a37f3 [6144/6333] cgroup/cpuset: Add cpuset.cpus.exclusive for v2 config: i386-randconfig-013-20230914 (https://download.01.org/0day-ci/archive/20230919/202309192149.5OtHmIo1-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230919/202309192149.5OtHmIo1-lkp@intel.com/reproduce) 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/202309192149.5OtHmIo1-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/cpumask.h:12, from arch/x86/include/asm/cpumask.h:5, from arch/x86/include/asm/msr.h:11, from arch/x86/include/asm/processor.h:23, from arch/x86/include/asm/cpufeature.h:5, from arch/x86/include/asm/thread_info.h:53, from include/linux/thread_info.h:60, from arch/x86/include/asm/preempt.h:9, from include/linux/preempt.h:79, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/node.h:18, from include/linux/cpu.h:17, from kernel/cgroup/cpuset.c:25: In function 'bitmap_zero', inlined from 'cpumask_clear' at include/linux/cpumask.h:554:2, inlined from 'zalloc_cpumask_var' at include/linux/cpumask.h:931:2, inlined from 'alloc_cpumasks.constprop' at kernel/cgroup/cpuset.c:627:7: >> include/linux/bitmap.h:245:22: warning: array subscript 0 is outside array bounds of 'struct cpumask[0]' [-Warray-bounds] 245 | *dst = 0; | ~~~~~^~~ In function 'bitmap_zero', inlined from 'cpumask_clear' at include/linux/cpumask.h:554:2, inlined from 'zalloc_cpumask_var' at include/linux/cpumask.h:931:2, inlined from 'alloc_cpumasks.constprop' at kernel/cgroup/cpuset.c:633:7: >> include/linux/bitmap.h:245:22: warning: array subscript 0 is outside array bounds of 'struct cpumask[0]' [-Warray-bounds] 245 | *dst = 0; | ~~~~~^~~ vim +245 include/linux/bitmap.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 239 8b4daad52fee77 Rasmus Villemoes 2015-02-12 240 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits) ^1da177e4c3f41 Linus Torvalds 2005-04-16 241 { 8b4daad52fee77 Rasmus Villemoes 2015-02-12 242 unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); 3e7e5baaaba780 Alexander Lobakin 2022-06-24 243 3e7e5baaaba780 Alexander Lobakin 2022-06-24 244 if (small_const_nbits(nbits)) 3e7e5baaaba780 Alexander Lobakin 2022-06-24 @245 *dst = 0; 3e7e5baaaba780 Alexander Lobakin 2022-06-24 246 else ^1da177e4c3f41 Linus Torvalds 2005-04-16 247 memset(dst, 0, len); ^1da177e4c3f41 Linus Torvalds 2005-04-16 248 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 249 :::::: The code at line 245 was first introduced by commit :::::: 3e7e5baaaba78075a7f3a57432609e363bf2a486 bitmap: don't assume compiler evaluates small mem*() builtins calls :::::: TO: Alexander Lobakin :::::: CC: Yury Norov -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki