From: Christopher Obbard <chris.obbard@oss.qualcomm.com>
To: Denis Benato <denis.benato@linux.dev>, linux-kbuild@vger.kernel.org
Cc: nathan@kernel.org, nsc@kernel.org,
thomas.weissschuh@linutronix.de, chewi@gentoo.org,
abelvesa@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kbuild: install-extmod-build: install kernel/kallsyms_internal.h
Date: Wed, 07 Oct 2026 06:45:07 +0100 [thread overview]
Message-ID: <f127139c87754b806d326186f90a07ddb3ff9c7a.camel@oss.qualcomm.com> (raw)
In-Reply-To: <20261005200123.146822-1-denis.benato@linux.dev>
Hi Denis,
On Mon, 2026-10-05 at 20:01 +0000, Denis Benato wrote:
> The tree staged by install-extmod-build contains no kernel/ files, but
> since commit 4fafd1165b33 ("kallsyms: increase marker density to 16:1
> to accelerate lookups") scripts/kallsyms.c includes
> ../kernel/kallsyms_internal.h.
>
> install-extmod-build rebuilds the host programs inside the staged tree
> whenever CC differs from HOSTCC (cross builds, or a ccache-wrapped CC).
> scripts/kallsyms is hostprogs-always-y, so that rebuild fails with:
>
> scripts/kallsyms.c:39:10: fatal error: '../kernel/kallsyms_internal.h' file not found
> 39 | #include "../kernel/kallsyms_internal.h"
> | ^~~~~~~
>
> Stage the header so the linux-headers-* and kernel-devel style packages
> can rebuild scripts/kallsyms.
>
> Fixes: 4fafd1165b33 ("kallsyms: increase marker density to 16:1 to accelerate lookups")
> Assisted-by: ZCode:glm-5.3
> Signed-off-by: Denis Benato <denis.benato@linux.dev>
I can confirm that this fixes the build failure introduced in "kallsyms:
increase marker density to 16:1 to accelerate lookups" when building
with CC != HOSTCC.
Whether we should expose kallsyms_internal.h as part of the external
module build is a separate question, but your patch as posted does
resolve the issue I was seeing.
Please keep me in CC.
Tested-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
Cheers!
Chris
> ---
> scripts/package/install-extmod-build | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/scripts/package/install-extmod-build b/scripts/package/install-extmod-build
> index f12e1ffe409eb..aad2cd59a37ba 100755
> --- a/scripts/package/install-extmod-build
> +++ b/scripts/package/install-extmod-build
> @@ -20,6 +20,8 @@ mkdir -p "${destdir}"
> (
> cd "${srctree}"
> echo Makefile
> + # scripts/kallsyms.c includes this header
> + echo kernel/kallsyms_internal.h
> find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*'
> find "arch/${SRCARCH}" -name generated -prune -o -name include -type d -print
> find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform
prev parent reply other threads:[~2026-10-07 5:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 20:01 Denis Benato
2026-10-06 8:11 ` Nathan Chancellor
2026-10-06 19:39 ` Denis Benato
2026-10-08 16:47 ` Nathan Chancellor
2026-10-08 22:42 ` jim.cromie
2026-10-07 5:45 ` Christopher Obbard [this message]
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=f127139c87754b806d326186f90a07ddb3ff9c7a.camel@oss.qualcomm.com \
--to=chris.obbard@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=chewi@gentoo.org \
--cc=denis.benato@linux.dev \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=nsc@kernel.org \
--cc=thomas.weissschuh@linutronix.de \
/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®