Skip to content

Commit fe14262

Browse files
tobluxliuw
authored andcommitted
hyperv: Remove unused union and structs
The union vmpacket_largest_possible_header and several structs have not been used for a long time afaict - remove them. Reviewed-by: Michael Kelley <[email protected]> Signed-off-by: Thorsten Blum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
1 parent 461fbbd commit fe14262

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

include/linux/hyperv.h

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -371,19 +371,6 @@ struct vmtransfer_page_packet_header {
371371
struct vmtransfer_page_range ranges[];
372372
} __packed;
373373

374-
struct vmgpadl_packet_header {
375-
struct vmpacket_descriptor d;
376-
u32 gpadl;
377-
u32 reserved;
378-
} __packed;
379-
380-
struct vmadd_remove_transfer_page_set {
381-
struct vmpacket_descriptor d;
382-
u32 gpadl;
383-
u16 xfer_pageset_id;
384-
u16 reserved;
385-
} __packed;
386-
387374
/*
388375
* This structure defines a range in guest physical space that can be made to
389376
* look virtually contiguous.
@@ -394,30 +381,6 @@ struct gpa_range {
394381
u64 pfn_array[];
395382
};
396383

397-
/*
398-
* This is the format for an Establish Gpadl packet, which contains a handle by
399-
* which this GPADL will be known and a set of GPA ranges associated with it.
400-
* This can be converted to a MDL by the guest OS. If there are multiple GPA
401-
* ranges, then the resulting MDL will be "chained," representing multiple VA
402-
* ranges.
403-
*/
404-
struct vmestablish_gpadl {
405-
struct vmpacket_descriptor d;
406-
u32 gpadl;
407-
u32 range_cnt;
408-
struct gpa_range range[1];
409-
} __packed;
410-
411-
/*
412-
* This is the format for a Teardown Gpadl packet, which indicates that the
413-
* GPADL handle in the Establish Gpadl packet will never be referenced again.
414-
*/
415-
struct vmteardown_gpadl {
416-
struct vmpacket_descriptor d;
417-
u32 gpadl;
418-
u32 reserved; /* for alignment to a 8-byte boundary */
419-
} __packed;
420-
421384
/*
422385
* This is the format for a GPA-Direct packet, which contains a set of GPA
423386
* ranges, in addition to commands and/or data.
@@ -429,25 +392,6 @@ struct vmdata_gpa_direct {
429392
struct gpa_range range[1];
430393
} __packed;
431394

432-
/* This is the format for a Additional Data Packet. */
433-
struct vmadditional_data {
434-
struct vmpacket_descriptor d;
435-
u64 total_bytes;
436-
u32 offset;
437-
u32 byte_cnt;
438-
unsigned char data[1];
439-
} __packed;
440-
441-
union vmpacket_largest_possible_header {
442-
struct vmpacket_descriptor simple_hdr;
443-
struct vmtransfer_page_packet_header xfer_page_hdr;
444-
struct vmgpadl_packet_header gpadl_hdr;
445-
struct vmadd_remove_transfer_page_set add_rm_xfer_page_hdr;
446-
struct vmestablish_gpadl establish_gpadl_hdr;
447-
struct vmteardown_gpadl teardown_gpadl_hdr;
448-
struct vmdata_gpa_direct data_gpa_direct_hdr;
449-
};
450-
451395
#define VMPACKET_DATA_START_ADDRESS(__packet) \
452396
(void *)(((unsigned char *)__packet) + \
453397
((struct vmpacket_descriptor)__packet)->offset8 * 8)

0 commit comments

Comments
 (0)