From: Thomas Huth Date: Fri, 12 May 2017 10:55:22 +0000 Subject: Re: [kvm-unit-tests PATCH v1 2/3] ppc64: use asm-generic spinlock Message-Id: <05c3a106-15c0-5e31-e1d4-5fcbbdea80c0@redhat.com> List-Id: References: <20170512102042.4956-1-david@redhat.com> <20170512102042.4956-3-david@redhat.com> In-Reply-To: <20170512102042.4956-3-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Hildenbrand , kvm@vger.kernel.org Cc: Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Laurent Vivier , kvm-ppc@vger.kernel.org On 12.05.2017 12:20, David Hildenbrand wrote: > Since the ppc64 implementation is currently only a defunc dummy > implementation, let's replace it by the generic one. > > Signed-off-by: David Hildenbrand > --- > lib/ppc64/asm/spinlock.h | 9 ++------- > lib/ppc64/spinlock.c | 18 ------------------ > powerpc/Makefile.ppc64 | 1 - > 3 files changed, 2 insertions(+), 26 deletions(-) > delete mode 100644 lib/ppc64/spinlock.c > > diff --git a/lib/ppc64/asm/spinlock.h b/lib/ppc64/asm/spinlock.h > index 002cdb1..da1d9d0 100644 > --- a/lib/ppc64/asm/spinlock.h > +++ b/lib/ppc64/asm/spinlock.h > @@ -1,11 +1,6 @@ > +#include In case you respin this series: I think it would be nicer to put the #include within the header guards below. > #ifndef _ASMPPC64_SPINLOCK_H_ > #define _ASMPPC64_SPINLOCK_H_ > > -struct spinlock { > - int v; > -}; > - > -extern void spin_lock(struct spinlock *lock); > -extern void spin_unlock(struct spinlock *lock); > - > #endif /* _ASMPPC64_SPINLOCK_H_ */ Acked-by: Thomas Huth