# git rev-parse -q --verify 4ee812f6143d78d8ba1399671d78c8d78bf2817c^{commit} # git fetch -q -n -f git://fs.ozlabs.ibm.com/kernel/crypto master # git rev-parse -q --verify 4ee812f6143d78d8ba1399671d78c8d78bf2817c^{commit} 4ee812f6143d78d8ba1399671d78c8d78bf2817c # git checkout -q -f -B kisskb 4ee812f6143d78d8ba1399671d78c8d78bf2817c # git clean -qxdf # < git log -1 # commit 4ee812f6143d78d8ba1399671d78c8d78bf2817c # Author: Michael Ellerman # Date: Wed Nov 20 22:27:38 2019 +1100 # # crypto: vmx - Avoid weird build failures # # In the vmx crypto Makefile we assign to a variable called TARGET and # pass that to the aesp8-ppc.pl and ghashp8-ppc.pl scripts. # # The variable is meant to describe what flavour of powerpc we're # building for, eg. either 32 or 64-bit, and big or little endian. # # Unfortunately TARGET is a fairly common name for a make variable, and # if it happens that TARGET is specified as a command line parameter to # make, the value specified on the command line will override our value. # # In particular this can happen if the kernel Makefile is driven by an # external Makefile that uses TARGET for something. # # This leads to weird build failures, eg: # nonsense at /build/linux/drivers/crypto/vmx/ghashp8-ppc.pl line 45. # /linux/drivers/crypto/vmx/Makefile:20: recipe for target 'drivers/crypto/vmx/ghashp8-ppc.S' failed # # Which shows that we passed an empty value for $(TARGET) to the perl # script, confirmed with make V=1: # # perl /linux/drivers/crypto/vmx/ghashp8-ppc.pl > drivers/crypto/vmx/ghashp8-ppc.S # # We can avoid this confusion by using override, to tell make that we # don't want anything to override our variable, even a value specified # on the command line. We can also use a less common name, given the # script calls it "flavour", let's use that. # # Signed-off-by: Michael Ellerman # Signed-off-by: Herbert Xu # < /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 4ee812f6143d78d8ba1399671d78c8d78bf2817c # < make -s -j 24 ARCH=powerpc O=/kisskb/build/crypto_ppc64e_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc64e_defconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/crypto_ppc64e_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:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec.isra.30': /kisskb/src/net/bridge/br_netlink.c:648:7: warning: 'err' 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:338:21: note: 'pdeo' was declared here /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2076:9: warning: 'str' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /kisskb/src/drivers/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1836:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1749:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:625:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] WARNING: vmlinux.o (.PPC.EMB.apuinfo): unexpected non-allocatable section. Did you forget to use "ax"/"aw" in a .S file? Note that for example contains section definitions for use in .S files. INFO: Uncompressed kernel (size 0xbc73b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.4.0-rc1-g4ee812f6143d Created: Mon Nov 25 14:30:23 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4908741 Bytes = 4793.69 KiB = 4.68 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/crypto_ppc64e_defconfig_powerpc-gcc4.6 # Build took: 0:02:15.043836