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 5DB0CC433F5 for ; Tue, 8 Feb 2022 16:13:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 79BB76B0073; Tue, 8 Feb 2022 11:13:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 74AB36B0075; Tue, 8 Feb 2022 11:13:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 612836B0078; Tue, 8 Feb 2022 11:13:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 5372A6B0073 for ; Tue, 8 Feb 2022 11:13:47 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 0E1E68249980 for ; Tue, 8 Feb 2022 16:13:47 +0000 (UTC) X-FDA: 79120108494.17.1789185 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf07.hostedemail.com (Postfix) with ESMTP id 1672C4000A for ; Tue, 8 Feb 2022 16:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644336826; x=1675872826; h=date:from:to:cc:subject:message-id:mime-version; bh=1eg/doT/yE0TaaCofhgBWl8sxKV9XJPCV+TybXmzO+U=; b=mgwBS2JXmP5D8LZsrYuGLVMjTLz+hP9DmoeMscj8TXTP/4jnXyawLxEx Nokc36Yc0UrQKUnlZ69+3GWOjCeGKleZzy0jBpO0Uy9d1S8NNWOT2jYjK tj9R7tDhIe/Ua7xUGXJSkwUfX7vgZu8KxitIsOX70IGzVaATpTncQOTYd KfcptdCOUXcdCETg0NTUUlCEHbS5/rdr1HoofYII3Yh5aIBfCBksx3ywh QrWrY5k2gYsIk+8hU+8XaxDPF45VztRJlr9fZQHm5FL3oUQfCNItBYMbl ifhCSUxB29D8yWQYo9/6Rr84QWCuB9oY8HjpATWKCk3dBmxWxj9BdclzY w==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="236387066" X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="236387066" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 08:10:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,353,1635231600"; d="scan'208";a="632886615" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 08 Feb 2022 08:10:49 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nHT4r-0000Pj-A7; Tue, 08 Feb 2022 16:10:49 +0000 Date: Wed, 9 Feb 2022 00:10:18 +0800 From: kernel test robot To: Stephen Rothwell Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 4438/4439] include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' Message-ID: <202202090028.zSZDO5zf-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=mgwBS2JX; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf07.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Queue-Id: 1672C4000A X-Stat-Signature: 3wrqhe174xrog5buw5bwa9y4fzuioqx6 X-Rspamd-Server: rspam07 X-HE-Tag: 1644336825-5501 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: 554f92dbda161fa073844ae6c62db257b8860a0a commit: c052f4a3cbf1f171a3ceedd76b70d6acf2718d34 [4438/4439] Merge branch 'akpm-current/current' config: arm-randconfig-c002-20220208 (https://download.01.org/0day-ci/archive/20220209/202202090028.zSZDO5zf-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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=c052f4a3cbf1f171a3ceedd76b70d6acf2718d34 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 c052f4a3cbf1f171a3ceedd76b70d6acf2718d34 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from fs/direct-io.c:24: fs/direct-io.c: In function 'dio_zero_block': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ fs/direct-io.c: In function 'do_direct_IO': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ -- In file included from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from fs/iomap/direct-io.c:6: fs/iomap/direct-io.c: In function 'iomap_dio_zero': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ vim +1431 include/linux/mmzone.h 29751f6991e845 Andy Whitcroft 2005-06-23 1428 29751f6991e845 Andy Whitcroft 2005-06-23 1429 static inline struct page *__section_mem_map_addr(struct mem_section *section) 29751f6991e845 Andy Whitcroft 2005-06-23 1430 { 29751f6991e845 Andy Whitcroft 2005-06-23 @1431 unsigned long map = section->section_mem_map; 29751f6991e845 Andy Whitcroft 2005-06-23 1432 map &= SECTION_MAP_MASK; 29751f6991e845 Andy Whitcroft 2005-06-23 1433 return (struct page *)map; 29751f6991e845 Andy Whitcroft 2005-06-23 1434 } 29751f6991e845 Andy Whitcroft 2005-06-23 1435 :::::: The code at line 1431 was first introduced by commit :::::: 29751f6991e845f7d002a6ae520bf996b38c8dcd [PATCH] sparsemem hotplug base :::::: TO: Andy Whitcroft :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org