Skip to contentSkip to conversation

kvm: powerpc: book3s: Fix build break for BOOK3S_32

PATCH In review Aneesh Kumar K.V 3 participants 9 messages Oct 2, 2013 – Oct 4, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: powerpc: book3s: Fix build break for BOOK3S_32

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

---
 arch/powerpc/kvm/book3s_pr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/book3s_pr.c +1 -1
index 8941885..6075dbd 100644
@@ -1179,7 +1179,7 @@ struct kvm_vcpu *kvmppc_core_vcpu_create(struct kvm *kvm, unsigned int id)
 
 #ifdef CONFIG_KVM_BOOK3S_32
 	vcpu->arch.shadow_vcpu =
-		kzalloc(sizeof(*vcpu_book3s->shadow_vcpu), GFP_KERNEL);
+		kzalloc(sizeof(*vcpu->arch.shadow_vcpu), GFP_KERNEL);
 	if (!vcpu->arch.shadow_vcpu)
 		goto free_vcpu3s;
 #endif
Signature · 1 line
1.8.1.2
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 5 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Paul.

#2 lore raw
Quoted 12 lines · Paul Mackerras
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 7 lines
Quoted 5 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Would you guys mind if I merge this into the offending patch? It's not trickled into -next yet, so rebasing should work.

If not, please resend with the fixed commit message.

Alex

#3 lore raw
Quoted 19 lines · Alexander Graf
Quoted 16 lines · Paul Mackerras
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 4 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Would you guys mind if I merge this into the offending patch? It's not trickled into -next yet, so rebasing should work.

If not, please resend with the fixed commit message.

Eh - I must've missed v2 :). So that leaves only the question on whether you'd be ok to squash the patch instead. It'd help bisectability.

Alex

#4 lore raw
Quoted 24 lines · Alexander Graf
Quoted 21 lines · Alexander Graf
Quoted 18 lines · Paul Mackerras
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 5 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Would you guys mind if I merge this into the offending patch? It's not trickled into -next yet, so rebasing should work.

If not, please resend with the fixed commit message.

Eh - I must've missed v2 :). So that leaves only the question on whether you'd be ok to squash the patch instead. It'd help bisectability.

I'm OK with that. If you do, why don't you squash the first of the two patches that I just sent into the commit it fixes as well?

Paul.

#5 lore raw
Quoted 27 lines · Paul Mackerras
Quoted 26 lines · Alexander Graf
Quoted 23 lines · Alexander Graf
Quoted 19 lines · Paul Mackerras
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 5 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Would you guys mind if I merge this into the offending patch? It's not trickled into -next yet, so rebasing should work.

If not, please resend with the fixed commit message.

Eh - I must've missed v2 :). So that leaves only the question on whether you'd be ok to squash the patch instead. It'd help bisectability.

I'm OK with that. If you do, why don't you squash the first of the two patches that I just sent into the commit it fixes as well?

Because patch 1/2 spans two separate commits it would have to get squashed into (6aa82e, 70afec) and patch 2/2 doesn't make sense to get squashed anywhere :).

Alex

#8 lore raw
In reply to Alexander Graf
Quoted 23 lines · Alexander Graf
Quoted 21 lines · Alexander Graf
Quoted 18 lines · Paul Mackerras
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 5 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Would you guys mind if I merge this into the offending patch? It's not trickled into -next yet, so rebasing should work.

If not, please resend with the fixed commit message.

Eh - I must've missed v2 :). So that leaves only the question on whether you'd be ok to squash the patch instead. It'd help bisectability.

Yes, it should be squashed if we can do that.

-aneesh

#6 lore raw
In reply to Alexander Graf
Quoted 32 lines · Alexander Graf
Quoted 29 lines · Paul Mackerras
Quoted 28 lines · Alexander Graf
Quoted 25 lines · Alexander Graf
Quoted 12 lines · Paul Mackerras
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 7 lines
Quoted 5 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Would you guys mind if I merge this into the offending patch? It's not trickled into -next yet, so rebasing should work.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

If not, please resend with the fixed commit message.

Eh - I must've missed v2 :). So that leaves only the question on whether you'd be ok to squash the patch instead. It'd help bisectability.

I'm OK with that. If you do, why don't you squash the first of the two patches that I just sent into the commit it fixes as well?

Because patch 1/2 spans two separate commits it would have to get squashed into (6aa82e, 70afec) and patch 2/2 doesn't make sense to get squashed anywhere :).

Actually 70afec is fine, if you look at it, it's only 6aa82e that needs fixing.

Paul.

#7 lore raw
Quoted 37 lines · Paul Mackerras
Quoted 36 lines · Alexander Graf
Quoted 33 lines · Paul Mackerras
Quoted 31 lines · Alexander Graf
Quoted 19 lines · Alexander Graf
Quoted 16 lines · Paul Mackerras
Quoted 3 lines · Aneesh Kumar K.V

From: "Aneesh Kumar K.V" <[email protected]>

This was introduced by 85a0d845d8bb5df5d2669416212f56cbe1474c6b

It's a good idea to give the headline of the commit as well as the ID. I also like to trim the ID to 10 characters or so. So it should look like this:

This was introduced by 85a0d845d8 ("KVM: PPC: Book3S PR: Allocate kvm_vcpu structs from kvm_vcpu_cache").

Quoted 4 lines

arch/powerpc/kvm/book3s_pr.c: In function 'kvmppc_core_vcpu_create':
arch/powerpc/kvm/book3s_pr.c:1182:30: error: 'struct kvmppc_vcpu_book3s' has no member named 'shadow_vcpu' make[1]: *** [arch/powerpc/kvm/book3s_pr.o] Error 1

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Would you guys mind if I merge this into the offending patch? It's not trickled into -next yet, so rebasing should work.

If not, please resend with the fixed commit message.

Eh - I must've missed v2 :). So that leaves only the question on whether you'd be ok to squash the patch instead. It'd help bisectability.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I'm OK with that. If you do, why don't you squash the first of the two patches that I just sent into the commit it fixes as well?

Because patch 1/2 spans two separate commits it would have to get squashed into (6aa82e, 70afec) and patch 2/2 doesn't make sense to get squashed anywhere :).

Actually 70afec is fine, if you look at it, it's only 6aa82e that needs fixing.

True. Squashed them :).

Alex