# git rev-parse -q --verify a0d1c951ef08ed24f35129267e3595d86f57f5d3^{commit} a0d1c951ef08ed24f35129267e3595d86f57f5d3 already have revision, skipping fetch # git checkout -q -f -B kisskb a0d1c951ef08ed24f35129267e3595d86f57f5d3 # git clean -qxdf # < git log -1 # commit a0d1c951ef08ed24f35129267e3595d86f57f5d3 # Author: Masahiro Yamada # Date: Wed Apr 8 10:36:23 2020 +0900 # # kbuild: support LLVM=1 to switch the default tools to Clang/LLVM # # As Documentation/kbuild/llvm.rst implies, building the kernel with a # full set of LLVM tools gets very verbose and unwieldy. # # Provide a single switch LLVM=1 to use Clang and LLVM tools instead # of GCC and Binutils. You can pass it from the command line or as an # environment variable. # # Please note LLVM=1 does not turn on the integrated assembler. You need # to pass LLVM_IAS=1 to use it. When the upstream kernel is ready for the # integrated assembler, I think we can make it default. # # We discussed what we need, and we agreed to go with a simple boolean # flag that switches both target and host tools: # # https://lkml.org/lkml/2020/3/28/494 # https://lkml.org/lkml/2020/4/3/43 # # Some items discussed, but not adopted: # # - LLVM_DIR # # When multiple versions of LLVM are installed, I just thought supporting # LLVM_DIR=/path/to/my/llvm/bin/ might be useful. # # CC = $(LLVM_DIR)clang # LD = $(LLVM_DIR)ld.lld # ... # # However, we can handle this by modifying PATH. So, we decided to not do # this. # # - LLVM_SUFFIX # # Some distributions (e.g. Debian) package specific versions of LLVM with # naming conventions that use the version as a suffix. # # CC = clang$(LLVM_SUFFIX) # LD = ld.lld(LLVM_SUFFIX) # ... # # will allow a user to pass LLVM_SUFFIX=-11 to use clang-11 etc., # but the suffixed versions in /usr/bin/ are symlinks to binaries in # /usr/lib/llvm-#/bin/, so this can also be handled by PATH. # # Signed-off-by: Masahiro Yamada # Reviewed-by: Nathan Chancellor # Tested-by: Nathan Chancellor # build # Tested-by: Nick Desaulniers # Reviewed-by: Nick Desaulniers # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux-ld --version # < git log --format=%s --max-count=1 a0d1c951ef08ed24f35129267e3595d86f57f5d3 # < make -s -j 32 ARCH=ia64 O=/kisskb/build/kbuild_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- defconfig # < make -s -j 32 ARCH=ia64 O=/kisskb/build/kbuild_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- help # make -s -j 32 ARCH=ia64 O=/kisskb/build/kbuild_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- olddefconfig # make -s -j 32 ARCH=ia64 O=/kisskb/build/kbuild_ia64-defconfig_ia64-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/ia64-linux/bin/ia64-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1652:6: note: 'oldval' was declared here int oldval, ret; ^ /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dsc_aux_for_port': /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c:5497:9: warning: missing braces around initializer [-Wmissing-braces] struct drm_dp_desc desc = { 0 }; ^ /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c:5497:9: warning: (near initialization for 'desc.ident') [-Wmissing-braces] In file included from /kisskb/src/arch/ia64/include/uapi/asm/intrinsics.h:22:0, from /kisskb/src/arch/ia64/include/asm/intrinsics.h:11, from /kisskb/src/arch/ia64/include/asm/bitops.h:19, from /kisskb/src/include/linux/bitops.h:29, from /kisskb/src/include/linux/kernel.h:12, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/preempt.h:11, from /kisskb/src/include/linux/spinlock.h:51, from /kisskb/src/include/linux/seqlock.h:36, from /kisskb/src/include/linux/time.h:6, from /kisskb/src/fs/nfs/read.c:11: /kisskb/src/fs/nfs/read.c: In function 'nfs_read_completion': /kisskb/src/arch/ia64/include/uapi/asm/cmpxchg.h:57:2: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)))) ^ /kisskb/src/fs/nfs/read.c:196:5: note: in expansion of macro 'xchg' xchg(&nfs_req_openctx(req)->error, error); ^ /kisskb/src/fs/nfs/read.c: In function 'nfs_readpage': /kisskb/src/arch/ia64/include/uapi/asm/cmpxchg.h:57:2: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)))) ^ /kisskb/src/fs/nfs/read.c:353:2: note: in expansion of macro 'xchg' xchg(&ctx->error, 0); ^ No errors detected in 22154 functions. Completed OK # rm -rf /kisskb/build/kbuild_ia64-defconfig_ia64-gcc4.9 # Build took: 0:02:35.335846