From 9088f38021d6f7f4c6852e63ea6988b87be81cc8 Mon Sep 17 00:00:00 2001 From: Jeff Bailey Date: Wed, 25 Feb 2026 09:09:38 +0000 Subject: [PATCH] [libc] Fix LIBC_INLINE build error in riscv/irelative.cpp (#183249) LIBC_INLINE is defined in attributes.h, which was not included. Since constexpr already implies inline, simply remove the LIBC_INLINE qualifier from the static helper, matching the x86_64 and aarch64 irelative implementations. --- libc/startup/linux/riscv/irelative.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/startup/linux/riscv/irelative.cpp b/libc/startup/linux/riscv/irelative.cpp index f27ce8dd3bfa..71a51828a26e 100644 --- a/libc/startup/linux/riscv/irelative.cpp +++ b/libc/startup/linux/riscv/irelative.cpp @@ -16,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL { // RISC-V may be 32-bit or 64-bit. ElfW(Rela) handles the struct type, // but we need the correct R_TYPE extraction macro. -static LIBC_INLINE constexpr unsigned get_r_type(uintptr_t info) { +static constexpr unsigned get_r_type(uintptr_t info) { #ifdef __LP64__ return ELF64_R_TYPE(info); #else