Re: [RFC PATCH] asm-generic: Unify uapi bitsperlong.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>
- Subject: Re: [RFC PATCH] asm-generic: Unify uapi bitsperlong.h
- From: Xi Ruoyao <xry111@xxxxxxxxxxx>
- Date: Fri, 09 Jun 2023 21:05:07 +0800
- Cc: Linux-Arch <linux-arch@xxxxxxxxxxxxxxx>, linux-s390@xxxxxxxxxxxxxxx, llvm@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-kselftest@xxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-perf-users@xxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-riscv@xxxxxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, bpf@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, loongson-kernel@xxxxxxxxxxxxxxxxx
- In-reply-to: <ca4c4968-411d-4e2c-543e-ffb62413ddef@loongson.cn>
- References: <1683615903-10862-1-git-send-email-yangtiezhu@loongson.cn> <b9624545-2c80-49a1-ac3c-39264a591f7b@app.fastmail.com> <76d3be65-91df-7969-5303-38231a7df926@loongson.cn> <a3a4f48a-07d4-4ed9-bc53-5d383428bdd2@app.fastmail.com> <ca4c4968-411d-4e2c-543e-ffb62413ddef@loongson.cn>
- User-agent: Evolution 3.48.2
On Fri, 2023-06-09 at 14:50 +0800, Tiezhu Yang wrote:
/* snip */
> > > > 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.
> > > > 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 <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]