Skip to contentSkip to conversation

hv: Remove unused inline functions in hyperv.h

PATCH Applied Sonia Sharma 3 participants 3 messages Jul 21, 2021 – Jul 22, 2021

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

PATCH 1/1 hv: Remove unused inline functions in hyperv.h

From: Sonia Sharma <[email protected]>

There are some unused inline functions in hyperv header file. Remove those unused functions.

---
 include/linux/hyperv.h | 16 ----------------
 1 file changed, 16 deletions(-)
include/linux/hyperv.h +0 -16
index 2e859d2..ddc8713 100644
@@ -538,12 +538,6 @@ struct vmbus_channel_rescind_offer {
 	u32 child_relid;
 } __packed;
 
-static inline u32
-hv_ringbuffer_pending_size(const struct hv_ring_buffer_info *rbi)
-{
-	return rbi->ring_buffer->pending_send_sz;
-}
-
 /*
  * Request Offer -- no parameters, SynIC message contains the partition ID
  * Set Snoop -- no parameters, SynIC message contains the partition ID
@@ -1092,16 +1086,6 @@ static inline void set_channel_pending_send_size(struct vmbus_channel *c,
 	c->outbound.ring_buffer->pending_send_sz = size;
 }
 
-static inline void set_low_latency_mode(struct vmbus_channel *c)
-{
-	c->low_latency = true;
-}
-
-static inline void clear_low_latency_mode(struct vmbus_channel *c)
-{
-	c->low_latency = false;
-}
-
 void vmbus_onmessage(struct vmbus_channel_message_header *hdr);
 
 int vmbus_request_offers(void);
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw

From: Sonia Sharma <[email protected]> Sent: Wednesday, July 21, 2021 2:41 PM

Quoted 44 lines

There are some unused inline functions in hyperv header file. Remove those unused functions.

---
 include/linux/hyperv.h | 16 ----------------
 1 file changed, 16 deletions(-)
include/linux/hyperv.h +0 -17
index 2e859d2..ddc8713 100644
@@ -538,12 +538,6 @@ struct vmbus_channel_rescind_offer {
 	u32 child_relid;
 } __packed;
 
-static inline u32
-hv_ringbuffer_pending_size(const struct hv_ring_buffer_info *rbi)
-{
-	return rbi->ring_buffer->pending_send_sz;
-}
-
 /*
  * Request Offer -- no parameters, SynIC message contains the partition ID
  * Set Snoop -- no parameters, SynIC message contains the partition ID
@@ -1092,16 +1086,6 @@ static inline void set_channel_pending_send_size(struct vmbus_channel *c,
 	c->outbound.ring_buffer->pending_send_sz = size;
 }
 
-static inline void set_low_latency_mode(struct vmbus_channel *c)
-{
-	c->low_latency = true;
-}
-
-static inline void clear_low_latency_mode(struct vmbus_channel *c)
-{
-	c->low_latency = false;
-}
-
 void vmbus_onmessage(struct vmbus_channel_message_header *hdr);
 
 int vmbus_request_offers(void);
--
Quoted 1 line

1.8.3.1