[PATCH] vmbus: remove no longer used per_channel_state
Stephen Hemminger
stephen at networkplumber.org
Mon May 22 16:14:20 UTC 2017
The per_channel_state in vmbus_channel struct is no longer
used by any vmbus device and can be removed now.
Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com>
---
include/linux/hyperv.h | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index e09fc8290c2f..5dc4323e6f30 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -843,10 +843,6 @@ struct vmbus_channel {
*/
struct vmbus_channel *primary_channel;
/*
- * Support per-channel state for use by vmbus drivers.
- */
- void *per_channel_state;
- /*
* To support per-cpu lookup mapping of relid to channel,
* link up channels based on their CPU affinity.
*/
@@ -916,16 +912,6 @@ static inline void set_channel_read_mode(struct vmbus_channel *c,
c->callback_mode = mode;
}
-static inline void set_per_channel_state(struct vmbus_channel *c, void *s)
-{
- c->per_channel_state = s;
-}
-
-static inline void *get_per_channel_state(struct vmbus_channel *c)
-{
- return c->per_channel_state;
-}
-
static inline void set_channel_pending_send_size(struct vmbus_channel *c,
u32 size)
{
--
2.11.0
More information about the devel
mailing list