Live Patching
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Petr Mladek <pmladek@suse.com>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>,
	Miroslav Benes <mbenes@suse.cz>,
	Joe Lawrence <joe.lawrence@redhat.com>,
	Song Liu <song@kernel.org>,
	Marcos Paulo de Souza <mpdesouza@suse.com>,
	Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
	Yafang Shao <laoar.shao@gmail.com>, Shuah Khan <shuah@kernel.org>,
	live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/4] selftests/livepatch: clean the test modules without a kernel build directory
Date: Mon, 23 Nov 2026 10:44:33 -0500	[thread overview]
Message-ID: <20261123154433.1188237-1-sashal@kernel.org> (raw)
In-Reply-To: <awQUD16CDFpCTxaQ@pathway.suse.cz>

On Mon, Nov 23, 2026 at 11:23:11AM +0100, Petr Mladek wrote:
> The two parameters "O=<kernel> KDIR=<kernel>" do not make much sense
> to me. The command starts compiling other selftests. I get:
>
> $> make -C tools/testing/selftests  O=<kernel> KDIR=<kernel> TARGETS=livepatch
> Makefile:4: *** Package alsa not found, please install alsa development package or add directory containing `alsa.pc` in PKG_CONFIG_PATH.  Stop.

Sorry, <kernel> was a placeholder for the kernel build directory. Pasted
as is, the shell takes "<kernel>" as redirections, so make gets an empty
O= and no TARGETS at all, and its output goes to a file named
"TARGETS=livepatch". If that's what happened, that file and an empty
"KDIR=" are now at the top of your tree.

> Are these parameters really used by the KernelCI?
> Could you please provide link to a build log?

Yes. This is from Saturday's x86_64 build of mainline:

  make --silent --keep-going --jobs=8 O=/tmp/kci/kernel_build \
       INSTALL_PATH=/tmp/kci/kernel_build/kselftest_install \
       KDIR=/tmp/kci/kernel_build ARCH=x86_64 SRCARCH=x86 \
       CROSS_COMPILE=x86_64-linux-gnu- -C tools/testing/selftests all

  https://files.kernelci.org/kbuild-gcc-14-x86-kselftest-6b01150f99c74e1a99a2a261/build.log.gz

> So, maybe just the sample command in the commit message is wrong.

Yes, it should have used a real path:

  make -C tools/testing/selftests O=/tmp/build KDIR=/tmp/build TARGETS=livepatch

Please keep O= and KDIR= in it, though. The paragraph is about modules
built for a kernel other than the running one, and that's how they get
built without this series.

--
Thanks,
Sasha

  reply	other threads:[~2026-11-23 15:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 16:10 [PATCH v4 0/4] selftests/livepatch: build and run the tests outside the running kernel Sasha Levin
2026-11-10 16:10 ` [PATCH v4 1/4] selftests/livepatch: skip the tests on kernels without livepatch Sasha Levin
2026-11-23 10:15   ` Petr Mladek
2026-11-10 16:10 ` [PATCH v4 2/4] selftests/livepatch: clean the test modules without a kernel build directory Sasha Levin
2026-11-10 16:35   ` sashiko-bot
2026-11-23 10:23   ` Petr Mladek
2026-11-23 15:44     ` Sasha Levin [this message]
2026-11-10 16:10 ` [PATCH v4 3/4] selftests/livepatch: build the test modules against the kernel in O= Sasha Levin
2026-11-10 16:53   ` sashiko-bot
2026-11-23 14:08     ` Petr Mladek
2026-11-23 14:09   ` Petr Mladek
2026-11-10 16:10 ` [PATCH v4 4/4] selftests/livepatch: run the tests with prebuilt test modules Sasha Levin
2026-11-23 14:10   ` Petr Mladek
2026-11-23 14:16 ` [PATCH v4 0/4] selftests/livepatch: build and run the tests outside the running kernel Petr Mladek

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=20261123154433.1188237-1-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=eva.kurchatova@virtuozzo.com \
    --cc=joe.lawrence@redhat.com \
    --cc=jpoimboe@kernel.org \
    --cc=laoar.shao@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=live-patching@vger.kernel.org \
    --cc=mbenes@suse.cz \
    --cc=mpdesouza@suse.com \
    --cc=pmladek@suse.com \
    --cc=shuah@kernel.org \
    --cc=song@kernel.org \
    /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