Occasionally, I will forget to link something from the mailing list in this post. To see my full mailing list activity (patches, reviews, and reports), you can view it on lore.kernel.org.
Linux kernel patches
-
Build errors: These are patches to fix various build errors that I found through testing different configurations with LLVM or were exposed by our continuous integration setup. The kernel needs to build in order to be run :)
-
Miscellaneous fixes and improvements: These are fixes and improvements that don’t fit into a particular category but are important to ClangBuiltLinux.
kbuild: Remove support for Clang's ThinLTO caching
(v1
)
-
Warning fixes: These are patches to fix various warnings that appear with LLVM. I used to go into detail about the different warnings and what they mean, but the important takeaway for this section is that the kernel should build warning free, as all developers should be using
CONFIG_WERROR
, which will turn these all into failures. Maybe these should be in the build failures section…
Patch review and input
For the next sections, I link directly to my first response in the thread when possible but there are times where the link is to the main post. My responses can be seen inline by going to the bottom of the thread and clicking on my name.
Reviewing patches that are submitted is incredibly important, as it helps ensure good code quality due to catching mistakes before the patches get accepted and it can help get patches accepted faster, as some maintainers will blindly pick up patches that have been reviewed by someone that they trust.
Re: [PATCH] selftests/harness: fix many "format string is empty" warnings
Re: [PATCH] powerpc: Set _IO_BASE to POISON_POINTER_DELTA not 0 for CONFIG_PCI=n
Re: [PATCH] x86/alternatives: Make FineIBT mode Kconfig selectable
Re: [PATCH] maple_tree: Fix build failure with W=1 and LLVM=1
Re: [PATCH] kunit: tool: Build compile_commands.json
kunit/fortify: Fix memcmp() test to be amplitude agnostic
Re: [PATCH 2/7] riscv: Implement cmpxchg8/16() using Zabha
Re: [PATCH v2] selftests/user_events: silence a clang warning: address of packed member
Re: [PATCH v2] selftests/net: suppress clang's "variable-sized type not at the end" warning
Re: [PATCH 1/2] x86/percpu: Fix "multiple identical address spaces specified for type" clang warning
Issue triage, input, and reporting
The unfortunate thing about working at the intersection of two projects is we will often find bugs that are not strictly related to the project, which require some triage and reporting back to the original author of the breakage so that they can be fixed and not impact our own testing. Some of these bugs fall into that category while others are issues strictly related to this project.
Re: [PATCH v5 1/2] lib/test_bitops: Add benchmark test for fns()
Re: [PATCH v3 0/2] Fix Kernel CI issues
Re: [PULL 18/19] KVM: SEV: Provide support for SNP_EXTENDED_GUEST_REQUEST NAE event
loongarch ld.lld warning from libstub after enabling CONFIG_UNWINDER_ORC
Many objtool warnings for LoongArch
[MCAsmParser] .rept/.irp/.irpc: remove excess tail EOL in expansion
fortify_test_memcmp from fortify_kunit does not pass with LLVM 15 and newer
-Wbounds-safety-counted-by-elt-type-unknown-size in drivers/tty/mxser.c
-Wbounds-safety-counted-by-elt-type-unknown-size in drivers/nvme/target/fc.c
-Wbounds-safety-counted-by-elt-type-unknown-size in drivers/gpu/drm/radeon/pptable.h
Re: [jlayton:mgtime 4/5] fs/inode.c:73:15: error: '__section__' attribute only applies to functions, global variables, Objective-C methods, and Objective-C properties
fatal error: error in backend: Unsupported expression in static initializer: addrspacecast (ptr addrspace(256) @const_pcpu_hot to ptr)
Re: [PATCH v3 3/4] LoongArch: Fix entry point in image header
Boot issue on arm64 and loongarch after LLVM commit 5c214eb0c628c874f2c9496e663be4067e64442a
[DAGCombine] Transform shl X, cttz(Y) to mul (Y & -Y), X if cttz is unsupported
Tooling improvements
These are changes to various tools that we use, such as our continuous integration setup, booting utilities, toolchain building scripts, or other closely related projects such as AOSP’s distribution of LLVM and TuxMake.
patches: Drop android15-6.6 (May 1, 2024)
Update korg-clang-18 to 18.1.5
patches: Drop Bluetooth patch (May 2, 2024)
Add a CONFIG_CFI_CLANG build for ARCH=arm on -next with LLVM >= 16
patches: Drop media patch from -next
Enable RISC-V allmodconfig ThinLTO builds on mainline
scripts/build-local.py: Add else with assertion to clear up new pylint warning
Update stable anchor to 6.9
boot-utils: Address new pylint possibly-used-before-assignment warnings
Update korg-clang-18 to 18.1.6
Update default PGO kernel to 6.9.0 and update known good revision
Fix broken builds where possible (May 22, 2024)
src: Drop patches that fail to apply after 6.9 update
tc_build: llvm: Handle removal of LLVM_ENABLE_TERMINFO
Behind the scenes
-
Every day that there is a new linux-next release, I rebase and build a few different kernel trees then boot and runtime test them on several different machines, including a Raspberry Pi 4, a Raspberry Pi 3, a SolidRun Honeycomb LX2, an Ampere Altra Developer Platform, two Intel-based desktops, an AMD-based desktop, and an Intel-based laptop. This is not always visible because I do not report anything unless there is something broken but it can take up to a few hours each day, depending on the amount of churn and issues uncovered.
-
I continue to upload prebuilt, fast versions of LLVM for kernel developers and our continuous integration to use.
-
I worked with Miguel Ojeda to provide versions of the LLVM toolchains mentioned above with Rust for developers looking to get involved in the kernel through Rust for Linux.
-
I ran the May 1, May 15, and May 29 ClangBuiltLinux meetings.
Special thanks
Special thanks to Google and the Linux Foundation for sponsoring my work.