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 :)
drm/amdgpu: Wrap -Wunused-but-set-variable in cc-option
(v1
)
-
Miscellaneous fixes and improvements: These are fixes and improvements that don’t fit into a particular category but are important to ClangBuiltLinux.
Re: [PATCH] kbuild: add $(CLANG_CFLAGS) to KBUILD_CPPFLAGS
kbuild: Add KBUILD_CPPFLAGS to as-option invocation
(v1
)percpu: Fix self-assignment of __old in raw_cpu_generic_try_cmpxchg()
(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…zswap: Avoid uninitialized use of ret in zswap_frontswap_store()
(v1
,v2
)MIPS: Mark core_vpe_count() as __init
(v1
)drm/amdgpu: Fix instances of -Wunused-const-variable with CONFIG_DEBUG_FS=n
(v1
)coresight: dummy: Update type of mode parameter in dummy_{sink,source}_enable()
(v1
)clk: ralink: mtmips: Fix uninitialized use of ret in mtmips_register_{fixed,factor}_clocks()
(v1
)leds: leds-mt6323: Adjust return/parameter types in wled get/set callbacks
(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] btrfs: remove unused variable pages_processed
Re: [PATCH] kbuild: add $(CLANG_CFLAGS) to KBUILD_CPPFLAGS
Re: [PATCH 1/2] bus: fsl-mc: fsl-mc-allocator: Initialize mc_bus_dev before use
Re: [PATCH 2/2] bus: fsl-mc: fsl-mc-allocator: Drop a write-only variable
Re: [PATCH -next v21 23/27] riscv: detect assembler support for .option arch
Re: [PATCH] drm/amd/amdgpu: enable W=1 for amdgpu
scripts/rust_is_available.sh improvements
Re: [PATCH] s390/decompresser: fix misaligned symbol build error
Re: [PATCH] MIPS: Loongson: Fix build error when make modules_install
Re: [PATCH 1/2] LoongArch: vDSO: Use CLANG_FLAGS instead of filtering out '--target='
Re: [PATCH 2/2] LoongArch: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation
Re: [PATCH net v1] ptp: Make max_phase_adjustment sysfs device attribute invisible when not supported
Re: [PATCH V2] MIPS: Loongson: Fix build error when make modules_install
Re: [PATCH 1/2] media: verisilicon: fix excessive stack usage
Re: [PATCH] media: wl128x: fix a clang warning
Re: [PATCH net-next v3 10/18] nvme/host: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage
Re: [PATCH 0/6] riscv: KCFI support
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 4/6] bus: fsl-mc: fsl-mc-allocator: Improve error reporting
lib/test_fortify/ tests causing lots of `unsafe X() usage lacked 'Y' warnings
RISC-V '.got' linker orphan warning after LLVM commit a178ba9fbd0a
6.4-rc4 kernel build fails with DEBUG_INFO_COMPRESSED_ZSTD=y (powerpc64, BE, clang 16.0.4)
android14-6.1 arm64 gki_defconfig boot failures
Re: powerpc: clang: arch/powerpc/kernel/exceptions-64s.S:2976: Error: junk at end of line: `0b01010'
Re: [PATCH 1/4] KVM: arm64: vgic: Fix a circular locking issue
arm and arm64 "kernel BUG at mm/vmalloc.c:1638!" after commit c5c0ba953b8c969 in -next
Re: [PATCH v6 02/19] hexagon: mm: Convert to GENERIC_IOREMAP
Re: clang: Powerpc: clang-nightly-maple_defconfig — FAIL
Failed assertion when building RISCV Linux kernel after d0189584631e5
clang-15 crash in UBSAN handler
Re: [PATCH v2 07/23] mips: update_mmu_cache() can replace __update_tlb()
Re: [song-md:md-next 25/29] drivers/md/raid1-10.c:117:25: error: casting from randomized structure pointer type 'struct block_device *' to 'struct md_rdev *'
-Wframe-larger-than in drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c
LLVM commit 4bdc7f7a331f82 breaks building alternatives for ARCH=arm64
Re: [PATCH v7 02/19] hexagon: mm: Convert to GENERIC_IOREMAP
Re: [PATCH v7 10/19] s390: mm: Convert to GENERIC_IOREMAP
LLVM commit a79995ca6004 breaks as-instr and as-option for ARCH=arm on older kernels
s390 misaligned symbol linker errors
Re: [PATCH v3 8/8] leds: leds-mt6323: Add support for WLEDs and MT6332
Re: [PATCH v2 0/4] riscv: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION
Re: [PATCH v4 05/11] NFS: add superblock sysfs entries
test building LoongArch
Re: [PATCH v3 5/9] ptp: Add .getmaxphase callback to ptp_clock_info
Re: [EXT] Re: [linux-next:master 5324/12162] drivers/cpufreq/cpufreq-dt-platdev.c:18:34: warning: unused variable 'allowlist'
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.
workflows: docker: Switch to GITHUB_OUTPUT
Update for moving rootfs images to GitHub releases in boot-utils
Update Arch Linux x86_64 configuration link
Drop android-mainline ext4 patch
check_logs.py: Remove unnecessary conversion to fix updated RUF010
boot-qemu.py: Handle dtb location shuffle in linux-next
Update RISC-V gki_defconfig build
patches: mainline: Add patch for RANDSTRUCT raid1-10.c error
Initial LoongArch support
patches: mainline: Add patch for drivers/scsi/aacraid
Update -next patches (June 28, 2023)
build-local.py improvements
Apply series to fix arm64 big endian on stable
Update stable to linux-6.4.y
Move powerpc64 to LLVM=1 on mainline/-next with LLVM 14.x+
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 and uploaded LLVM 16.0.5 to kernel.org.
Special thanks
Special thanks to Google and the Linux Foundation for sponsoring my work.