From: Leon Romanovsky <leon@kernel.org>
To: Tom Rix <trix@redhat.com>
Cc: Horatiu Vultur <horatiu.vultur@microchip.com>,
rajur@chelsio.com, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org,
ndesaulniers@google.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, llvm@lists.linux.dev
Subject: Re: [PATCH] net: cxgb3: remove unused fl_to_qset function
Date: Mon, 20 Mar 2023 15:37:02 +0200 [thread overview]
Message-ID: <20230320133702.GL36557@unreal> (raw)
In-Reply-To: <21aad6c8-8abe-79e0-eb47-d03e964419a2@redhat.com>
On Mon, Mar 20, 2023 at 05:29:51AM -0700, Tom Rix wrote:
>
> On 3/19/23 10:45 AM, Horatiu Vultur wrote:
> > The 03/19/2023 13:24, Tom Rix wrote:
> >
> > Hi Tom,
> >
> > > clang with W=1 reports
> > > drivers/net/ethernet/chelsio/cxgb3/sge.c:169:32: error: unused function
> > > 'fl_to_qset' [-Werror,-Wunused-function]
> > > static inline struct sge_qset *fl_to_qset(const struct sge_fl *q, int qidx)
> > > ^
> > > This function is not used, so remove it.
> > Don't forget to mention in the subject which tree is targeting this
> > patch.
>
> This and all my similar fixes/cleanup are against -next.
>
> What prefix would you like to see ?
net-next
Thanks
>
> Tom
>
> > Other than that looks OK.
> >
> > Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> >
> > > Signed-off-by: Tom Rix <trix@redhat.com>
> > > ---
> > > drivers/net/ethernet/chelsio/cxgb3/sge.c | 5 -----
> > > 1 file changed, 5 deletions(-)
> > >
> > > diff --git a/drivers/net/ethernet/chelsio/cxgb3/sge.c b/drivers/net/ethernet/chelsio/cxgb3/sge.c
> > > index 62dfbdd33365..efa7f401529e 100644
> > > --- a/drivers/net/ethernet/chelsio/cxgb3/sge.c
> > > +++ b/drivers/net/ethernet/chelsio/cxgb3/sge.c
> > > @@ -166,11 +166,6 @@ static u8 flit_desc_map[] = {
> > > #endif
> > > };
> > >
> > > -static inline struct sge_qset *fl_to_qset(const struct sge_fl *q, int qidx)
> > > -{
> > > - return container_of(q, struct sge_qset, fl[qidx]);
> > > -}
> > > -
> > > static inline struct sge_qset *rspq_to_qset(const struct sge_rspq *q)
> > > {
> > > return container_of(q, struct sge_qset, rspq);
> > > --
> > > 2.27.0
> > >
>
next prev parent reply other threads:[~2023-03-20 13:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-19 17:24 [PATCH] net: cxgb3: remove unused fl_to_qset function Tom Rix
2023-03-19 17:45 ` Horatiu Vultur
2023-03-20 12:29 ` Tom Rix
2023-03-20 13:37 ` Leon Romanovsky [this message]
2023-03-21 3:10 ` patchwork-bot+netdevbpf
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=20230320133702.GL36557@unreal \
--to=leon@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horatiu.vultur@microchip.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rajur@chelsio.com \
--cc=trix@redhat.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;
as well as URLs for NNTP newsgroup(s).