# 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/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 2b172b47b9a1734fe3bbe23d33336ba829c158fe # < make -s -j 48 ARCH=x86_64 O=/kisskb/build/aik_x86_64-allnoconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- allnoconfig # make -s -j 48 ARCH=x86_64 O=/kisskb/build/aik_x86_64-allnoconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/aik_x86_64-allnoconfig_x86_64-gcc8 # Build took: 0:00:20.166351