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 2CA07C4167B for ; Thu, 9 Nov 2023 18:50:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C6BE28000C; Thu, 9 Nov 2023 13:50:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 47657280009; Thu, 9 Nov 2023 13:50:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33E0E28000C; Thu, 9 Nov 2023 13:50:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 24921280009 for ; Thu, 9 Nov 2023 13:50:34 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id F088B120ED7 for ; Thu, 9 Nov 2023 18:50:33 +0000 (UTC) X-FDA: 81439306746.22.6C41301 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by imf05.hostedemail.com (Postfix) with ESMTP id 65E83100009 for ; Thu, 9 Nov 2023 18:50:31 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=VrseV3sf; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699555832; a=rsa-sha256; cv=none; b=kEycad+axlhis6Nhi4cJoqpi/fVJzKK0nr4M6UtTmeJCGiK8QYoNVLh0Gfq0QgPfnx6tx+ GchEvbzBHjQ9Qg5WsazrzA9/aW29qkpdIIRj6Sj44VVNp9tdd1bEY/1eKUj16Puax3fUn4 lt4bzGaZzuEqCw2pK7wYJ6r6Om3s2M4= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=VrseV3sf; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699555832; 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:in-reply-to:references:references:dkim-signature; bh=qzTi+yDpyUL2nCIldx9Rh90CjnTbA+rKO8+O0qLnRGU=; b=f2EzJgGPtaaHRH2So2W77bloW8Yjdb34ALKlV8iSNfG2mknuozaB+lVA+UjwMmHoe09ouE k+DhiHkuKwNgqpONAuGds9ls0eBmvjRydUIKCpMc0Qat/YQ4BqtJHqDWxzNF2WLkj62UcR nubEN/MQqSWX6l6i0w7Dg7ZGDa23l60= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699555831; x=1731091831; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2Z4qGI1HHgsyoHU13b0J59WH/c4N5Ztnuu67puAJx0g=; b=VrseV3sf5bqxPts4ZFomMTsjxpO6Q/ZV7gau9jvTAKH5ZC5BrnDTo/Kt AlPPlsD2ClKE6MT4RMjz20Hk6930SlYg9NOGymLvn6bEOgOL82RS0RIwZ MdLezPUaR8/5rsugSStCguRaM2SVChlz3A1M7HwLgudoaEOKt8m362g1u 3H9004jhBrvBV/fRHh1G7DRX3dW6EuoeL3f48I8KC+APEXyMovj0Zrd0h XojZsFuVE6dz57lP+YP7mTLz9TX722KoRdTvvreiSZTbldkMDSVH0ebtU 0A2RuCCepC4i8G25yfDzSRrA90Xx55cvKz3Lbvdy3HN+ThhRV1q+G0tuO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10889"; a="375094089" X-IronPort-AV: E=Sophos;i="6.03,290,1694761200"; d="scan'208";a="375094089" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2023 10:50:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10889"; a="792639156" X-IronPort-AV: E=Sophos;i="6.03,290,1694761200"; d="scan'208";a="792639156" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 09 Nov 2023 10:50:27 -0800 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1r1A6j-000936-07; Thu, 09 Nov 2023 18:50:25 +0000 Date: Fri, 10 Nov 2023 02:49:17 +0800 From: kernel test robot To: Omkar Wagle , hughd@google.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Omkar Wagle Subject: Re: [PATCH] MM: shmem: Remove code sytle warnings Message-ID: <202311100217.l1zmB8In-lkp@intel.com> References: <20231109062228.10227-1-ov.wagle@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231109062228.10227-1-ov.wagle@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 65E83100009 X-Stat-Signature: zzzh4q4hy8tqf5am7ngibzwn9mx4od56 X-HE-Tag: 1699555831-555068 X-HE-Meta: U2FsdGVkX18A0/57Eq0mbORht5uhxSsALL3c3dXayMIHzQ/9uzjQdXS2v1ILaWdQX+9chmVF22Yi9M5g2CoMrdthLdrLWmSG1OGwW8GpdLg89VllexgCZkAt9fvpjurrDL0xmbmuRJmfv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HzONjTEMpwwSGyKbtNdLdA86rU338553iFEQ0/1y4Fl5Gt8zdlMEtU7hVwyGPBoq4mvqy4iDMigu9awLVzN8GYGtw8oJm/L0/uKxX8HTWOrx09qc2tcKVN8Warrz10ULHkUQJXmi66lstN23fwH1c0dH8X/go/IDzNU1PX/Od/Ubi7ACmNAwuwDZn7ZoQfCtYPpFBL6S9flmbVJvwJLTsmDQYt+GO4HT2AlRts1ZfThymP+NRpZg== 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: List-Subscribe: List-Unsubscribe: Hi Omkar, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master next-20231109] [cannot apply to v6.6] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Omkar-Wagle/MM-shmem-Remove-code-sytle-warnings/20231109-163742 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231109062228.10227-1-ov.wagle%40gmail.com patch subject: [PATCH] MM: shmem: Remove code sytle warnings config: um-allnoconfig (https://download.01.org/0day-ci/archive/20231110/202311100217.l1zmB8In-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231110/202311100217.l1zmB8In-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/202311100217.l1zmB8In-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/shmem.c:29: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from mm/shmem.c:29: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from mm/shmem.c:29: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 692 | readsb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 700 | readsw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 708 | readsl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 717 | writesb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 726 | writesw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 735 | writesl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ >> mm/shmem.c:4310:19: error: too few arguments provided to function-like macro invocation 4310 | L1_CACHE_BYTES), GFP_KERNEL); | ^ include/linux/minmax.h:169:9: note: macro 'max_t' defined here 169 | #define max_t(type, x, y) __careful_cmp(max, (type)(x), (type)(y)) | ^ >> mm/shmem.c:4309:19: error: use of undeclared identifier 'max_t' 4309 | sbinfo = kzalloc(max_t((int)sizeof(struct shmem_sb_info), | ^ 12 warnings and 2 errors generated. vim +4310 mm/shmem.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 4300 f32356261d44d5 David Howells 2019-03-25 4301 static int shmem_fill_super(struct super_block *sb, struct fs_context *fc) ^1da177e4c3f41 Linus Torvalds 2005-04-16 4302 { f32356261d44d5 David Howells 2019-03-25 4303 struct shmem_options *ctx = fc->fs_private; ^1da177e4c3f41 Linus Torvalds 2005-04-16 4304 struct inode *inode; 0edd73b33426df Hugh Dickins 2005-06-21 4305 struct shmem_sb_info *sbinfo; 71480663b751de Carlos Maiolino 2023-07-25 4306 int error = -ENOMEM; 680d794babebc7 Andrew Morton 2008-02-08 4307 680d794babebc7 Andrew Morton 2008-02-08 4308 /* Round up to L1_CACHE_BYTES to resist false sharing */ 1c6e8dc111cb86 Omkar Wagle 2023-11-08 @4309 sbinfo = kzalloc(max_t((int)sizeof(struct shmem_sb_info), 680d794babebc7 Andrew Morton 2008-02-08 @4310 L1_CACHE_BYTES), GFP_KERNEL); 680d794babebc7 Andrew Morton 2008-02-08 4311 if (!sbinfo) 71480663b751de Carlos Maiolino 2023-07-25 4312 return error; 680d794babebc7 Andrew Morton 2008-02-08 4313 680d794babebc7 Andrew Morton 2008-02-08 4314 sb->s_fs_info = sbinfo; ^1da177e4c3f41 Linus Torvalds 2005-04-16 4315 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki