LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: gregkh <gregkh@linuxfoundation.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Phillip Potter <phil@philpotter.co.uk>,
Larry Finger <Larry.Finger@lwfinger.net>,
linux-staging@lists.linux.dev,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging: r8188eu: remove rtw_ioctl function
Date: Tue, 10 Aug 2021 12:22:56 +0200 [thread overview]
Message-ID: <YRJTgMI5CaG7VdGx@kroah.com> (raw)
In-Reply-To: <CAK8P3a2n6WfsQUKP7W4VytJ6K=CGcfOz-eSc=6FzvkANWkk87A@mail.gmail.com>
On Tue, Aug 10, 2021 at 10:08:31AM +0200, Arnd Bergmann wrote:
> On Tue, Aug 10, 2021 at 9:45 AM Phillip Potter <phil@philpotter.co.uk> wrote:
> > -int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
> > -{
> > - struct iwreq *wrq = (struct iwreq *)rq;
> > - int ret = 0;
> > -
> > - switch (cmd) {
> > - case RTL_IOCTL_WPA_SUPPLICANT:
> > - ret = wpa_supplicant_ioctl(dev, &wrq->u.data);
> > - break;
> > -#ifdef CONFIG_88EU_AP_MODE
> > - case RTL_IOCTL_HOSTAPD:
> > - ret = rtw_hostapd_ioctl(dev, &wrq->u.data);
> > - break;
> > -#endif /* CONFIG_88EU_AP_MODE */
> > - case SIOCDEVPRIVATE:
> > - ret = rtw_ioctl_wext_private(dev, &wrq->u);
> > - break;
>
>
> I think these functions are all defined 'static' in the same file, so
> removing the
> caller will cause a warning about an unused function. Better remove the
> called functions along with the caller.
I get no build warnings/errors with this patch applied, which is odd.
So I'll take this for now, but a follow-on patch to remove these unused
functions would be great to have.
thanks,
greg k-h
next prev parent reply other threads:[~2021-08-10 10:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 7:45 Phillip Potter
2021-08-10 8:06 ` Dan Carpenter
2021-08-10 22:36 ` Phillip Potter
2021-08-11 19:42 ` Martin Kaiser
2021-08-12 12:19 ` Michael Straube
2021-08-10 8:08 ` Arnd Bergmann
2021-08-10 10:22 ` gregkh [this message]
2021-08-10 22:24 ` Phillip Potter
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=YRJTgMI5CaG7VdGx@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Larry.Finger@lwfinger.net \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=phil@philpotter.co.uk \
--subject='Re: [PATCH] staging: r8188eu: remove rtw_ioctl function' \
/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
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).