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
-
Miscellaneous fixes and improvements: These are fixes and improvements that don’t fit into a particular category but are important to ClangBuiltLinux.
-
GCC 15 fixes: While it may seem like these are not important for a Clang project, the problem resolved by the changes could impact Clang should the developers decide to change the default C standard dialect to C23 like GCC did.
-
-
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…spi: amd: Fix -Wuninitialized in amd_spi_exec_mem_op()
(v1
)x86/asm: Always inline serialize()
(v1
)tracing: Fix -Wundef around 'struct event_mod_load'
(v1
)f2fs: Fix format specifier in sanity_check_inode()
(v1
)apparmor: Fix checking address of an array in accum_label_info()
(v1
)apparmor: Remove unused variable 'sock' in __file_sock_perm()
(v1
)ALSA: hda: tas2781-spi: Fix -Wsometimes-uninitialized in tasdevice_spi_switch_book()
(v1
)arm64: Handle .ARM.attributes section in linker scripts
(v1
)drm/amd/display: Respect user's CONFIG_FRAME_WARN more for dml files
(v1
)scripts/Makefile.extrawarn: Do not show clang's non-kprintf warnings at W=1
(v1
)
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] x86/sev: Disable UBSAN on SEV code that may execute very early
Re: [PATCH] kbuild: pacman-pkg: provide versioned linux-api-headers package
Re: [PATCH v3 1/2] objtool: Add --Werror
Re: [PATCH] drm/amd/display: mark static functions noinline_for_stack
Re: [PATCH v1] selftests: Handle old glibc without execveat(2)
Re: [PATCH] include/linux: Adjust headers for C23
Re: [PATCH] kbuild: Use -fzero-init-padding-bits=all
Re: [PATCH v3 0/2] objtool: Add option to fail build on vmlinux warnings
Re: [PATCH] kbuild: Use --strip-unneeded with INSTALL_MOD_STRIP
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: "Bad or missing .orc_unwind table. Disabling unwinder." Clang 19 problem? 6.12.8 problem?
Re: [PATCH v23 7/8] samples/check-exec: Add an enlighten "inc" interpreter and 28 tests
Re: [sysctl:sysctl-testing 8/16] mm/nommu.c:394:12: error: static declaration of 'sysctl_nr_trim_pages' follows non-static declaration
[clang] Clang fails to recognize an integral constant expression accepted by GCC
Re: [PATCH v6 0/4] Add Microchip IPC mailbox
Re: [linux-next:master 9185/10024] drivers/pmdomain/mediatek/airoha-cpu-pmdomain.c:59:2: error: write to reserved register 'R7'
Re: [morimoto:sound-cleanup-2025-01-16-2 7/23] sound/soc/generic/audio-graph-card2.c:1013:4: error: cannot jump from this goto statement to its label
Re: [PATCH v3] acpi: Fix HED module initialization order when it is built-in
[Clang][counted_by] Refactor __builtin_dynamic_object_size on FAMs
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.
Add a step to check if patches apply before invoking TuxSuite
generator: Run 'apt-get update' before 'apt-get install'
Update stable anchor to 6.13 and add 6.12
scripts/check-patches-apply.py: Fix strip value for refs with a slash
Disable ARM configs with BPF enabled in -next with clang-13
patches: Remove stable (January 22, 2025)
Apply .ARM.attributes patch to fix orphan section errors
Update DEFAULT_KERNEL_FOR_PGO to 6.13.0 and bump known good revision
ci.sh: Update to release/20.x
Update LLVM_TOT_VERSION and corresponding clang-nightly files
tc_build: llvm: Move compiler-rt to LLVM_ENABLE_RUNTIMES
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.