Skip to content

Commit

Permalink
KVM: PPC: E500: Compile fix in this_cpu_write
Browse files Browse the repository at this point in the history
Commit 69111ba ("powerpc: Replace __get_cpu_var uses") introduced
compile breakage to the e500 target by introducing invalid automatically
created C syntax.

Fix up the breakage and make the code compile again.

Signed-off-by: Alexander Graf <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
agraf authored and torvalds committed Dec 19, 2014
1 parent c297abf commit 91ed9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/e500.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static inline int local_sid_setup_one(struct id *entry)

sid = __this_cpu_inc_return(pcpu_last_used_sid);
if (sid < NUM_TIDS) {
__this_cpu_write(pcpu_sids)entry[sid], entry);
__this_cpu_write(pcpu_sids.entry[sid], entry);
entry->val = sid;
entry->pentry = this_cpu_ptr(&pcpu_sids.entry[sid]);
ret = sid;
Expand Down

0 comments on commit 91ed9e8

Please sign in to comment.