From: Wei Liu <wei.liu@kernel.org>
To: "Michael Kelley (LINUX)" <mikelley@microsoft.com>
Cc: Zhou jie <zhoujie@nfschina.com>,
KY Srinivasan <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Stephen Hemminger <sthemmin@microsoft.com>,
"wei.liu@kernel.org" <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>
Subject: Re: [PATCH] hv/hv_kvp_daemon: remove unnecessary (void*) conversions
Date: Mon, 5 Sep 2022 16:56:33 +0000 [thread overview]
Message-ID: <20220905165633.ciwh7toc3ynd3n5i@liuwe-devbox-debian-v2> (raw)
In-Reply-To: <SN6PR2101MB16931A789DA8673E9607F761D7729@SN6PR2101MB1693.namprd21.prod.outlook.com>
On Thu, Aug 25, 2022 at 05:14:55PM +0000, Michael Kelley (LINUX) wrote:
> From: Zhou jie <zhoujie@nfschina.com> Sent: Monday, August 22, 2022 8:46 PM
> >
> > remove unnecessary void* type casting.
> >
> > Signed-off-by: Zhou jie <zhoujie@nfschina.com>
> > ---
> > tools/hv/hv_kvp_daemon.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
> > index 1e6fd6ca513b..445abb53bf0d 100644
> > --- a/tools/hv/hv_kvp_daemon.c
> > +++ b/tools/hv/hv_kvp_daemon.c
> > @@ -772,11 +772,11 @@ static int kvp_process_ip_address(void *addrp,
> > const char *str;
> >
> > if (family == AF_INET) {
> > - addr = (struct sockaddr_in *)addrp;
> > + addr = addrp;
> > str = inet_ntop(family, &addr->sin_addr, tmp, 50);
> > addr_length = INET_ADDRSTRLEN;
> > } else {
> > - addr6 = (struct sockaddr_in6 *)addrp;
> > + addr6 = addrp;
> > str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50);
> > addr_length = INET6_ADDRSTRLEN;
> > }
> > --
> > 2.18.2
>
> The patch subject prefix for changes to this module is usually "tools: hv:"
> or "tools: hv: kvp:" and this patch should be consistent. Check the commit
> log for tools/hv/hv_kvp_daemon.c for historical examples.
>
> Modulo this tweak,
>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com>
I fixed the prefix and pushed this to hyperv-fixes.
Thanks,
Wei.
prev parent reply other threads:[~2022-09-05 16:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 3:45 [PATCH] hv/hv_kvp_daemon: remove unnecessary (void*) conversions Zhou jie
2022-08-25 17:14 ` Michael Kelley (LINUX)
2022-09-05 16:56 ` Wei Liu [this message]
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=20220905165633.ciwh7toc3ynd3n5i@liuwe-devbox-debian-v2 \
--to=wei.liu@kernel.org \
--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=mikelley@microsoft.com \
--cc=sthemmin@microsoft.com \
--cc=zhoujie@nfschina.com \
/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