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 CCD8CC001DE for ; Fri, 18 Aug 2023 04:42:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DE7A7940052; Fri, 18 Aug 2023 00:42:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D974E940009; Fri, 18 Aug 2023 00:42:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C86AD940052; Fri, 18 Aug 2023 00:42:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B8C7C940009 for ; Fri, 18 Aug 2023 00:42:08 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 7B6541C9692 for ; Fri, 18 Aug 2023 04:42:08 +0000 (UTC) X-FDA: 81135978336.18.AFDCA20 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by imf01.hostedemail.com (Postfix) with ESMTP id E825D4000B for ; Fri, 18 Aug 2023 04:42:05 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=X1dNbujK; spf=pass (imf01.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=1692333726; 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=GHqId5uyGgp4oQ/iJc1fiFb2c92ZzTG9OMaPwUCny4I=; b=VufZElqN7d4OjOg2oXuYmBjb47fe8t2VfmCIkONxcWgyVCjOtpYHwK6+xKsQUN02r9dCGf weD7BWQLzP0l7jq8t0fQnloozrnLPFIBymSn+XUqsGoZn2bbugGKrnZewM0P/BDIt7g3yB 1zlISHiAHZ+rk19dRizWLURCbW24b04= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692333726; a=rsa-sha256; cv=none; b=gymzRbKNhy5hW5kmdY0eomnO7w/TKG3eb3NTcrGuFyJuJTAPcsI07Vv+clI1ZRgqwGGTNS 8jF/quEiYumzaYrap3GyaaeeYumuOzA/7Gk8MSl3we+tyrdd1cmpngctT4vumjzAl96UTQ fqAft4VHdkyPMxxxgoNLB2wDLKuaHfs= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=X1dNbujK; spf=pass (imf01.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=1692333726; x=1723869726; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=qOndlZcwodsuQ/+GG0u1jnSqAmzd8rk/nEVIbm2c48w=; b=X1dNbujKMlCIPIYrhE+2wAewaHklNELerWK5eTkPVZoWQnrXOI2aW61R bqG0ozdrMJemPoJV9hEJyc/spPnqheDCsI7mcXFi7x1fsPWwa7PiVr6OB ZXp/isyYw6DEuhCikhfPnU/ETlcuE8WnwM7UOwucHcYwPbBskd8DuthYU qgCqfSSz9Wfnxd4Shl3P9PMh/mPhPv/lWi3zEECd+NTutN8Yy7JN4jWik gxv1sZzJVgGseHfjIFMXPZnBdZjlFyD0exwAFVCCO3H1XERbr691tGa34 pFF6sg/t2ajgGZbBb01v0AC4TredBUzYeo/GRXGXgyMr9cKJtunD+UHzP g==; X-IronPort-AV: E=McAfee;i="6600,9927,10805"; a="363171561" X-IronPort-AV: E=Sophos;i="6.01,182,1684825200"; d="scan'208";a="363171561" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2023 21:42:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10805"; a="800324891" X-IronPort-AV: E=Sophos;i="6.01,182,1684825200"; d="scan'208";a="800324891" Received: from lkp-server02.sh.intel.com (HELO a9caf1a0cf30) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 17 Aug 2023 21:42:00 -0700 Received: from kbuild by a9caf1a0cf30 with local (Exim 4.96) (envelope-from ) id 1qWrJ9-00026a-2H; Fri, 18 Aug 2023 04:41:59 +0000 Date: Fri, 18 Aug 2023 12:41:40 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , "Matthew Wilcox (Oracle)" , linux-fsdevel@vger.kernel.org, nvdimm@lists.linux.dev, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-cxl@vger.kernel.org Subject: Re: [PATCH] mm: Change calling convention for ->huge_fault Message-ID: <202308181255.bMCo950t-lkp@intel.com> References: <20230817200150.1230317-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230817200150.1230317-1-willy@infradead.org> X-Rspamd-Queue-Id: E825D4000B X-Rspam-User: X-Stat-Signature: 7tpany58pgcwmpstwrn1p868obrisnrn X-Rspamd-Server: rspam03 X-HE-Tag: 1692333725-364300 X-HE-Meta: U2FsdGVkX19R2wYT3J11d0xCO5igSfra1XR2meKhENwEsdBSY9OmF6eooFoLsJNEQ1ep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QyilDtV+9kNAiUl0Efs9W0y2Toi+kk/BOonVyX5hLg0d22r1MniDIm5XonTZBikwBlrFkv8Qzp/1NDb1aoQUPzE7SGA63TYg+nOWOyNonMoZQElu8HH8vUi1ZmoUF1bAMpnCPt6hRiSuSlk2N3wgvK9ePVXKCklPEcFX0UXYUQbGdLg5LMERs3O0laf+4GAhGQCZrkgMKOlhiJT9RVx7deXhqDDJxDdP1DVizoZRakXH3DGtSoRH 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: Hi Matthew, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/mm-Change-calling-convention-for-huge_fault/20230818-040348 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230817200150.1230317-1-willy%40infradead.org patch subject: [PATCH] mm: Change calling convention for ->huge_fault config: hexagon-randconfig-r035-20230818 (https://download.01.org/0day-ci/archive/20230818/202308181255.bMCo950t-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230818/202308181255.bMCo950t-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/202308181255.bMCo950t-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/memory.c:42: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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/hexagon/include/asm/io.h:337: 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/memory.c:42: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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/hexagon/include/asm/io.h:337: 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/memory.c:42: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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/hexagon/include/asm/io.h:337: 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); | ~~~~~~~~~~ ^ >> mm/memory.c:4876:39: error: use of undeclared identifier 'PTE_SHIFT' 4876 | return vma->vm_ops->huge_fault(vmf, PMD_ORDER); | ^ include/linux/pgtable.h:8:32: note: expanded from macro 'PMD_ORDER' 8 | #define PMD_ORDER (PMD_SHIFT - PTE_SHIFT) | ^ mm/memory.c:4896:39: error: use of undeclared identifier 'PTE_SHIFT' 4896 | ret = vma->vm_ops->huge_fault(vmf, PMD_ORDER); | ^ include/linux/pgtable.h:8:32: note: expanded from macro 'PMD_ORDER' 8 | #define PMD_ORDER (PMD_SHIFT - PTE_SHIFT) | ^ 6 warnings and 2 errors generated. -- In file included from fs/xfs/xfs_trace.c:6: In file included from fs/xfs/xfs.h:22: In file included from fs/xfs/xfs_linux.h:31: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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/hexagon/include/asm/io.h:337: 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 fs/xfs/xfs_trace.c:6: In file included from fs/xfs/xfs.h:22: In file included from fs/xfs/xfs_linux.h:31: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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/hexagon/include/asm/io.h:337: 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 fs/xfs/xfs_trace.c:6: In file included from fs/xfs/xfs.h:22: In file included from fs/xfs/xfs_linux.h:31: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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/hexagon/include/asm/io.h:337: 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); | ~~~~~~~~~~ ^ In file included from fs/xfs/xfs_trace.c:45: In file included from fs/xfs/xfs_trace.h:4428: In file included from include/trace/define_trace.h:102: In file included from include/trace/trace_events.h:94: >> fs/xfs/xfs_trace.h:805:19: error: use of undeclared identifier 'PTE_SHIFT' 805 | TRACE_DEFINE_ENUM(PMD_ORDER); | ^ include/linux/pgtable.h:8:32: note: expanded from macro 'PMD_ORDER' 8 | #define PMD_ORDER (PMD_SHIFT - PTE_SHIFT) | ^ In file included from fs/xfs/xfs_trace.c:45: In file included from fs/xfs/xfs_trace.h:4428: In file included from include/trace/define_trace.h:102: In file included from include/trace/trace_events.h:94: fs/xfs/xfs_trace.h:806:19: error: use of undeclared identifier 'PTE_SHIFT' 806 | TRACE_DEFINE_ENUM(PUD_ORDER); | ^ include/linux/pgtable.h:9:32: note: expanded from macro 'PUD_ORDER' 9 | #define PUD_ORDER (PUD_SHIFT - PTE_SHIFT) | ^ In file included from fs/xfs/xfs_trace.c:45: In file included from fs/xfs/xfs_trace.h:4428: In file included from include/trace/define_trace.h:102: In file included from include/trace/trace_events.h:237: fs/xfs/xfs_trace.h:831:6: error: use of undeclared identifier 'PTE_SHIFT' 831 | { PMD_ORDER, "PMD" }, | ^ include/linux/pgtable.h:8:32: note: expanded from macro 'PMD_ORDER' 8 | #define PMD_ORDER (PMD_SHIFT - PTE_SHIFT) | ^ In file included from fs/xfs/xfs_trace.c:45: In file included from fs/xfs/xfs_trace.h:4428: In file included from include/trace/define_trace.h:102: In file included from include/trace/trace_events.h:237: fs/xfs/xfs_trace.h:832:6: error: use of undeclared identifier 'PTE_SHIFT' 832 | { PUD_ORDER, "PUD" }), | ^ include/linux/pgtable.h:9:32: note: expanded from macro 'PUD_ORDER' 9 | #define PUD_ORDER (PUD_SHIFT - PTE_SHIFT) | ^ 6 warnings and 4 errors generated. vim +/PTE_SHIFT +4876 mm/memory.c 4869 4870 static inline vm_fault_t create_huge_pmd(struct vm_fault *vmf) 4871 { 4872 struct vm_area_struct *vma = vmf->vma; 4873 if (vma_is_anonymous(vma)) 4874 return do_huge_pmd_anonymous_page(vmf); 4875 if (vma->vm_ops->huge_fault) > 4876 return vma->vm_ops->huge_fault(vmf, PMD_ORDER); 4877 return VM_FAULT_FALLBACK; 4878 } 4879 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki