# git rev-parse -q --verify 2b172b47b9a1734fe3bbe23d33336ba829c158fe^{commit} 2b172b47b9a1734fe3bbe23d33336ba829c158fe already have revision, skipping fetch # git checkout -q -f -B kisskb 2b172b47b9a1734fe3bbe23d33336ba829c158fe # git clean -qxdf # < git log -1 # commit 2b172b47b9a1734fe3bbe23d33336ba829c158fe # Author: Alexey Kardashevskiy # Date: Thu Jan 10 14:49:43 2019 +1100 # # powerpc/powernv/npu: Move platform shared code to sysdev # # Initially NPU support was introduced for the powernv platform only, # and later it was extended to pseries so we ended up in a situation when # pseries code calls into arch/powerpc/platforms/powernv which is ugly. # # This moves parts of npu-dma.c required for both powernv and pseries # platforms to sysdev. # # This is mostly cut-n-paste; the only change is: # the pnv_npu2_init_context() helper takes a callback pointer which # returns void but the empty stub for it defines the callback as it # returns a pointer so this fixes it. # # From now on it is possible to build without POWERNV platform enabled and # still have NPU2 support on pseries; currently this fails as: # # arch/powerpc/platforms/pseries/pci.o: In function `pSeries_final_fixup': # /home/aik/p/kernel/arch/powerpc/platforms/pseries/pci.c:267: undefined reference to `pnv_npu2_init' # /home/aik/p/kernel/Makefile==1027== recipe for target 'vmlinux' failed # make[1]: *** [vmlinux] Error 1 # # Signed-off-by: Alexey Kardashevskiy # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 2b172b47b9a1734fe3bbe23d33336ba829c158fe # < make -s -j 80 ARCH=powerpc O=/kisskb/build/aik_mpc512x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc512x_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/aik_mpc512x_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2594:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1855:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/mtd/nand/raw/mpc5121_nfc.c: In function 'ads5121_select_chip': /kisskb/src/drivers/mtd/nand/raw/mpc5121_nfc.c:306:19: warning: unused variable 'mtd' [-Wunused-variable] INFO: Uncompressed kernel (size 0x5ff1f4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.20.0-g2b172b47b9a1 Created: Fri Jan 11 01:57:45 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3067546 Bytes = 2995.65 KiB = 2.93 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/aik_mpc512x_defconfig_powerpc-gcc4.6 # Build took: 0:00:40.712768