Thread (4 messages) 4 messages, 3 authors, 2023-06-09

Re: [RFC PATCH] asm-generic: Unify uapi bitsperlong.h

From: Xi Ruoyao <xry111@xry111.site>
Date: 2023-06-09 13:05:22
Also in: bpf, linux-alpha, linux-arch, linux-kselftest, linux-mips, linux-perf-users, linux-riscv, linux-s390, linuxppc-dev, lkml, llvm, loongarch, sparclinux

On Fri, 2023-06-09 at 14:50 +0800, Tiezhu Yang wrote:

/* snip */
quoted
quoted
quoted
In musl, the documentation states that at least gcc-3.4 or
clang-3.2 are required, which probably predate the
__SIZEOF_LONG__ macro.
Indeed, I've digged some history and __SIZEOF_LONG__ was added into GCC-
4.3 (in 2008).  And I didn't realize the bitsperlong.h in tools
directory is a copy from uapi.
quoted
quoted
quoted
On the other hand, musl was only
released in 2011, and building musl itself explicitly
does not require kernel uapi headers, so this may not
be too critical.
Only arm64, riscv and loongarch belong to the newer architectures
which are related with this change, I am not sure it is necessary
to "unify" uapi bitsperlong.h for them.
At least it will stop the engineers working on "the next architecture"
from adding an unneeded bitsperlong.h :).


-- 
Xi Ruoyao [off-list ref]
School of Aerospace Science and Technology, Xidian University

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help