Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp39064rdb; Wed, 18 Oct 2023 17:23:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHmdVAPFqG4YnI2vyYwgyPVqp00HE7iJCTYEdlVQLMQltaEVfQr2Hp4s2tVT93qSspqCdl X-Received: by 2002:a05:6870:1ec7:b0:1e9:b62d:dc71 with SMTP id pc7-20020a0568701ec700b001e9b62ddc71mr1100779oab.40.1697674982742; Wed, 18 Oct 2023 17:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697674982; cv=none; d=google.com; s=arc-20160816; b=ikGjA2n3XThUYv2hkEVKsh3Urc2gXaZgNCEtSoMEV1+cb46q+MaSWWvoXPlaTNJZ3b cFlzSEDlyGeF9XHY1vcbmFqgNMv2q/gYmTKO8B5dNXuIvg2DRppeJPk+DUAWF/Bibrmd nZw0OX+IJ2TdZeoapXOw9fMALR2APESJtQQKpD/Ah+rXL3tcV+iQJmOKA3myA0eaFFgk mAQqb3aQCZJMx1jV0GKlXSnfF/hv+19vxnXLAQk0vOXHN1Dj2e6IjyK2lkK1PolaQ1uR ShgYOhA/kqDXPrli492L7D2kapfKs+j/tmsNYZy5m5YkMNiAsxd/YozG0+3wUZ0HXG45 C6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=pOnBjbp03DmBPJqlB7uTiDblHZKXzm9zxun6KalDdJ4=; fh=eX7l/8/glUzLMqc/d6Y+cYzAISrC1GrE8xhOxHjTS+A=; b=zHwIuzKHhg8JyVJWXApNwhwwKkcRyd3AE3x6BTNgk8yv8Jpmnmk5GR3KfRkzDbuZ3M h/9+gBOYoKRHhQnSp6GIq4fDFinu3xvJFj+Da+k1D9Dwzl3/O+dYvUhlF3QGJ4ZMrC9z E2v9pfH0xggOndNQ7QeFxvJZdlwWLP+qzGSVikNZESL/QWmhbJjuXOE8pgqNurCjFGsH etVhkKBPFDxbxBKkVCooD9krJbLpIg+46VQcZTr8y8Cy2ashnZOO7fVsYLZ/Tzuu7AJw nryOSWTaGuEqo7b2auQ/So7TzGpFGVXYhE+pD4LUoWHVHhDWTI8TP/s5h//smLPVwKUL dmmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZrFT6Dwd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ca27-20020a056a02069b00b005a0110eb926si3630921pgb.593.2023.10.18.17.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 17:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZrFT6Dwd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7420580FE2B8; Wed, 18 Oct 2023 17:22:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbjJSAWk (ORCPT + 99 others); Wed, 18 Oct 2023 20:22:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjJSAWj (ORCPT ); Wed, 18 Oct 2023 20:22:39 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B81FA for ; Wed, 18 Oct 2023 17:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697674958; x=1729210958; h=date:from:to:cc:subject:message-id:mime-version; bh=Utyrp8eUxVz0/SKUmPWDVAn7mVAHUWs4Es1jRrphH7M=; b=ZrFT6DwdDkSH4WpPm15hscsssZJ54vh2nNZGAYKezP3ilT7sNdGPsPcX 1h+4iee23M0Xo+cxe89nKe1HoPB5Iu4G65nlrNlJKarb+YsldXzJpFx16 UGdqr+GTH6NY5tpDEWulJSZcQIuBLxYwQUb2xKXbr97qAggnoJ42JEMDi piabyLAq/wOqkievHZR5ZkVw4m/vsWQxvvh1KhT52qst4MrU2BrSCEiOC u9c+EIoUofi88iKga0VF4qFrNSUHVPpQ03oEp26IImDoqm9SEFegFyqOa rFJu2CdiFpdEoAVwGf+dtONJaFvMsg26Tw0YIj5yZa+9K+M6NVIeM064z Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="376519344" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="376519344" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 17:22:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="760442115" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="760442115" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 18 Oct 2023 17:22:36 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qtGo6-0001KA-0q; Thu, 19 Oct 2023 00:22:34 +0000 Date: Thu, 19 Oct 2023 08:21:36 +0800 From: kernel test robot To: Linus Walleij Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: arch/arm/include/asm/memory.h:298:23: warning: array subscript -1 is outside array bounds of 'const void[2147483647]' Message-ID: <202310190854.yTRUMqLL-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 17:22:58 -0700 (PDT) tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dd72f9c7e512da377074d47d990564959b772643 commit: a9ff6961601d9aa0c42b6eb7d850371f31b1f5e6 ARM: mm: Make virt_to_pfn() a static inline date: 5 months ago config: arm-randconfig-r022-20230725 (https://download.01.org/0day-ci/archive/20231019/202310190854.yTRUMqLL-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231019/202310190854.yTRUMqLL-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/202310190854.yTRUMqLL-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/arm/include/asm/page.h:166, from arch/arm/include/asm/thread_info.h:14, from include/linux/thread_info.h:60, from include/asm-generic/preempt.h:5, from ./arch/arm/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/spinlock.h:56, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/mm.h:7, from arch/arm/kernel/hibernate.c:17: In function 'virt_to_pfn', inlined from 'pfn_is_nosave' at arch/arm/kernel/hibernate.c:29:33: >> arch/arm/include/asm/memory.h:298:23: warning: array subscript -1 is outside array bounds of 'const void[2147483647]' [-Warray-bounds=] 298 | unsigned long kaddr = (unsigned long)p; | ^~~~~ In file included from arch/arm/include/asm/sections.h:5, from include/linux/interrupt.h:21, from include/linux/kernel_stat.h:9, from include/linux/cgroup.h:26, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/arm/kernel/hibernate.c:18: include/asm-generic/sections.h: In function 'pfn_is_nosave': include/asm-generic/sections.h:59:45: note: at offset -1 into object '__nosave_end' of size [0, 2147483647] 59 | extern __visible const void __nosave_begin, __nosave_end; | ^~~~~~~~~~~~ vim +298 arch/arm/include/asm/memory.h 295 296 static inline unsigned long virt_to_pfn(const void *p) 297 { > 298 unsigned long kaddr = (unsigned long)p; 299 return (((kaddr - PAGE_OFFSET) >> PAGE_SHIFT) + 300 PHYS_PFN_OFFSET); 301 } 302 #define __pa_symbol_nodebug(x) __virt_to_phys_nodebug((x)) 303 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki