From: Michael Kelley <mikelley@microsoft.com>
To: Sonia Sharma <sosha@linux.microsoft.com>,
KY Srinivasan <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Stephen Hemminger <sthemmin@microsoft.com>,
Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
"linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Sonia Sharma <Sonia.Sharma@microsoft.com>
Subject: RE: [PATCH] hv: Remove unused inline functions in hyperv.h
Date: Thu, 22 Jul 2021 05:35:31 +0000 [thread overview]
Message-ID: <MWHPR21MB1593804BE63C6813D66F6BC5D7E49@MWHPR21MB1593.namprd21.prod.outlook.com> (raw)
In-Reply-To: <1626903663-23615-1-git-send-email-sosha@linux.microsoft.com>
From: Sonia Sharma <sosha@linux.microsoft.com> Sent: Wednesday, July 21, 2021 2:41 PM
>
> There are some unused inline functions in hyperv header file.
> Remove those unused functions.
>
> Signed-off-by: Sonia Sharma <sonia.sharma@microsoft.com>
> ---
> include/linux/hyperv.h | 16 ----------------
> 1 file changed, 16 deletions(-)
>
> diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
> index 2e859d2..ddc8713 100644
> --- a/include/linux/hyperv.h
> +++ b/include/linux/hyperv.h
> @@ -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);
> --
> 1.8.3.1
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
next prev parent reply other threads:[~2021-07-22 5:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 21:41 [PATCH] hv: Remove unused inline functions in hyperv.h Sonia Sharma
2021-07-22 5:35 ` Michael Kelley [this message]
2021-07-22 10:16 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MWHPR21MB1593804BE63C6813D66F6BC5D7E49@MWHPR21MB1593.namprd21.prod.outlook.com \
--to=mikelley@microsoft.com \
--cc=Sonia.Sharma@microsoft.com \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sosha@linux.microsoft.com \
--cc=sthemmin@microsoft.com \
--cc=wei.liu@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).