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.
ARM: Fix allowing linker DCE with binutils < 2.36
(v1
)
-
Stable backports and fixes: It is important to make sure that the stable trees are as free from issues as possible, as those are the trees that devices and users use; for example, Android and Chrome OS regularly merge from stable, so if there is a problem that will impact those trees that we fixed in mainline, it should be backported.
-
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…panic: Add __maybe_unused to sys_info_avail
(v1
)firmware: arm_scmi: Use modern PM ops
(v1
)platform/x86/intel/pmt/discovery: Fix size_t specifiers for 32-bit
(v1
)mm/ksm: Fix -Wsometimes-uninitialized from clang-21 in advisor_mode_show()
(v1
)usb: atm: cxacru: Merge cxacru_upload_firmware() into cxacru_heavy_init()
(v1
,v2
)media: s5p-mfc: Always pass NULL to s5p_mfc_cmd_host2risc_v6()
(v1
)wifi: mt76: mt7996: Initialize hdr before passing to skb_put_data()
(v1
)memstick: core: Zero initialize id_reg in h_memstick_read_dev_id()
(v1
)phonet/pep: Move call to pn_skb_get_dst_sockaddr() earlier in pep_sock_accept()
(v1
)drm/msm/dpu: Initialize crtc_state to NULL in dpu_plane_virtual_atomic_check()
(v1
)drm/amdgpu: Initialize data to NULL in imu_v12_0_program_rlc_ram()
(v1
)wifi: brcmsmac: Remove const from tbl_ptr parameter in wlc_lcnphy_common_read_table()
(v1
)riscv: uaccess: Fix -Wuninitialized and -Wshadow in __put_user_nocheck
(v1
)tracing/probes: Avoid using params uninitialized in parse_btf_arg()
(v1
)ASoC: SDCA: Fix uninitialized use of name in sdca_irq_populate()
(v1
)
LLVM patches
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] kunit/fortify: Add back "volatile" for sizeof() constants
Re: [PATCH 2/3] printk: kunit: support offstack cpumask
Re: [PATCH v1 1/1] panic: Fix compilation error (`make W=1`)
[MachinePipeliner] Fix incorrect dependency direction
Re: [PATCH v3] kheaders: make it possible to override TAR
Re: [PATCH] kbuild: userprogs: use correct linker when mixing clang and GNU ld
Re: [PATCH 6.1.y] KVM: arm64: silence -Wuninitialized-const-pointer warning
Revisiting c0a454b9044f
Re: [PATCH] sched/task_stack: Add missing const qualifier to end_of_stack()
Re: [PATCH] kstack_erase: Add -mgeneral-regs-only to silence Clang warnings
Re: [PATCH] kstack_erase: Disable kstack_erase for all of arm compressed boot code
Re: [PATCH v2] compiler_types: Provide __no_kstack_erase to disable coverage only on Clang
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: [tip:x86/urgent 1/1] arch/x86/coco/sev/core.c:2170:30: warning: variable 'dummy' set but not used
Re: [tip:master 19/19] include/linux/irq-entry-common.h:201:2: error: unexpected token
Re: [PATCH v4] btrfs: replace deprecated strcpy with strscpy
Re: [bug report] printk: ringbuffer: Add KUnit test
Re: [linux-next:master 3022/4739] drivers/gpu/drm/msm/msm.o: warning: objtool: msm_dp_ctrl_on_stream(): unexpected end of section .text.msm_dp_ctrl_on_stream
Re: [linux-next:master 7731/9053] arch/arm64/kvm/vgic/vgic-mmio.c:1094:3: warning: variable 'len' is used uninitialized whenever 'if' condition is false
Revisiting c0a454b9044f
[Clang] Diagnose forming references to nullptr
[MachinePipeliner] Add validation for missed loop-carried memory deps
[Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types
-Wformat-invalid-specifier after 88fec3526e84 in -next
Crash on QEMU shutdown with x86_64_defconfig+ThinLTO+CFI after LLVM commit 9878ef3abd2a
Re: [PATCH v4 0/4] stackleak: Support Clang stack depth tracking
[SCEV] Try to re-use pointer LCSSA phis when expanding SCEVs.
objtool warnings "sibling call from callable instruction with modified stack frame" with CONFIG_LTO_CLANG_THIN
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.
Update patches (July 1, 2025)
patches: mainline: Add patch to help debug powerpc kallsyms failure
github: Fix internal problem matcher for color ASCII escape codes
Initial set of changes for LLVM main 21 -> 22 update
patches: Drop android14-6.1 and android15-6.6 (July 27, 2025)
build-binutils.py: 2.45
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.
Special thanks
Special thanks to Google and the Linux Foundation for sponsoring my work.