# git rev-parse -q --verify 0bc81767c5bd9d005fae1099fb39eb3688370cb1^{commit} 0bc81767c5bd9d005fae1099fb39eb3688370cb1 already have revision, skipping fetch # git checkout -q -f -B kisskb 0bc81767c5bd9d005fae1099fb39eb3688370cb1 # git clean -qxdf # < git log -1 # commit 0bc81767c5bd9d005fae1099fb39eb3688370cb1 # Author: Ard Biesheuvel # Date: Fri Jan 17 17:43:18 2020 +0100 # # crypto: arm/chacha - fix build failured when kernel mode NEON is disabled # # When the ARM accelerated ChaCha driver is built as part of a configuration # that has kernel mode NEON disabled, we expect the compiler to propagate # the build time constant expression IS_ENABLED(CONFIG_KERNEL_MODE_NEON) in # a way that eliminates all the cross-object references to the actual NEON # routines, which allows the chacha-neon-core.o object to be omitted from # the build entirely. # # Unfortunately, this fails to work as expected in some cases, and we may # end up with a build error such as # # chacha-glue.c:(.text+0xc0): undefined reference to `chacha_4block_xor_neon' # # caused by the fact that chacha_doneon() has not been eliminated from the # object code, even though it will never be called in practice. # # Let's fix this by adding some IS_ENABLED(CONFIG_KERNEL_MODE_NEON) tests # that are not strictly needed from a logical point of view, but should # help the compiler infer that the NEON code paths are unreachable in # those cases. # # Fixes: b36d8c09e710c71f ("crypto: arm/chacha - remove dependency on generic ...") # Reported-by: Russell King # Cc: Arnd Bergmann # Signed-off-by: Ard Biesheuvel # 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 0bc81767c5bd9d005fae1099fb39eb3688370cb1 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/crypto_pseries_defconfig+POWERNV=n_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- pseries_defconfig # Added to kconfig CONFIG_PPC_POWERNV=n # yes \n | make -s -j 80 ARCH=powerpc O=/kisskb/build/crypto_pseries_defconfig+POWERNV=n_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- oldconfig yes: standard output: Broken pipe # make -s -j 80 ARCH=powerpc O=/kisskb/build/crypto_pseries_defconfig+POWERNV=n_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591: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:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /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/ext4/extents.c: In function 'ext4_convert_unwritten_io_end_vec': /kisskb/src/fs/ext4/extents.c:5054:23: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/core/devlink.c: In function 'devlink_fmsg_prepare_skb': /kisskb/src/net/core/devlink.c:4613:6: warning: 'err' 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/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1377:5: warning: 'page' 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/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] /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/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] Completed OK # rm -rf /kisskb/build/crypto_pseries_defconfig+POWERNV=n_powerpc-gcc4.6 # Build took: 0:02:25.068903