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 X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B82DAC433DB for ; Wed, 17 Mar 2021 02:12:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A8B464F91 for ; Wed, 17 Mar 2021 02:12:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbhCQCLz (ORCPT ); Tue, 16 Mar 2021 22:11:55 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13971 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbhCQCLf (ORCPT ); Tue, 16 Mar 2021 22:11:35 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F0YWN0WkXzrXbG; Wed, 17 Mar 2021 10:09:36 +0800 (CST) Received: from [10.174.177.244] (10.174.177.244) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Wed, 17 Mar 2021 10:11:23 +0800 Subject: Re: [PATCH] mm: Move mem_init_print_info() into mm_init() To: kernel test robot , , "Andrew Morton" CC: , , "Linux Memory Management List" , Russell King , Catalin Marinas , "Richard Henderson" , Guo Ren , Yoshinori Sato , Huacai Chen , Jonas Bonn References: <20210316142637.92193-1-wangkefeng.wang@huawei.com> <202103170114.Lj9LzUvl-lkp@intel.com> From: Kefeng Wang Message-ID: <8642c3ec-dd71-d947-9512-2d5e545204d0@huawei.com> Date: Wed, 17 Mar 2021 10:11:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <202103170114.Lj9LzUvl-lkp@intel.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.177.244] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org please use v2, sorry for the wrong version. On 2021/3/17 2:01, kernel test robot wrote: > Hi Kefeng, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on tip/x86/mm] > [also build test ERROR on linus/master v5.12-rc3 next-20210316] > [cannot apply to hnaz-linux-mm/master sparc/master sparc-next/master] > [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] > > url: https://github.com/0day-ci/linux/commits/Kefeng-Wang/mm-Move-mem_init_print_info-into-mm_init/20210316-222501 > base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a500fc918f7b8dc3dff2e6c74f3e73e856c18248 > config: riscv-randconfig-r031-20210316 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 50c7504a93fdb90c26870db8c8ea7add895c7725) > 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 riscv cross compiling tool for clang build > # apt-get install binutils-riscv64-linux-gnu > # https://github.com/0day-ci/linux/commit/0b2c07917fb7f9f87f0e2ecac3a3985155778856 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Kefeng-Wang/mm-Move-mem_init_print_info-into-mm_init/20210316-222501 > git checkout 0b2c07917fb7f9f87f0e2ecac3a3985155778856 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > mm/page_alloc.c:3600:15: warning: no previous prototype for function 'should_fail_alloc_page' [-Wmissing-prototypes] > noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) > ^ > mm/page_alloc.c:3600:10: note: declare 'static' if the function is not intended to be used outside of this translation unit > noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) > ^ > static >>> mm/page_alloc.c:7744:3: error: use of undeclared identifier 'str' > str ? ", " : "", str ? str : ""); > ^ > mm/page_alloc.c:7744:20: error: use of undeclared identifier 'str' > str ? ", " : "", str ? str : ""); > ^ > mm/page_alloc.c:7744:26: error: use of undeclared identifier 'str' > str ? ", " : "", str ? str : ""); > ^ > 1 warning and 3 errors generated. > > > vim +/str +7744 mm/page_alloc.c > > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7729 > 756a025f000919 Joe Perches 2016-03-17 7730 pr_info("Memory: %luK/%luK available (%luK kernel code, %luK rwdata, %luK rodata, %luK init, %luK bss, %luK reserved, %luK cma-reserved" > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7731 #ifdef CONFIG_HIGHMEM > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7732 ", %luK highmem" > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7733 #endif > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7734 "%s%s)\n", > 756a025f000919 Joe Perches 2016-03-17 7735 nr_free_pages() << (PAGE_SHIFT - 10), > 756a025f000919 Joe Perches 2016-03-17 7736 physpages << (PAGE_SHIFT - 10), > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7737 codesize >> 10, datasize >> 10, rosize >> 10, > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7738 (init_data_size + init_code_size) >> 10, bss_size >> 10, > ca79b0c211af63 Arun KS 2018-12-28 7739 (physpages - totalram_pages() - totalcma_pages) << (PAGE_SHIFT - 10), > e48322abb061d7 Pintu Kumar 2014-12-18 7740 totalcma_pages << (PAGE_SHIFT - 10), > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7741 #ifdef CONFIG_HIGHMEM > ca79b0c211af63 Arun KS 2018-12-28 7742 totalhigh_pages() << (PAGE_SHIFT - 10), > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7743 #endif > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 @7744 str ? ", " : "", str ? str : ""); > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7745 } > 7ee3d4e8cd5605 Jiang Liu 2013-07-03 7746 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org