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 7B11ACDB47E for ; Wed, 18 Oct 2023 23:10:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 180C780062; Wed, 18 Oct 2023 19:10:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1314C8004A; Wed, 18 Oct 2023 19:10:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 01F5F80062; Wed, 18 Oct 2023 19:10:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E7DFC8004A for ; Wed, 18 Oct 2023 19:10:37 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B6E72140328 for ; Wed, 18 Oct 2023 23:10:37 +0000 (UTC) X-FDA: 81360128514.05.FF687E2 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by imf26.hostedemail.com (Postfix) with ESMTP id 51C61140007 for ; Wed, 18 Oct 2023 23:10:35 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="gxI/WUB3"; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 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=1697670636; 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=Dcqr3LJKQiPqqyNsj8zntruEhCjyFuWEPoSx5l0GkS0=; b=PtojTqpg7IPd2p9jNfVOD1SU/XgAGFioQJ1O2jJJSZY9+ntp2VIusBBRkmYK8hhnOvYdS1 CurnXS9VehAK2iTFHOZBfVrCbeL0/RcRnwbso0FqHAVriSdBYQgUrpSN/FWc+ZipM+4OY/ clUBu8Pz4uufPgH253Vy+3uLTGudpzE= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="gxI/WUB3"; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697670636; a=rsa-sha256; cv=none; b=5pmS43D8gF+5KKQRoNBZ6hBALXzNnMHBBi18K9Ykmiq7Orlw8ROJ0AmPQbT+x1QQQXMW7p Y9v5VrOxfuUnEXR4wrAAeu0n8LTvYuV0i+u9qhHaGMkoDBQMlE0fq7CuSw00yIE2LJL9Qx 4onQ7QRMLfvsOElIGPi5Flv9FbJdwSI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697670635; x=1729206635; h=date:from:to:cc:subject:message-id:mime-version; bh=jityMSSDLBeN1aXKSyaOqvTtSeSIvyau31251yf14xM=; b=gxI/WUB3ZWMnT9Vh06Lg4l43oNb8mB+eH69vsp3Pvx3C7H6+8NXc1kvk sgptwkPlzLyxLv58vaOkH+YRMy9reJL3mJFZHQpUqpZav7in6Xs43Laqy +68hhXehI27fKxwPtz/X1vPrYgLQJ5YLd++IzkB4ZWBoo2ziNjLCyqTEN aqP2C0k+e1/T5JArLyAuFndWrBaRyAeaQHKRPSQ2sfXwoFvTiN0OIc3yP 6QtViGoN8TogyDm6z/NuV7PVzJxCDrETTB0KOWvtK/fb6zJmdkmQRjt0N fIH1bj4aNhPlQOJuNBd82IsSVOxRgDao5WKnRXWwcnJhDWsYHJx0K0Tev Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="365485275" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="365485275" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 16:10:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="786125787" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="786125787" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 18 Oct 2023 16:10:32 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qtFgM-0001DM-02; Wed, 18 Oct 2023 23:10:30 +0000 Date: Thu, 19 Oct 2023 07:09:31 +0800 From: kernel test robot To: Arnd Bergmann Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Geert Uytterhoeven Subject: [linux-next:master 9303/13299] arch/m68k/include/asm/raw_io.h:20:18: warning: array subscript 0 is outside array bounds of 'const volatile u8[0]' {aka 'const volatile unsigned char[]'} Message-ID: <202310190741.mbPtQRpD-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 51C61140007 X-Rspam-User: X-Stat-Signature: 6xmei77sxkxfxfx9xatgigkawokxsyra X-Rspamd-Server: rspam01 X-HE-Tag: 1697670635-644190 X-HE-Meta: U2FsdGVkX1/i6Md789LVfNDpm0mjHfFwK/0f5lB4KEZxlVzcbnlhpupSrB1yDBVYqWb2IDrAUvr6uzHXI1C1qj3WSHKaTd8Pz2FUWziRmeD6lIlFptOaF08puD22d8obeILxEOEch7H8Rk3o0MTpz4tlV1L9YhDaPx14YZfB7FlS5l+QbJjcx8IiGQHRH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sK4AU61yURYWdczhK/1P1Y6OOJtAFl1l/+j4RvuCBaleoTz06vDWBylIzItRst2wzp2z5zJUl 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: 2dac75696c6da3c848daa118a729827541c89d33 commit: c7db3832ff19a9a1116c1b3d435c9db165a2f2f8 [9303/13299] m68k: io: Mark mmio read addresses as const config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231019/202310190741.mbPtQRpD-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231019/202310190741.mbPtQRpD-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/202310190741.mbPtQRpD-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/m68k/include/asm/io_mm.h:25, from arch/m68k/include/asm/io.h:8, from include/linux/io.h:13, from drivers/hwmon/pc87427.c:31: drivers/hwmon/pc87427.c: In function 'pc87427_readall_pwm': >> arch/m68k/include/asm/raw_io.h:20:18: warning: array subscript 0 is outside array bounds of 'const volatile u8[0]' {aka 'const volatile unsigned char[]'} [-Warray-bounds=] 20 | ({ u8 __v = (*(__force const volatile u8 *) (unsigned long)(addr)); __v; }) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/m68k/include/asm/io_mm.h:345:62: note: in expansion of macro 'in_8' 345 | #define inb(port) ((port) < 1024 ? isa_rom_inb(port) : in_8(port)) | ^~~~ drivers/hwmon/pc87427.c:244:32: note: in expansion of macro 'inb' 244 | data->pwm_enable[nr] = inb(iobase + PC87427_REG_PWM_ENABLE); | ^~~ cc1: note: source object is likely at address zero vim +20 arch/m68k/include/asm/raw_io.h 15 16 /* ++roman: The assignments to temp. vars avoid that gcc sometimes generates 17 * two accesses to memory, which may be undesirable for some devices. 18 */ 19 #define in_8(addr) \ > 20 ({ u8 __v = (*(__force const volatile u8 *) (unsigned long)(addr)); __v; }) 21 #define in_be16(addr) \ 22 ({ u16 __v = (*(__force const volatile u16 *) (unsigned long)(addr)); __v; }) 23 #define in_be32(addr) \ 24 ({ u32 __v = (*(__force const volatile u32 *) (unsigned long)(addr)); __v; }) 25 #define in_le16(addr) \ 26 ({ u16 __v = le16_to_cpu(*(__force const volatile __le16 *) (unsigned long)(addr)); __v; }) 27 #define in_le32(addr) \ 28 ({ u32 __v = le32_to_cpu(*(__force const volatile __le32 *) (unsigned long)(addr)); __v; }) 29 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki