# git rev-parse -q --verify 0c83b277ada72b585e6a3e52b067669df15bcedb^{commit} 0c83b277ada72b585e6a3e52b067669df15bcedb already have revision, skipping fetch # git checkout -q -f -B kisskb 0c83b277ada72b585e6a3e52b067669df15bcedb # git clean -qxdf # < git log -1 # commit 0c83b277ada72b585e6a3e52b067669df15bcedb # Author: Michael Ellerman # Date: Tue Aug 4 22:44:06 2020 +1000 # # powerpc: Fix circular dependency between percpu.h and mmu.h # # Recently random.h started including percpu.h (see commit # f227e3ec3b5c ("random32: update the net random state on interrupt and # activity")), which broke corenet64_smp_defconfig: # # In file included from /linux/arch/powerpc/include/asm/paca.h:18, # from /linux/arch/powerpc/include/asm/percpu.h:13, # from /linux/include/linux/random.h:14, # from /linux/lib/uuid.c:14: # /linux/arch/powerpc/include/asm/mmu.h:139:22: error: unknown type name 'next_tlbcam_idx' # 139 | DECLARE_PER_CPU(int, next_tlbcam_idx); # # This is due to a circular header dependency: # asm/mmu.h includes asm/percpu.h, which includes asm/paca.h, which # includes asm/mmu.h # # Which means DECLARE_PER_CPU() isn't defined when mmu.h needs it. # # We can fix it by moving the include of paca.h below the include of # asm-generic/percpu.h. # # This moves the include of paca.h out of the #ifdef __powerpc64__, but # that is OK because paca.h is almost entirely inside #ifdef # CONFIG_PPC64 anyway. # # It also moves the include of paca.h out of the #ifdef CONFIG_SMP, # which could possibly break something, but seems to have no ill # effects. # # Fixes: f227e3ec3b5c ("random32: update the net random state on interrupt and activity") # Cc: stable@vger.kernel.org # v5.8 # Reported-by: Stephen Rothwell # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200804130558.292328-1-mpe@ellerman.id.au # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 0c83b277ada72b585e6a3e52b067669df15bcedb # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4107:warning: override: reassigning to symbol PPC_E500MC .config:4108:warning: override: reassigning to symbol VIRTUALIZATION # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) | ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' 139 | if (IS_ERR_VALUE(fep->ring_mem_addr)) | ^~~~~~~~~~~~ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe9579c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe84f98) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:33 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6781931 Bytes = 6622.98 KiB = 6.47 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:34 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817433 Bytes = 6657.65 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:34 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6816639 Bytes = 6656.87 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:35 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817209 Bytes = 6657.43 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:35 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817767 Bytes = 6657.98 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:35 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817329 Bytes = 6657.55 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:36 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817399 Bytes = 6657.62 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:36 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817378 Bytes = 6657.60 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:36 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817278 Bytes = 6657.50 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:36 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817340 Bytes = 6657.56 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817725 Bytes = 6657.93 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:36 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817207 Bytes = 6657.43 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817529 Bytes = 6657.74 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817041 Bytes = 6657.27 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817207 Bytes = 6657.43 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f0031c Image Name: Linux-5.8.0-rc2-g0c83b277ada7 Created: Wed Aug 5 03:26:37 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6817110 Bytes = 6657.33 KiB = 6.50 MiB Load Address: 00f00000 Entry Point: 00f002cc Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 # Build took: 0:02:52.900692