diff mbox series

[v2,1/9] x86/svm: remove unused forward declaration of struct vcpu from svm.h

Message ID 20230222120023.3004624-2-burzalodowa@gmail.com (mailing list archive)
State New, archived
Headers show
Series x86/hvm: {svm,vmx}.{c,h} cleanup | expand

Commit Message

Xenia Ragiadakou Feb. 22, 2023, noon UTC
Remove forward declaration of struct vcpu, that is a leftover since
the removal of svm_update_guest_cr()'s declaration from svm.h.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Fixes: b158e72abe30 ("x86/hvm: CFI hardening for hvm_funcs")
---

Changes in v2:
  - leave the forward declaration of struct cpu_user_regs in place,
    suggested by Andrew
  - add a fixes tag based on Andrew's comment
  - update commit message

 xen/arch/x86/include/asm/hvm/svm/svm.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Jan Beulich Feb. 22, 2023, 12:59 p.m. UTC | #1
On 22.02.2023 13:00, Xenia Ragiadakou wrote:
> Remove forward declaration of struct vcpu, that is a leftover since
> the removal of svm_update_guest_cr()'s declaration from svm.h.
> 
> Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>

Acked-by: Jan Beulich <jbeulich@suse.com>

> Fixes: b158e72abe30 ("x86/hvm: CFI hardening for hvm_funcs")

I'm a little puzzled by this (a stray forward decl of a struct isn't
really a bug imo), but ...
> ---
> 
> Changes in v2:
>   - leave the forward declaration of struct cpu_user_regs in place,
>     suggested by Andrew
>   - add a fixes tag based on Andrew's comment

... I realize you were asked to add it. (As a minor remark, more
commonly the Fixes: tag would come ahead of the S-o-b: one, I think.)

Jan
Andrew Cooper Feb. 23, 2023, 10:50 a.m. UTC | #2
On 22/02/2023 12:59 pm, Jan Beulich wrote:
> On 22.02.2023 13:00, Xenia Ragiadakou wrote:
>> Remove forward declaration of struct vcpu, that is a leftover since
>> the removal of svm_update_guest_cr()'s declaration from svm.h.
>>
>> Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
> Acked-by: Jan Beulich <jbeulich@suse.com>
>
>> Fixes: b158e72abe30 ("x86/hvm: CFI hardening for hvm_funcs")
> I'm a little puzzled by this (a stray forward decl of a struct isn't
> really a bug imo), but ...
>> ---
>>
>> Changes in v2:
>>   - leave the forward declaration of struct cpu_user_regs in place,
>>     suggested by Andrew
>>   - add a fixes tag based on Andrew's comment
> ... I realize you were asked to add it. (As a minor remark, more
> commonly the Fixes: tag would come ahead of the S-o-b: one, I think.)

I didn't intend my reply to mean "put in a fixes tag".  I was just
trying to make an observation.  But it doesn't hurt either.

But I do agree that a Fixes tag ought to be ahead of a SoB tag.  Where
possible, we put tags in chronological order.

I can fix that on commit.

~Andrew
Xenia Ragiadakou Feb. 23, 2023, 11 a.m. UTC | #3
On 2/23/23 12:50, Andrew Cooper wrote:
> On 22/02/2023 12:59 pm, Jan Beulich wrote:
>> On 22.02.2023 13:00, Xenia Ragiadakou wrote:
>>> Remove forward declaration of struct vcpu, that is a leftover since
>>> the removal of svm_update_guest_cr()'s declaration from svm.h.
>>>
>>> Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
>> Acked-by: Jan Beulich <jbeulich@suse.com>
>>
>>> Fixes: b158e72abe30 ("x86/hvm: CFI hardening for hvm_funcs")
>> I'm a little puzzled by this (a stray forward decl of a struct isn't
>> really a bug imo), but ...
>>> ---
>>>
>>> Changes in v2:
>>>    - leave the forward declaration of struct cpu_user_regs in place,
>>>      suggested by Andrew
>>>    - add a fixes tag based on Andrew's comment
>> ... I realize you were asked to add it. (As a minor remark, more
>> commonly the Fixes: tag would come ahead of the S-o-b: one, I think.)
> 
> I didn't intend my reply to mean "put in a fixes tag".  I was just
> trying to make an observation.  But it doesn't hurt either.
> 
> But I do agree that a Fixes tag ought to be ahead of a SoB tag.  Where
> possible, we put tags in chronological order.
> 
> I can fix that on commit.

Thanks. I ve added it just for reference. It s ok to remove it.

> 
> ~Andrew
diff mbox series

Patch

diff --git a/xen/arch/x86/include/asm/hvm/svm/svm.h b/xen/arch/x86/include/asm/hvm/svm/svm.h
index 65e35a4f59..fa39d4d76a 100644
--- a/xen/arch/x86/include/asm/hvm/svm/svm.h
+++ b/xen/arch/x86/include/asm/hvm/svm/svm.h
@@ -46,7 +46,6 @@  static inline void svm_invlpga(unsigned long linear, uint32_t asid)
 }
 
 struct cpu_user_regs;
-struct vcpu;
 
 unsigned long *svm_msrbit(unsigned long *msr_bitmap, uint32_t msr);
 void __update_guest_eip(struct cpu_user_regs *regs, unsigned int inst_len);