Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4609237pxf; Tue, 16 Mar 2021 19:15:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwri7Rm/A+di+oFRhiVG385n4qm8tuOfBoxSlujuaVzhTr5IMnaIWl7lT3VYYWzUHMrhKYU X-Received: by 2002:aa7:c1d8:: with SMTP id d24mr29405834edp.290.1615947349052; Tue, 16 Mar 2021 19:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615947349; cv=none; d=google.com; s=arc-20160816; b=U8zvMVvCypVH8g2QMX/7o02fMdnmBZItPYtBRYIGuFvpuH4vlXm7w5w54HKJcJcWtI S/ece8OfYpmC60If6mZuxXqcrFiDr3KB62P4sFu0lk6juC20odZqFgRjQ6tIkHi+Dp5q W264KFZhmrFa9GLABA9lBiL9tsWmpZlKTZq1RPkqjzcix/XFBUnKvL2JpS7nHoRWf9Ga /nmRaEsRTvYkXJkXVneFvG1pACAVkRZvf1FvmB2jUZ2URsIHctYB6K9Zlr/2wo+Ujgbc xRqo5W/M4wauVgk9xJuhOXCbCfu9hw9mziCEVAtJG7XcYradFrn1NIQCr8Bd66zKtS/Z R6gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=41NkrIMH8PjY3pAH1ykcGqo7RjzYg+CP39kjwIN/ng4=; b=f5ES+wf1onVOdE9sDQ2Co1mBkswocWIB0ANyims9YDTDD0vbOlyw5NTMCuGLkiVI7b I15ZeSWMdS+OAQGt4redEvJtk7Z2Y1+uyhn9LDtsIvIfPzH3HtyaeQuC92kLG0VWeAPr w/7PVXtvlUo5BHfVL/8dwpgnFKCOd1dtsSImZCox3YizWB13c2qwyhuuWD17e3Aj2YrH hSFFVgaQYWYdNNSLsXJ0soFrUAgU7TTyX5ffk/0vvWQrL2I6iVaRMkyF78RPYgsDEoYf 0ETbDFGq8b6dcZp+Q0UeDn9cLCXjdTtUHyIlK53UcDbOIoMKPG7uj+ZfDnTS9Qlh/n4j 0OVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si16105497ejz.282.2021.03.16.19.15.26; Tue, 16 Mar 2021 19:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbhCQCLz (ORCPT + 99 others); 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