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=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 DCE85C433E0 for ; Mon, 11 Jan 2021 19:18:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6675F22CAD for ; Mon, 11 Jan 2021 19:18:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6675F22CAD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 93E546B01B3; Mon, 11 Jan 2021 14:18:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8C7FF6B01F2; Mon, 11 Jan 2021 14:18:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 790806B01F4; Mon, 11 Jan 2021 14:18:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0101.hostedemail.com [216.40.44.101]) by kanga.kvack.org (Postfix) with ESMTP id 60A166B01B3 for ; Mon, 11 Jan 2021 14:18:35 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3168F180AD811 for ; Mon, 11 Jan 2021 19:18:35 +0000 (UTC) X-FDA: 77694455790.05.tent70_0712d192750f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id 1309F1801542D for ; Mon, 11 Jan 2021 19:18:35 +0000 (UTC) X-HE-Tag: tent70_0712d192750f X-Filterd-Recvd-Size: 7075 Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Mon, 11 Jan 2021 19:18:34 +0000 (UTC) Received: by mail-vs1-f45.google.com with SMTP id e15so150085vsa.0 for ; Mon, 11 Jan 2021 11:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CIx5IVtuLGFxUnj8AsuBBDk8yTgBFIvAgNcRfRep6yY=; b=DqnMChe+zkxTApT8POmsFNFJE9PhFjDfPwEaxXYuXVRvYmULmlEsfgLxXxcrw6i56J bHrPtTnapvGENbVRCLXI2zq9wQQOuAbLd+48x0V3au/0yrGKlihK1JvBh9X7RbXmfGQL Jj1Z+hoouDPJkGiKW6mCGfsX+0T3T+xlEl2VeMhlcknnKt2oXThWpODlrjqHX7bo6H7W xBg5dQg+/F4vkjNzLlYhdDKokgbcSqke97McdcA7iPwDZJmNLbP1guv69rvPQdgvI9Uv ypIJNqag9s7DXInldcTgM/CHZnubwU0nELNz6qdjlBdUfdg4beSQ1HE+x/kZ9ixxxWZE aC0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CIx5IVtuLGFxUnj8AsuBBDk8yTgBFIvAgNcRfRep6yY=; b=RIJL2xMY4W9RrS81TbrX/1jr7pKT9ITR+rH5cKIpL6fc6PYNed0gHV2jvm8d9NPDMw jq1geIgGluNfEGK52PlAoygWB9h9rtTsBTEdED5BfSEexatk1CsD26/27cAycqVtraQK LtUcGnw66/23Qgp3mwfh50OZ+Zv043DoQWE2+m8qAIJAwbcB3tnokqKjvBlBuKeeKQbz Vu7gjW/qBds2vsK6EU9FQkaYOT3piuA1QkvdjWL6TiRDst5WDXctt+lu8PelTrXgy/pN ltGJveQv6gZr1Iyr8qEHU7myKBZmNQE/hwTsA0vUbwQhMvQQnQPUcinZD/NV33QA/5CT 5cTg== X-Gm-Message-State: AOAM533Lrd+9JC1OMi+JIPVSP0Emoc0RNEmev/Kec1lv7vx0GczV8h5s elQVhzWC+GzzU8mM1Qb0dP0Qwepqb/Pkk3pQNeY= X-Google-Smtp-Source: ABdhPJz7Hb9eP+WcQ619uzkb/loZaEx/qPbcQzww9Gg/VIDeVSgoGPDpJP/fFU/N8KSrGRLjJ0GjOr9c41mhGAXIGj8= X-Received: by 2002:a67:eb55:: with SMTP id x21mr1158508vso.9.1610392713811; Mon, 11 Jan 2021 11:18:33 -0800 (PST) MIME-Version: 1.0 References: <202101100936.GwZyiMDo-lkp@intel.com> In-Reply-To: <202101100936.GwZyiMDo-lkp@intel.com> From: Souptick Joarder Date: Tue, 12 Jan 2021 00:48:22 +0530 Message-ID: Subject: Re: [linux-stable-rc:linux-4.19.y 1441/2773] drivers/base/node.c:429:5: warning: no previous prototype for function 'register_mem_block_under_node_early' To: kernel test robot Cc: Laurent Dufour , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Greg Kroah-Hartman , Andrew Morton , Linux Memory Management List , David Hildenbrand , Oscar Salvador Content-Type: text/plain; charset="UTF-8" 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: On Sun, Jan 10, 2021 at 6:33 AM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y > head: 610bdbf6a174c9a91e34e276a9594114b44bef74 > commit: b6f69f72c15d7f973f5709c5351f378f235b3654 [1441/2773] mm: don't rely on system state to detect hot-plug operations > config: x86_64-randconfig-a001-20210110 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bc556e5685c0f97e79fb7b3c6f15cc5062db8e36) > 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 x86_64 cross compiling tool for clang build > # apt-get install binutils-x86-64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=b6f69f72c15d7f973f5709c5351f378f235b3654 > git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git > git fetch --no-tags linux-stable-rc linux-4.19.y > git checkout b6f69f72c15d7f973f5709c5351f378f235b3654 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> drivers/base/node.c:429:5: warning: no previous prototype for function 'register_mem_block_under_node_early' [-Wmissing-prototypes] > int register_mem_block_under_node_early(struct memory_block *mem_blk, void *arg) > ^ > drivers/base/node.c:429:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > int register_mem_block_under_node_early(struct memory_block *mem_blk, void *arg) > ^ > static > 1 warning generated. It is fixed in the mainline. Will stable tree pick it from there ? > > > vim +/register_mem_block_under_node_early +429 drivers/base/node.c > > 427 > 428 /* register memory section under specified node if it spans that node */ > > 429 int register_mem_block_under_node_early(struct memory_block *mem_blk, void *arg) > 430 { > 431 int nid = *(int *)arg; > 432 unsigned long pfn, sect_start_pfn, sect_end_pfn; > 433 > 434 sect_start_pfn = section_nr_to_pfn(mem_blk->start_section_nr); > 435 sect_end_pfn = section_nr_to_pfn(mem_blk->end_section_nr); > 436 sect_end_pfn += PAGES_PER_SECTION - 1; > 437 for (pfn = sect_start_pfn; pfn <= sect_end_pfn; pfn++) { > 438 int page_nid; > 439 > 440 /* > 441 * memory block could have several absent sections from start. > 442 * skip pfn range from absent section > 443 */ > 444 if (!pfn_present(pfn)) { > 445 pfn = round_down(pfn + PAGES_PER_SECTION, > 446 PAGES_PER_SECTION) - 1; > 447 continue; > 448 } > 449 > 450 /* > 451 * We need to check if page belongs to nid only at the boot > 452 * case because node's ranges can be interleaved. > 453 */ > 454 page_nid = get_nid_for_pfn(pfn); > 455 if (page_nid < 0) > 456 continue; > 457 if (page_nid != nid) > 458 continue; > 459 > 460 return do_register_memory_block_under_node(nid, mem_blk); > 461 } > 462 /* mem section does not span the specified node */ > 463 return 0; > 464 } > 465 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org