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.
mISDN: Update parameter type of dsp_cmx_send()
(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…lib: test_scanf: Add explicit type cast to result initialization in test_number_prefix()
(v1
,v2
)ASoC: SOF: Intel: Initialize chip in hda_sdw_check_wakeen_irq()
(v1
)rtc: stm32: Use NOIRQ_SYSTEM_SLEEP_PM_OPS()
(v1
)wifi: rtw89: Fix clang -Wimplicit-fallthrough in rtw89_query_sar()
(v1
)x86/hyperv: Add missing 'inline' to hv_snp_boot_ap() stub
(v1
)ASoC: cs42l43: Initialize ret in default case in cs42l43_pll_ev()
(v1
)clk: qcom: Fix SM_GPUCC_8450 dependencies
(v1
)scsi: qla2xxx: Fix unused variable warning in qla2xxx_process_purls_pkt()
(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] LoongArch: Error out if clang version is less than 17.0.0
Re: [PATCH v2 1/2] kbuild: deb-pkg: use Debian compliant shebang for debian/rules
Re: [PATCH v2 2/2] kbuild: deb-pkg: split debian/rules
Re: [PATCH] scsi: ufs: Fix the build for gcc 9 and before
Re: [PATCH] word-at-a-time: use the same return type for has_zero regardless of endianness
Re: [PATCH] clk: ralink: mtmips: quiet unused variable warning
Apply virtconfig to defconfig arm64
Re: [PATCH] cpufreq: amd-pstate: fix global sysfs attribute type
Re: [PATCH] Makefile.extrawarn: enable -Wmissing-variable-declarations for W=1
Re: [PATCH] ASoC: codecs: aw88261: avoid uninitialized variable warning
Re: [PATCH v2] Makefile.extrawarn: enable -Wmissing-variable-declarations for W=1
Re: [PATCH] riscv: mm: fix 2 instances of -Wmissing-variable-declarations
Re: [PATCH 1/9] Kbuild: only pass -fno-inline-functions-called-once for gcc
Re: [PATCH 2/9] Kbuild: consolidate warning flags in scripts/Makefile.extrawarn
Re: [PATCH] x86/retpoline: Don't clobber RFLAGS during srso_safe_ret()
Re: [PATCH] asm-generic: partially revert "Unify uapi bitsperlong.h for arm64, riscv and loongarch"
Re: [PATCH 0/5] riscv: SCS support
Re: [PATCH] backlight: lp855x: Drop ret variable in brightness change function
Re: [PATCH v2 05/11] x86/cpu: Clean up SRSO return thunk mess
Re: [PATCH v2 0/6] riscv: SCS support
Re: [PATCH] tty: gdm724x: use min_t() for size_t varable and a constant
Re: [PATCH] Revert "powerpc/xmon: Relax frame size for clang"
Re: [PATCH] Compiler Attributes: counted_by: Adjust name and identifier expansion
Re: [PATCH] kbuild: get lib-y objects back to static library
Re: [PATCH] Documentation/llvm: refresh docs
Re: [PATCH] Revert "Revert "powerpc/xmon: Relax frame size for 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.
CONFIG_FORTIFY_SOURCE may not be working for strcpy() and strlcpy() on LoongArch with clang
Re: [stable:linux-4.19.y 5172/9999] lib/string.c:312:7: error: redefinition of 'stpcpy'
Re: [PATCH v6 21/38] powerpc: Implement the new page table range API
Re: [stable:linux-4.14.y 4459/9999] lib/mpi/mpih-div.c:142:20: error: invalid use of a cast in a inline asm context requiring an lvalue: remove the cast or build with -fheinous-gnu-extensions
Re: stable-rc 5.15: clang-17: davinci_all_defconfig failed - arch/arm/include/asm/tlbflush.h:420:85: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand]
Re: [linux-next:master 8173/8441] warning: unsafe strcpy() usage lacked '__write_overflow' warning in lib/test_fortify/write_overflow-strcpy.c
ld.lld fails with "at least one side of the expression must be absolute" after SRSO mitigation
SRSO mitigations cause unable to move location counter backward for: .text for LTO
"missing return thunk" warning when booting on Intel machine
Hang when booting guest kernels compiled with clang after SRSO mitigations
Re: [aegl:resctrl2_v65rc4 2/2] fs/resctrl2/arch/x86/l3_pseudolock.c:569:1: error: expected ';' after top level declarator
Re: [PATCH 6.1 000/127] 6.1.45-rc1 review
Re: Cannot find symbol for section 69: .text.arch_max_swapfile_size.
Re: [PATCH] serial: mxs-uart: fix Wvoid-pointer-to-enum-cast warning
issue with split debug info on riscv for clang-14 and older
Cherry-pick fixes for clang/test/Driver/x86-no-gather-no-scatter.cpp
Several new instances of -Wfortify-source after LLVM commit 0c9c9dd9a24f9
Apply 9451c79bc39e610882bdd12370f01af5004a3c4f to linux-5.4.y
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 llvm_latest to 17 and add llvm_16
tc_build: llvm: Switch to Path.glob()
patches: Add fix for new -Wconstant-conversion in clang-18
Drop Fedora's armv7hl configuration
boot-qemu.py: Workaround PLW1509 warning from Ruff
utils.py: Do not query GitHub's API at all with '--gh-json-file'
tc_build: utils: Fix new Ruff warning (PIE808)
Stop enabling CONFIG_PPC_DISABLE_WERROR=y for clang-14+
Update stable anchor to 6.5
Add support for LoongArch
qemu: Install qemu-system-loongarch64
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.
Special thanks
Special thanks to Google and the Linux Foundation for sponsoring my work.