From patchwork Thu Sep 29 00:44:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Miller X-Patchwork-Id: 676487 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3skwp76kwhz9srY for ; Thu, 29 Sep 2016 10:45:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753982AbcI2ApD (ORCPT ); Wed, 28 Sep 2016 20:45:03 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:43230 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753963AbcI2ApC (ORCPT ); Wed, 28 Sep 2016 20:45:02 -0400 Received: from localhost (unknown [119.198.194.211]) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 7D7AA10197D2A; Wed, 28 Sep 2016 17:44:52 -0700 (PDT) Date: Wed, 28 Sep 2016 20:44:51 -0400 (EDT) Message-Id: <20160928.204451.954612877106240508.davem@davemloft.net> To: fengguang.wu@intel.com Cc: atish.patra@oracle.com, kbuild-all@01.org, sparclinux@vger.kernel.org, bob.picco@oracle.com, vijay.ac.kumar@oracle.com Subject: Re: [sparc:master 3/4] arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function 'smp_fill_in_cpu_possible_map' From: David Miller In-Reply-To: <201609290139.lu4LV1CF%fengguang.wu@intel.com> References: <201609290139.lu4LV1CF%fengguang.wu@intel.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 28 Sep 2016 17:44:53 -0700 (PDT) Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From: kbuild test robot Date: Thu, 29 Sep 2016 01:18:43 +0800 > tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc.git master > head: ebb99a4c12e4daabe1940ae936e8e7e97ae68c6f > commit: 9b2f753ec23710aa32c0d837d2499db92fe9115b [3/4] sparc64: Fix cpu_possible_mask if nr_cpus is set > config: sparc64-allnoconfig (attached as .config) > compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 > reproduce: > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 9b2f753ec23710aa32c0d837d2499db92fe9115b > # save the attached .config to linux build tree > make.cross ARCH=sparc64 > > All errors (new ones prefixed by >>): > > arch/sparc/kernel/setup_64.c: In function 'setup_arch': >>> arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function 'smp_fill_in_cpu_possible_map' [-Werror=implicit-function-declaration] > smp_fill_in_cpu_possible_map(); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors Thanks for the report, fixed thusly: ==================== [PATCH] sparc64: Fix non-SMP build. Need to provide a dummy smp_fill_in_cpu_possible_map. Fixes: 9b2f753ec237 ("sparc64: Fix cpu_possible_mask if nr_cpus is set") Reported-by: kbuild test robot Signed-off-by: David S. Miller --- arch/sparc/include/asm/smp_64.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/include/asm/smp_64.h b/arch/sparc/include/asm/smp_64.h index 87b0575..ce2233f 100644 --- a/arch/sparc/include/asm/smp_64.h +++ b/arch/sparc/include/asm/smp_64.h @@ -73,6 +73,7 @@ void __cpu_die(unsigned int cpu); #define smp_fill_in_sib_core_maps() do { } while (0) #define smp_fetch_global_regs() do { } while (0) #define smp_fetch_global_pmu() do { } while (0) +#define smp_fill_in_cpu_possible_map() do { } while (0) #endif /* !(CONFIG_SMP) */