From: Andrew Jones <ajones@ventanamicro.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH] selftests/kvm: Fix issues with $(SPLIT_TESTS)
Date: Wed, 22 Nov 2023 09:01:06 +0100 [thread overview]
Message-ID: <20231122-ef1578645fb74a7aa0fca822@orel> (raw)
In-Reply-To: <20231121165631.1170797-1-pbonzini@redhat.com>
On Tue, Nov 21, 2023 at 11:56:31AM -0500, Paolo Bonzini wrote:
> The introduction of $(SPLIT_TESTS) also introduced a warning when
> building selftests on architectures that include get-reg-lists:
>
> make: Entering directory '/root/kvm/tools/testing/selftests/kvm'
> Makefile:272: warning: overriding recipe for target '/root/kvm/tools/testing/selftests/kvm/get-reg-list'
> Makefile:267: warning: ignoring old recipe for target '/root/kvm/tools/testing/selftests/kvm/get-reg-list'
> make: Leaving directory '/root/kvm/tools/testing/selftests/kvm'
>
> In addition, the rule for $(SPLIT_TESTS_TARGETS) includes _all_
> the $(SPLIT_TESTS_OBJS), which only works because there is just one.
> So fix both by adjusting the rules:
>
> - remove $(SPLIT_TESTS_TARGETS) from the $(TEST_GEN_PROGS) rules,
> and rename it to $(SPLIT_TEST_GEN_PROGS)
>
> - fix $(SPLIT_TESTS_OBJS) so that it plays well with $(OUTPUT),
> rename it to $(SPLIT_TEST_GEN_OBJ), and list the object file
> explicitly in the $(SPLIT_TEST_GEN_PROGS) link rule
>
> Fixes: 17da79e009c3 ("KVM: arm64: selftests: Split get-reg-list test code", 2023-08-09)
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> tools/testing/selftests/kvm/Makefile | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
>
Thanks for these fixes, Paolo! And thanks for keeping my old @redhat.com
address alive!
I've tested this on riscv,
Tested-by: Andrew Jones <ajones@ventanamicro.com>
Thanks,
drew
prev parent reply other threads:[~2023-11-22 8:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 16:56 [PATCH] selftests/kvm: Fix issues with $(SPLIT_TESTS) Paolo Bonzini
2023-11-22 8:01 ` Andrew Jones [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=20231122-ef1578645fb74a7aa0fca822@orel \
--to=ajones@ventanamicro.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
/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