Re: [PATCH v6 4/5] vdso: Move BITS_PER_BYTE and BITS_PER_TYPE() to vdso/bits.h

From: Thomas Weißschuh

Date: Thu Oct 01 2026 - 01:45:13 EST


On Wed, Sep 30, 2026 at 11:44:59PM +0800, Zhan Xusheng wrote:
> lib/vdso/gettimeofday.c is built into the vDSO, where linux/bits.h is not
> available. The next patch wants BITS_PER_TYPE() there.
>
> Move BITS_PER_BYTE and BITS_PER_TYPE() from linux/bits.h to vdso/bits.h.
> linux/bits.h already includes vdso/bits.h, so its users are unaffected, and
> vdso/datapage.h already pulls vdso/bits.h into the vDSO translation units.
>
> tools/perf/check-headers.sh tracks both headers, so update the tools copies
> in lockstep to keep that check quiet.
>
> Suggested-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
> Signed-off-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>

Reviewed-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>

> ---
> include/linux/bits.h | 2 --
> include/vdso/bits.h | 2 ++
> tools/include/linux/bits.h | 2 --
> tools/include/vdso/bits.h | 2 ++
> 4 files changed, 4 insertions(+), 4 deletions(-)

(...)