All of lore.kernel.org
 help / color / mirror / Atom feed
* [sparc:master 3/4] arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function 'smp_
@ 2016-09-28 17:18 kbuild test robot
  2016-09-29  0:44 ` [sparc:master 3/4] arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function ' David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2016-09-28 17:18 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 1525 bytes --]

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

vim +/smp_fill_in_cpu_possible_map +653 arch/sparc/kernel/setup_64.c

   647	
   648		/* Get boot processor trap_block[] setup.  */
   649		init_cur_cpu_trap(current_thread_info());
   650	
   651		paging_init();
   652		init_sparc64_elf_hwcap();
 > 653		smp_fill_in_cpu_possible_map();
   654	}
   655	
   656	extern int stop_a_enabled;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 5001 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sparc:master 3/4] arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function '
  2016-09-28 17:18 [sparc:master 3/4] arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function 'smp_ kbuild test robot
@ 2016-09-29  0:44 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-09-29  0:44 UTC (permalink / raw)
  To: sparclinux

From: kbuild test robot <fengguang.wu@intel.com>
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 <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
 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) */
 
-- 
2.5.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-29  0:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 17:18 [sparc:master 3/4] arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function 'smp_ kbuild test robot
2016-09-29  0:44 ` [sparc:master 3/4] arch/sparc/kernel/setup_64.c:653:2: error: implicit declaration of function ' David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.