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 :)
ASoC: cs35l45: Select REGMAP_IRQ
(v1
)
-
Stable backports: 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…
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] kbuild: Enable -Wenum-conversion by default
Re: [PATCH] kbuild: rpm-pkg: Add dtbs support
Re: [PATCH v4 18/21] compiler.h: RFC - s/__LINE__/__COUNTER__/ in __UNIQUE_ID fallback
Re: [PATCH] lib/bitmap: waive const_eval test as it breaks the build
[Clang] Fix -Wconstant-logical-operand when LHS is a constant
Re: [PATCH] arch: enable HAS_LTO_CLANG with KASAN and KCOV
Re: [PATCH] drm/amd/display: Allow building DC with clang on RISC-V
Re: [PATCH] kbuild: rust: avoid creating temporary files
Re: [PATCH] gen_compile_commands: add assembly files to compilation database
[clang][JumpDiagnostics] ignore non-asm goto target scopes
add prereduce v0.1
Re: [PATCH] riscv: Handle zicsr/zifencei issue between gcc and binutils
Add reduce scripts v2
Re: [PATCH] s390/ftrace: use la instead of aghik in return_to_handler()
Re: [PATCH v2] drm: fix indirect goto into statement expression UB
Re: [PATCH 1/2] drm/exec: use unique instead of local label
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 v4 12/13] s390/kexec: refactor for kernel/Kconfig.kexec
Hang while building 32-bit arm Linux 5.4 kernel after 9485d983ac0c
Re: [RFC PATCH 0/2] x86: kprobes: Fix CFI_CLANG related issues
Re: [peterz-queue:sched/maybe 1/14] ERROR: modpost: vmlinux: local symbol '__put_task_struct_rcu_cb' was exported
error: cannot jump from this asm goto statement to one of its possible targets
Re: [akpm-mm:mm-unstable 86/125] drivers/irqchip/irq-al-fic.c:281:2: error: call to undeclared function 'iounmap'; ISO C99 and later do not support implicit function declarations
LLVM commit b0cc947b5d0a7 introduces "error: cannot jump from this asm goto statement to one of its possible targets" for ppc64_defconfig
[compiler-rt] Move crt into builtins
Re: [PATCH 12/18] mtd: nand: omap: Use devm_platform_get_and_ioremap_resource()
Re: stable-rc 6.1: x86: clang build failed - block/blk-cgroup.c:1237:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true
Re: [PATCH v3 2/2] regulator: max77857: Add ADI MAX77857/59/MAX77831 Regulator Support
Re: [akpm-mm:mm-unstable 209/215] mm/mmap.c:2430:29: error: assigning to 'lockdep_map_p' from incompatible type 'void *'
Reapply [IR] Mark and constant expressions as undesirable
"error: cannot jump from this indirect goto statement to one of its possible targets" in drivers/gpu/drm/tests/drm_exec_test.c
Re: [PATCH 1/6] drm: execution context for GEM buffers v7
Re: Fwd: UBSAN: index 1 is out of range for type 'xen_netif_rx_sring_entry [1]'
Build error around 'aghik' after commit 1256e70a082a ("s390/ftrace: enable HAVE_FUNCTION_GRAPH_RETVAL")
Re: [PATCH v3 3/3] mm: Batch-zap large anonymous folio PTE mappings
-Wframe-larger-than no longer shows information about spills/variables
Re: [EXTERNAL] fs/smb/client/sess.c:160:5: warning: stack frame size (1152) exceeds limit (1024) in 'cifs_try_adding_channels'
Re: [PATCH v3 1/2] asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch
"relocation R_LARCH_B26 out of range" when building LoongArch allyesconfig with KCOV
CONFIG_FORTIFY_SOURCE may not be working for strcpy() and strlcpy() on LoongArch with clang
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 default PGO kernel to 6.4.0 and update known good revision
patches: mainline: Drop '--target=' KBUILD_CPPFLAGS series
Add patch for RANDSTRUCT raid1-10.c error to -tip
wrapper: Handle 5.18 updates to LLVM variable
patches: mainline: Drop md/raid1-10 patch
patches: mainline: Add verisilicon -Wframe-larger-than fix
patches: next: Drop SCSI patch
boot-qemu.py: Fix downloading LoongArch firmware
Update SCSI -Warray-bounds patch application
docker: clang-android: Update to r498229 (17.0.3)
arch: add support for building LoongArch
Update arm64-fixes patches and update verisilicon patch
Drop verisilicon patch from -next
Drop SCSI -Warray-bounds patch from mainline and -tip
patches: stable: Remove "move '--target' to KBUILD_CPPFLAGS" series
patches: mainline: Drop verisilicon patch
Update LLVM tip of tree anchor to 18
patches: arm64: Update for 6.5-rc3 fast forward
runtime: docker: Add clang-17
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, an Intel-based desktop, 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 built, qualified, and uploaded LLVM 17.0.0-rc1 to kernel.org for wider testing.
Special thanks
Special thanks to Google and the Linux Foundation for sponsoring my work.