From: Fang Xieyan <fangxy@xiaopeng.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
"Thomas Weißschuh" <linux@weissschuh.net>
Subject: Re: [PATCH] asm-generic: bitsperlong: Remove the disabled BITS_PER_LONG check
Date: Mon, 23 Nov 2026 18:45:12 +0800 [thread overview]
Message-ID: <20261123104512.58227-1-fangxy@xiaopeng.com> (raw)
In-Reply-To: <423ac235-513e-4850-ba1c-5fe98eb2b294@app.fastmail.com>
On Mon, Nov 23, 2026, at 09:08, Arnd Bergmann wrote:
> I think the correct fix would be to stop the x86 vdso from including
> this header. The general rule is that any VDSO code should only
> include headers from include/vdso/, but not include/linux or
> include/asm.
Thanks, that makes sense.
The compat vDSO ABI difference is valid, but it should not require
the VDSO to include this kernel-internal header. I'll drop this
removal.
I re-enabled the check in a test build to see what actually breaks.
On x86-64 the vdso32 build passes, because fake_32bit_build.h
undefines CONFIG_64BIT to fake a 32-bit configuration. The failures
are the realmode build (32-bit code with the real 64-bit config),
and the arm64/parisc compat vDSO builds, which include this header
via <vdso/gettime.h> -> <linux/types.h> without faking the config.
I'll investigate the include chains and look into removing the
dependencies on include/linux and include/asm before revisiting the
check.
Thanks,
Fang Xieyan
next prev parent reply other threads:[~2026-11-23 10:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 14:04 Fang Xieyan
2026-11-23 8:08 ` Arnd Bergmann
2026-11-23 10:45 ` Fang Xieyan [this message]
2026-11-23 17:08 ` Fang Xieyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123104512.58227-1-fangxy@xiaopeng.com \
--to=fangxy@xiaopeng.com \
--cc=arnd@arndb.de \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®