diff mbox series

KVM: selftests: Fix build for memstress.[ch] rename

Message ID 20221206175916.250104-1-broonie@kernel.org (mailing list archive)
State New, archived
Headers show
Series KVM: selftests: Fix build for memstress.[ch] rename | expand

Commit Message

Mark Brown Dec. 6, 2022, 5:59 p.m. UTC
Today's -next fails to build the KVM selftests on at least arm64 due to
commit

 9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")

interacting poorly with commit

 a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")

which adds a new user of perf_test_util.h.  Do the rename in the new
user.

Fixes: 9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
Fixes: a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Ricardo Koller <ricarkol@google.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: David Matlack <dmatlack@google.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
---
 tools/testing/selftests/kvm/lib/userfaultfd_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Rothwell Dec. 6, 2022, 8:42 p.m. UTC | #1
Hi Mark,

On Tue,  6 Dec 2022 17:59:16 +0000 Mark Brown <broonie@kernel.org> wrote:
>
> Today's -next fails to build the KVM selftests on at least arm64 due to
> commit
> 
>  9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
> 
> interacting poorly with commit
> 
>  a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")
> 
> which adds a new user of perf_test_util.h.  Do the rename in the new
> user.
> 
> Fixes: 9fda6753c9dd ("KVM: selftests: Rename perf_test_util.[ch] to memstress.[ch]")
> Fixes: a93871d0ea9f ("KVM: selftests: Add a userfaultfd library")
> Signed-off-by: Mark Brown <broonie@kernel.org>
> Cc: Ricardo Koller <ricarkol@google.com>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: David Matlack <dmatlack@google.com>
> Cc: Sean Christopherson <seanjc@google.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  tools/testing/selftests/kvm/lib/userfaultfd_util.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/kvm/lib/userfaultfd_util.c b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
> index 3b44846fc277..92cef20902f1 100644
> --- a/tools/testing/selftests/kvm/lib/userfaultfd_util.c
> +++ b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
> @@ -20,7 +20,7 @@
>  
>  #include "kvm_util.h"
>  #include "test_util.h"
> -#include "perf_test_util.h"
> +#include "memstress.h"
>  #include "userfaultfd_util.h"
>  
>  #ifdef __NR_userfaultfd
> -- 
> 2.30.2
> 

Thanks for that.  I have added that as a merge fix patch to the kvm-arm
merge.  I assume this will be fixed up when that tree is merged into
the kvm tree.
Paolo Bonzini Dec. 7, 2022, 12:33 a.m. UTC | #2
On 12/6/22 21:42, Stephen Rothwell wrote:
> Thanks for that.  I have added that as a merge fix patch to the kvm-arm
> merge.  I assume this will be fixed up when that tree is merged into
> the kvm tree.

Yes, I'll push as soon as I get confirmation that my own resolution is 
correct.

Paolo
Sean Christopherson Dec. 7, 2022, 1:44 a.m. UTC | #3
+Oliver

On Wed, Dec 07, 2022, Paolo Bonzini wrote:
> On 12/6/22 21:42, Stephen Rothwell wrote:
> > Thanks for that.  I have added that as a merge fix patch to the kvm-arm
> > merge.  I assume this will be fixed up when that tree is merged into
> > the kvm tree.
> 
> Yes, I'll push as soon as I get confirmation that my own resolution is
> correct.

Holler if you need/want help on getting arm's page_fault_test.c functional, I
think Oliver is already poking at it.
Marc Zyngier Dec. 7, 2022, 7:54 a.m. UTC | #4
On Wed, 07 Dec 2022 00:33:12 +0000,
Paolo Bonzini <pbonzini@redhat.com> wrote:
> 
> On 12/6/22 21:42, Stephen Rothwell wrote:
> > Thanks for that.  I have added that as a merge fix patch to the kvm-arm
> > merge.  I assume this will be fixed up when that tree is merged into
> > the kvm tree.
> 
> Yes, I'll push as soon as I get confirmation that my own resolution is
> correct.

As I said in [1], things do build once you add [2] to the mix. I
haven't had time to test the tests, but that shouldn't hold the push
into -next.

	M.

[1] https://lore.kernel.org/all/86lenkl4d0.wl-maz@kernel.org
[2] https://lore.kernel.org/r/20221206181506.252537-1-broonie@kernel.org
diff mbox series

Patch

diff --git a/tools/testing/selftests/kvm/lib/userfaultfd_util.c b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
index 3b44846fc277..92cef20902f1 100644
--- a/tools/testing/selftests/kvm/lib/userfaultfd_util.c
+++ b/tools/testing/selftests/kvm/lib/userfaultfd_util.c
@@ -20,7 +20,7 @@ 
 
 #include "kvm_util.h"
 #include "test_util.h"
-#include "perf_test_util.h"
+#include "memstress.h"
 #include "userfaultfd_util.h"
 
 #ifdef __NR_userfaultfd