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 B0FD3C25B08 for ; Sat, 6 Aug 2022 03:41:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9925B8E0001; Fri, 5 Aug 2022 23:41:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 91B3B6B0072; Fri, 5 Aug 2022 23:41:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 793CF8E0001; Fri, 5 Aug 2022 23:41:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 66A026B0071 for ; Fri, 5 Aug 2022 23:41:50 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2CF541204E9 for ; Sat, 6 Aug 2022 03:41:50 +0000 (UTC) X-FDA: 79767768780.15.DD7EE3E Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf20.hostedemail.com (Postfix) with ESMTP id 6D0CC1C014E for ; Sat, 6 Aug 2022 03:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659757308; x=1691293308; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bxuIsQ3vSf1Kyabb4SQPd1SdGjo2Pj/GTdgl6KVSO0k=; b=J8ff+iGBaeKg9lO6YpzZz48VSeO9fqsjKJtBw9T2LgJbC5c+FO56pyEU 81DoP/rbbd9tuOELqK6PYoxLSlXJgqtlvaUf2qm4uMACSTGMcKNnK9RA1 urIpKS5QOmLsq9QlAjsiHXZJfh/c1ROts+2tZ/IzYQNmAw1qVhwJ4xM7W HzhqzxsG+vB8THICzw9XdlJndZFoC62B3lkLQx/ZKpQ4bE4s5nv/r+TzA KeHvFK3cxWzl9F6AkNcaUIBDo/TSdK8ngLJrFPLTX71vU6gG4DLUde7Ep gHBjDtUlM+NJxCd8zl8a0MbrIpjssGaucv7ZvM/S6W62jvtK+tp22NO5o g==; X-IronPort-AV: E=McAfee;i="6400,9594,10430"; a="270722027" X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="270722027" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2022 20:41:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="746062001" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 05 Aug 2022 20:41:42 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oKAh3-000Jz6-29; Sat, 06 Aug 2022 03:41:41 +0000 Date: Sat, 6 Aug 2022 11:41:11 +0800 From: kernel test robot To: Huacai Chen , Arnd Bergmann , Huacai Chen , Thomas Bogendoerfer , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Catalin Marinas , Will Deacon , Dinh Nguyen Cc: kbuild-all@lists.01.org, loongarch@lists.linux.dev, linux-arch@vger.kernel.org, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , Andrew Morton , Linux Memory Management List , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Feiyang Chen Subject: Re: [PATCH V7 1/4] MIPS&LoongArch&NIOS2: Adjust prototypes of p?d_init() Message-ID: <202208061111.tJqmWcij-lkp@intel.com> References: <20220802100513.1303717-2-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220802100513.1303717-2-chenhuacai@loongson.cn> ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=J8ff+iGB; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 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=1659757309; a=rsa-sha256; cv=none; b=CQUtvD64D5PcKyefk0wSwNlK5uqWM9YF8vi+PRq2NVqCblPzClzVX8ijhgD43XGctrZ/w+ BTUEzOIy0mQ/r9QTRv3qwRwLsP3w0F5AVO3j8QtyLk4c0b97fl8/Vwt81rQenmih3ydaw1 hxe4DHQYxyBa8AdReY849foJOWNeG9Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1659757309; 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=UMN4slB5HYG9syk2fHXzbZH59O5tSZK45aYC844BjcI=; b=ZljtWdCC1/e6yyTMt+fo5/FaV7Rp/9wUqpd74/jO2/LT0GfbAtTn4Fswytd5bRXpGearrj u+WTJw8Rw650cEPws/wkPTQvnjNFQ/xcIcXWLCvv/KAC0gdK0yzt9YwQIcipMuHzH86Usg g1FmO5eM+gbC2RwOwK1001fSmuf10D0= X-Rspamd-Server: rspam09 X-Rspam-User: Authentication-Results: imf20.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=J8ff+iGB; spf=pass (imf20.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: wg5cp1468mz1nqikzjouyjuw7psk764a X-Rspamd-Queue-Id: 6D0CC1C014E X-HE-Tag: 1659757308-834191 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 Huacai, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on soc/for-next] [also build test WARNING on kvm/queue arm64/for-next/core linus/master v5.19 next-20220805] [cannot apply to akpm-mm/mm-everything tip/x86/mm] [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/Huacai-Chen/mm-sparse-vmemmap-Generalise-helpers-and-enable-for-LoongArch/20220802-180930 base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next config: mips-buildonly-randconfig-r001-20220805 (https://download.01.org/0day-ci/archive/20220806/202208061111.tJqmWcij-lkp@intel.com/config) compiler: mips64el-linux-gcc (GCC) 12.1.0 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 # https://github.com/intel-lab-lkp/linux/commit/284d2afe87bf580321065fb587ffb8ed5a1d0874 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Huacai-Chen/mm-sparse-vmemmap-Generalise-helpers-and-enable-for-LoongArch/20220802-180930 git checkout 284d2afe87bf580321065fb587ffb8ed5a1d0874 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/mm/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/mips/mm/init.c:42: arch/mips/include/asm/pgalloc.h: In function 'pud_alloc_one': >> arch/mips/include/asm/pgalloc.h:96:26: warning: passing argument 1 of 'pud_init' makes pointer from integer without a cast [-Wint-conversion] 96 | pud_init((unsigned long)pud, (unsigned long)invalid_pmd_table); | ^~~~~~~~~~~~~~~~~~ | | | long unsigned int In file included from arch/mips/include/asm/pgtable.h:17, from include/linux/pgtable.h:6, from include/linux/mm.h:29, from include/linux/pagemap.h:8, from arch/mips/mm/init.c:21: arch/mips/include/asm/pgtable-64.h:329:28: note: expected 'void *' but argument is of type 'long unsigned int' 329 | extern void pud_init(void *addr); | ~~~~~~^~~~ arch/mips/include/asm/pgalloc.h:96:17: error: too many arguments to function 'pud_init' 96 | pud_init((unsigned long)pud, (unsigned long)invalid_pmd_table); | ^~~~~~~~ arch/mips/include/asm/pgtable-64.h:329:13: note: declared here 329 | extern void pud_init(void *addr); | ^~~~~~~~ arch/mips/mm/init.c: At top level: arch/mips/mm/init.c:60:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes] 60 | void setup_zero_pages(void) | ^~~~~~~~~~~~~~~~ -- In file included from arch/mips/mm/pgtable.c:9: arch/mips/include/asm/pgalloc.h: In function 'pud_alloc_one': >> arch/mips/include/asm/pgalloc.h:96:26: warning: passing argument 1 of 'pud_init' makes pointer from integer without a cast [-Wint-conversion] 96 | pud_init((unsigned long)pud, (unsigned long)invalid_pmd_table); | ^~~~~~~~~~~~~~~~~~ | | | long unsigned int In file included from arch/mips/include/asm/pgtable.h:17, from include/linux/pgtable.h:6, from include/linux/mm.h:29, from arch/mips/mm/pgtable.c:7: arch/mips/include/asm/pgtable-64.h:329:28: note: expected 'void *' but argument is of type 'long unsigned int' 329 | extern void pud_init(void *addr); | ~~~~~~^~~~ arch/mips/include/asm/pgalloc.h:96:17: error: too many arguments to function 'pud_init' 96 | pud_init((unsigned long)pud, (unsigned long)invalid_pmd_table); | ^~~~~~~~ arch/mips/include/asm/pgtable-64.h:329:13: note: declared here 329 | extern void pud_init(void *addr); | ^~~~~~~~ vim +/pud_init +96 arch/mips/include/asm/pgalloc.h 3377e227af441a Alex Belits 2017-02-16 89 3377e227af441a Alex Belits 2017-02-16 90 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) 3377e227af441a Alex Belits 2017-02-16 91 { 3377e227af441a Alex Belits 2017-02-16 92 pud_t *pud; 3377e227af441a Alex Belits 2017-02-16 93 473738eb78c3e3 Michal Hocko 2017-07-12 94 pud = (pud_t *) __get_free_pages(GFP_KERNEL, PUD_ORDER); 3377e227af441a Alex Belits 2017-02-16 95 if (pud) 3377e227af441a Alex Belits 2017-02-16 @96 pud_init((unsigned long)pud, (unsigned long)invalid_pmd_table); 3377e227af441a Alex Belits 2017-02-16 97 return pud; 3377e227af441a Alex Belits 2017-02-16 98 } 3377e227af441a Alex Belits 2017-02-16 99 -- 0-DAY CI Kernel Test Service https://01.org/lkp