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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4059EC7EE25 for ; Tue, 2 May 2023 02:22:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233241AbjEBCWU (ORCPT ); Mon, 1 May 2023 22:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232653AbjEBCWT (ORCPT ); Mon, 1 May 2023 22:22:19 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468F93AB8; Mon, 1 May 2023 19:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682994127; x=1714530127; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=85LkbDK+KApuWepVvTrNKkbkOtRXRZZHLuh2xgotSTc=; b=SWG2C9mkUi9n7rSt0nciLqhoZZlIgS1cK0m1feX/w1nZ77bfRr6lra8p nAvGgMzUYK3HkUVtkYKeXZgeNURAhOhf6M/AwuVJzvSPOOysfRUgrHk+V 3sfvl7u47s005rzV98welPZTZw3zziuKtzFvzkY3DbG+PcNPsNHR9TXvG tQQzG4/IxK9BoZMn/ESTVdIEwj+mgIY/0pP2FtXbnPlfh0chOzBJKms6T 34UnUQ3n84LUH6pMRzyPdfu4+r9086uFzMaTllREGcvV4tKNlVOgD3c+N 6BavtjK6PDWhF9S57Dy8A2REq3O4vhVwTUmzmKpbvKauKfnK3cPltzr7f Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10697"; a="376342293" X-IronPort-AV: E=Sophos;i="5.99,242,1677571200"; d="scan'208";a="376342293" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2023 19:22:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10697"; a="646346632" X-IronPort-AV: E=Sophos;i="5.99,242,1677571200"; d="scan'208";a="646346632" Received: from lkp-server01.sh.intel.com (HELO e3434d64424d) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 01 May 2023 19:22:01 -0700 Received: from kbuild by e3434d64424d with local (Exim 4.96) (envelope-from ) id 1ptfeS-0000m8-1s; Tue, 02 May 2023 02:22:00 +0000 Date: Tue, 2 May 2023 10:21:30 +0800 From: kernel test robot To: "Vishal Moola (Oracle)" , Andrew Morton , Matthew Wilcox Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, "Vishal Moola (Oracle)" , Catalin Marinas Subject: Re: [PATCH v2 21/34] arm64: Convert various functions to use ptdescs Message-ID: <202305021038.c9jfVDsv-lkp@intel.com> References: <20230501192829.17086-22-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230501192829.17086-22-vishal.moola@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org Hi Vishal, 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-20230428] [cannot apply to s390/features powerpc/next powerpc/fixes geert-m68k/for-next geert-m68k/for-linus v6.3] [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/Vishal-Moola-Oracle/mm-Add-PAGE_TYPE_OP-folio-functions/20230502-033042 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230501192829.17086-22-vishal.moola%40gmail.com patch subject: [PATCH v2 21/34] arm64: Convert various functions to use ptdescs config: arm64-randconfig-r023-20230430 (https://download.01.org/0day-ci/archive/20230502/202305021038.c9jfVDsv-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b1465cd49efcbc114a75220b153f5a055ce7911f) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/8e9481b63b5773d7c914836dcd7fbec2449902bc git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Vishal-Moola-Oracle/mm-Add-PAGE_TYPE_OP-folio-functions/20230502-033042 git checkout 8e9481b63b5773d7c914836dcd7fbec2449902bc # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305021038.c9jfVDsv-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/arm64/mm/mmu.c:440:10: error: invalid argument type 'void' to unary expression BUG_ON(!ptdesc_pte_dtor(ptdesc)); ^~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/bug.h:71:45: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) ^~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ arch/arm64/mm/mmu.c:442:10: error: invalid argument type 'void' to unary expression BUG_ON(!ptdesc_pte_dtor(ptdesc)); ^~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/bug.h:71:45: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) ^~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ 2 errors generated. vim +/void +440 arch/arm64/mm/mmu.c 425 426 static phys_addr_t pgd_pgtable_alloc(int shift) 427 { 428 phys_addr_t pa = __pgd_pgtable_alloc(shift); 429 struct ptdesc *ptdesc = page_ptdesc(phys_to_page(pa)); 430 431 /* 432 * Call proper page table ctor in case later we need to 433 * call core mm functions like apply_to_page_range() on 434 * this pre-allocated page table. 435 * 436 * We don't select ARCH_ENABLE_SPLIT_PMD_PTLOCK if pmd is 437 * folded, and if so ptdesc_pte_dtor() becomes nop. 438 */ 439 if (shift == PAGE_SHIFT) > 440 BUG_ON(!ptdesc_pte_dtor(ptdesc)); 441 else if (shift == PMD_SHIFT) 442 BUG_ON(!ptdesc_pte_dtor(ptdesc)); 443 444 return pa; 445 } 446 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests