tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git merge head: 900be8ab1549359ba980cfb042a043128204a963 commit: 900be8ab1549359ba980cfb042a043128204a963 [138/138] Automatic merge of branches 'master', 'next' and 'fixes' into merge config: powerpc-defconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 900be8ab1549359ba980cfb042a043128204a963 # save the attached .config to linux build tree make.cross ARCH=powerpc
All errors (new ones prefixed by >>): In file included from include/linux/ftrace.h:21:0, from arch/powerpc/include/asm/livepatch.h:23, from arch/powerpc/kernel/setup_64.c:67: arch/powerpc/include/asm/ftrace.h:2:0: error: unterminated #ifndef #ifndef _ASM_POWERPC_FTRACE arch/powerpc/kernel/setup_64.c: In function 'early_setup': >> arch/powerpc/kernel/setup_64.c:354:2: error: implicit declaration of >> function 'this_cpu_enable_ftrace'; did you mean 'preempt_enable_notrace'? >> [-Werror=implicit-function-declaration] this_cpu_enable_ftrace(); ^~~~~~~~~~~~~~~~~~~~~~ preempt_enable_notrace cc1: all warnings being treated as errors -- In file included from arch/powerpc/kernel/smp.c:62:0: arch/powerpc/include/asm/ftrace.h:2:0: error: unterminated #ifndef #ifndef _ASM_POWERPC_FTRACE arch/powerpc/kernel/smp.c: In function 'start_secondary': >> arch/powerpc/kernel/smp.c:1071:2: error: implicit declaration of function >> 'this_cpu_enable_ftrace'; did you mean 'preempt_enable_notrace'? >> [-Werror=implicit-function-declaration] this_cpu_enable_ftrace(); ^~~~~~~~~~~~~~~~~~~~~~ preempt_enable_notrace arch/powerpc/kernel/smp.c: In function '__cpu_disable': >> arch/powerpc/kernel/smp.c:1169:2: error: implicit declaration of function >> 'this_cpu_disable_ftrace'; did you mean 'preempt_disable_notrace'? >> [-Werror=implicit-function-declaration] this_cpu_disable_ftrace(); ^~~~~~~~~~~~~~~~~~~~~~~ preempt_disable_notrace cc1: all warnings being treated as errors -- In file included from include/linux/ftrace.h:21:0, from arch/powerpc/kernel/machine_kexec.c:18: arch/powerpc/include/asm/ftrace.h:2:0: error: unterminated #ifndef #ifndef _ASM_POWERPC_FTRACE arch/powerpc/kernel/machine_kexec.c: In function 'machine_kexec': >> arch/powerpc/kernel/machine_kexec.c:101:2: error: implicit declaration of >> function 'this_cpu_disable_ftrace'; did you mean 'preempt_disable_notrace'? >> [-Werror=implicit-function-declaration] this_cpu_disable_ftrace(); ^~~~~~~~~~~~~~~~~~~~~~~ preempt_disable_notrace >> arch/powerpc/kernel/machine_kexec.c:108:2: error: implicit declaration of >> function 'this_cpu_enable_ftrace'; did you mean 'preempt_enable_notrace'? >> [-Werror=implicit-function-declaration] this_cpu_enable_ftrace(); ^~~~~~~~~~~~~~~~~~~~~~ preempt_enable_notrace cc1: all warnings being treated as errors -- In file included from include/linux/ftrace.h:21:0, from include/linux/perf_event.h:48, from include/linux/trace_events.h:10, from include/trace/trace_events.h:20, from include/trace/define_trace.h:96, from arch/powerpc/kvm/trace_hv.h:500, from arch/powerpc/kvm/book3s_hv.c:80: arch/powerpc/include/asm/ftrace.h:2:0: error: unterminated #ifndef #ifndef _ASM_POWERPC_FTRACE arch/powerpc/kvm/book3s_hv.c: In function 'kvmppc_run_core': >> arch/powerpc/kvm/book3s_hv.c:2914:2: error: implicit declaration of function >> 'this_cpu_disable_ftrace'; did you mean 'preempt_disable_notrace'? >> [-Werror=implicit-function-declaration] this_cpu_disable_ftrace(); ^~~~~~~~~~~~~~~~~~~~~~~ preempt_disable_notrace >> arch/powerpc/kvm/book3s_hv.c:2918:2: error: implicit declaration of function >> 'this_cpu_enable_ftrace'; did you mean 'preempt_enable_notrace'? >> [-Werror=implicit-function-declaration] this_cpu_enable_ftrace(); ^~~~~~~~~~~~~~~~~~~~~~ preempt_enable_notrace cc1: all warnings being treated as errors vim +354 arch/powerpc/kernel/setup_64.c c0abd0c74 Nicholas Piggin 2018-02-14 264 40ef8cbc6 Paul Mackerras 2005-10-10 265 /* 40ef8cbc6 Paul Mackerras 2005-10-10 266 * Early initialization entry point. This is called by head.S 40ef8cbc6 Paul Mackerras 2005-10-10 267 * with MMU translation disabled. We rely on the "feature" of 40ef8cbc6 Paul Mackerras 2005-10-10 268 * the CPU that ignores the top 2 bits of the address in real 40ef8cbc6 Paul Mackerras 2005-10-10 269 * mode so we can access kernel globals normally provided we 40ef8cbc6 Paul Mackerras 2005-10-10 270 * only toy with things in the RMO region. From here, we do 95f72d1ed Yinghai Lu 2010-07-12 271 * some early parsing of the device-tree to setup out MEMBLOCK 40ef8cbc6 Paul Mackerras 2005-10-10 272 * data structures, and allocate & initialize the hash table 40ef8cbc6 Paul Mackerras 2005-10-10 273 * and segment tables so we can start running with translation 40ef8cbc6 Paul Mackerras 2005-10-10 274 * enabled. 40ef8cbc6 Paul Mackerras 2005-10-10 275 * 40ef8cbc6 Paul Mackerras 2005-10-10 276 * It is this function which will call the probe() callback of 40ef8cbc6 Paul Mackerras 2005-10-10 277 * the various platform types and copy the matching one to the 40ef8cbc6 Paul Mackerras 2005-10-10 278 * global ppc_md structure. Your platform can eventually do 40ef8cbc6 Paul Mackerras 2005-10-10 279 * some very early initializations from the probe() routine, but 40ef8cbc6 Paul Mackerras 2005-10-10 280 * this is not recommended, be very careful as, for example, the 40ef8cbc6 Paul Mackerras 2005-10-10 281 * device-tree is not accessible via normal means at this point. 40ef8cbc6 Paul Mackerras 2005-10-10 282 */ 40ef8cbc6 Paul Mackerras 2005-10-10 283 40ef8cbc6 Paul Mackerras 2005-10-10 284 void __init early_setup(unsigned long dt_ptr) 40ef8cbc6 Paul Mackerras 2005-10-10 285 { 6a7e40641 Geoff Levand 2013-02-13 286 static __initdata struct paca_struct boot_paca; 6a7e40641 Geoff Levand 2013-02-13 287 24d964957 Benjamin Herrenschmidt 2008-05-07 288 /* -------- printk is _NOT_ safe to use here ! ------- */ 24d964957 Benjamin Herrenschmidt 2008-05-07 289 5a61ef74f Nicholas Piggin 2017-05-09 290 /* Try new device tree based feature discovery ... */ 5a61ef74f Nicholas Piggin 2017-05-09 291 if (!dt_cpu_ftrs_init(__va(dt_ptr))) 5a61ef74f Nicholas Piggin 2017-05-09 292 /* Otherwise use the old style CPU table */ 974a76f51 Paul Mackerras 2006-11-10 293 identify_cpu(0, mfspr(SPRN_PVR)); 42c4aaadb Benjamin Herrenschmidt 2006-10-24 294 33dbcf72f Michael Ellerman 2006-06-28 295 /* Assume we're on cpu 0 for now. Don't write to the paca yet! */ 1426d5a3b Michael Ellerman 2010-01-28 296 initialise_paca(&boot_paca, 0); 1426d5a3b Michael Ellerman 2010-01-28 297 setup_paca(&boot_paca); 25e138149 Michael Ellerman 2013-02-12 298 fixup_boot_paca(); 33dbcf72f Michael Ellerman 2006-06-28 299 24d964957 Benjamin Herrenschmidt 2008-05-07 300 /* -------- printk is now safe to use ------- */ 24d964957 Benjamin Herrenschmidt 2008-05-07 301 f2fd25131 Benjamin Herrenschmidt 2008-05-07 302 /* Enable early debugging if any specified (see udbg.h) */ f2fd25131 Benjamin Herrenschmidt 2008-05-07 303 udbg_early_init(); f2fd25131 Benjamin Herrenschmidt 2008-05-07 304 e8222502e Benjamin Herrenschmidt 2006-03-28 305 DBG(" -> early_setup(), dt_ptr: 0x%lx\n", dt_ptr); 40ef8cbc6 Paul Mackerras 2005-10-10 306 40ef8cbc6 Paul Mackerras 2005-10-10 307 /* 3c607ce2a Linas Vepstas 2007-09-07 308 * Do early initialization using the flattened device 3c607ce2a Linas Vepstas 2007-09-07 309 * tree, such as retrieving the physical memory map or 3c607ce2a Linas Vepstas 2007-09-07 310 * calculating/retrieving the hash table size. 40ef8cbc6 Paul Mackerras 2005-10-10 311 */ 40ef8cbc6 Paul Mackerras 2005-10-10 312 early_init_devtree(__va(dt_ptr)); 40ef8cbc6 Paul Mackerras 2005-10-10 313 4df20460a Anton Blanchard 2006-03-25 314 /* Now we know the logical id of our boot cpu, setup the paca. */ 4890aea65 Nicholas Piggin 2018-02-14 315 if (boot_cpuid != 0) { 4890aea65 Nicholas Piggin 2018-02-14 316 /* Poison paca_ptrs[0] again if it's not the boot cpu */ 4890aea65 Nicholas Piggin 2018-02-14 317 memset(&paca_ptrs[0], 0x88, sizeof(paca_ptrs[0])); 4890aea65 Nicholas Piggin 2018-02-14 318 } d2e60075a Nicholas Piggin 2018-02-14 319 setup_paca(paca_ptrs[boot_cpuid]); 25e138149 Michael Ellerman 2013-02-12 320 fixup_boot_paca(); 4df20460a Anton Blanchard 2006-03-25 321 63c254a50 Benjamin Herrenschmidt 2016-07-05 322 /* d3cbff1b5 Benjamin Herrenschmidt 2016-07-05 323 * Configure exception handlers. This include setting up trampolines d3cbff1b5 Benjamin Herrenschmidt 2016-07-05 324 * if needed, setting exception endian mode, etc... 63c254a50 Benjamin Herrenschmidt 2016-07-05 325 */ d3cbff1b5 Benjamin Herrenschmidt 2016-07-05 326 configure_exceptions(); 0cc4746ca Michael Ellerman 2005-12-04 327 c4bd6cb87 Benjamin Herrenschmidt 2016-07-05 328 /* Apply all the dynamic patching */ c4bd6cb87 Benjamin Herrenschmidt 2016-07-05 329 apply_feature_fixups(); 97f6e0cc3 Benjamin Herrenschmidt 2016-08-10 330 setup_feature_keys(); c4bd6cb87 Benjamin Herrenschmidt 2016-07-05 331 9e8066f39 Michael Ellerman 2016-07-26 332 /* Initialize the hash table or TLB handling */ 9e8066f39 Michael Ellerman 2016-07-26 333 early_init_mmu(); 9e8066f39 Michael Ellerman 2016-07-26 334 a944a9c40 Benjamin Herrenschmidt 2014-03-28 335 /* 1696d0fb7 Nicholas Piggin 2017-10-24 336 * After firmware and early platform setup code has set things up, 1696d0fb7 Nicholas Piggin 2017-10-24 337 * we note the SPR values for configurable control/performance 1696d0fb7 Nicholas Piggin 2017-10-24 338 * registers, and use those as initial defaults. 1696d0fb7 Nicholas Piggin 2017-10-24 339 */ 1696d0fb7 Nicholas Piggin 2017-10-24 340 record_spr_defaults(); 1696d0fb7 Nicholas Piggin 2017-10-24 341 1696d0fb7 Nicholas Piggin 2017-10-24 342 /* a944a9c40 Benjamin Herrenschmidt 2014-03-28 343 * At this point, we can let interrupts switch to virtual mode a944a9c40 Benjamin Herrenschmidt 2014-03-28 344 * (the MMU has been setup), so adjust the MSR in the PACA to 8f619b542 Benjamin Herrenschmidt 2014-03-28 345 * have IR and DR set and enable AIL if it exists a944a9c40 Benjamin Herrenschmidt 2014-03-28 346 */ 8f619b542 Benjamin Herrenschmidt 2014-03-28 347 cpu_ready_for_interrupts(); a944a9c40 Benjamin Herrenschmidt 2014-03-28 348 d10397863 Naveen N. Rao 2018-04-19 349 /* d10397863 Naveen N. Rao 2018-04-19 350 * We enable ftrace here, but since we only support DYNAMIC_FTRACE, it d10397863 Naveen N. Rao 2018-04-19 351 * will only actually get enabled on the boot cpu much later once d10397863 Naveen N. Rao 2018-04-19 352 * ftrace itself has been initialized. d10397863 Naveen N. Rao 2018-04-19 353 */ d10397863 Naveen N. Rao 2018-04-19 @354 this_cpu_enable_ftrace(); d10397863 Naveen N. Rao 2018-04-19 355 40ef8cbc6 Paul Mackerras 2005-10-10 356 DBG(" <- early_setup()\n"); 7191b6157 Benjamin Herrenschmidt 2013-07-25 357 :::::: The code at line 354 was first introduced by commit :::::: d103978636c27fce216bbc8bb289981047b71bd4 powerpc64/ftrace: Delay enabling ftrace on secondary cpus :::::: TO: Naveen N. Rao <naveen.n....@linux.vnet.ibm.com> :::::: CC: Michael Ellerman <m...@ellerman.id.au> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip