mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
KVM: remove unused load_segment_descriptor_to_kvm_desct
Commit 78ce64a384 in v2.6.32.12 introduced a warning due to unused
load_segment_descriptor_to_kvm_desct helper, which has been opencoded by
this commit.
On upstream, the helper was removed as part of a different commit.
Remove the now unused function.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3b1aa6380f
commit
a2fe6ea222
|
|
@ -4155,18 +4155,6 @@ static u16 get_segment_selector(struct kvm_vcpu *vcpu, int seg)
|
|||
return kvm_seg.selector;
|
||||
}
|
||||
|
||||
static int load_segment_descriptor_to_kvm_desct(struct kvm_vcpu *vcpu,
|
||||
u16 selector,
|
||||
struct kvm_segment *kvm_seg)
|
||||
{
|
||||
struct desc_struct seg_desc;
|
||||
|
||||
if (load_guest_segment_descriptor(vcpu, selector, &seg_desc))
|
||||
return 1;
|
||||
seg_desct_to_kvm_desct(&seg_desc, selector, kvm_seg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int kvm_load_realmode_segment(struct kvm_vcpu *vcpu, u16 selector, int seg)
|
||||
{
|
||||
struct kvm_segment segvar = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user