Netdev List
 help / color / mirror / Atom feed
From: "Michael Büsch" <m@bues.ch>
To: Pramod Gurav <pramod.gurav.etc@gmail.com>
Cc: Pramod Gurav <pramod.gurav@smartplayin.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	netdev@vger.kernel.org
Subject: Re: [PATCH v2] ssb: Fix Sparse error in main
Date: Tue, 28 Oct 2014 18:40:30 +0100	[thread overview]
Message-ID: <20141028184030.3b185979@wiggum> (raw)
In-Reply-To: <CAMf-jSk4GH=8+Cpk4dCzUhbwoKxMOsJPPrURP5-ktAvqXfhsjw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1866 bytes --]

On Tue, 28 Oct 2014 22:03:02 +0530
Pramod Gurav <pramod.gurav.etc@gmail.com> wrote:

> Michael had suggested to do away with this function if not being used.
> Good to go?
> 
> Michale can you provide acked-by?

Yes, this looks good.
Acked-by: Michael Büsch <m@bues.ch>

> On Wed, Oct 1, 2014 at 10:58 PM, Pramod Gurav
> <pramod.gurav@smartplayin.com> wrote:
> > This change fixes below sparse error:
> > drivers/ssb/main.c:94:16: warning: symbol 'ssb_sdio_func_to_bus'
> > was not declared. Should it be static?
> >
> > Cc: Michael Buesch <m@bues.ch>
> > Cc: netdev@vger.kernel.org
> > Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
> > ---
> > Changes since v1:
> > Removed the function as it is not called anywhere in the kernel
> > as per suggestion from Michael Buesch.
> >
> >  drivers/ssb/main.c | 19 -------------------
> >  1 file changed, 19 deletions(-)
> >
> > diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
> > index 2fead38..1e180c4 100644
> > --- a/drivers/ssb/main.c
> > +++ b/drivers/ssb/main.c
> > @@ -90,25 +90,6 @@ found:
> >  }
> >  #endif /* CONFIG_SSB_PCMCIAHOST */
> >
> > -#ifdef CONFIG_SSB_SDIOHOST
> > -struct ssb_bus *ssb_sdio_func_to_bus(struct sdio_func *func)
> > -{
> > -       struct ssb_bus *bus;
> > -
> > -       ssb_buses_lock();
> > -       list_for_each_entry(bus, &buses, list) {
> > -               if (bus->bustype == SSB_BUSTYPE_SDIO &&
> > -                   bus->host_sdio == func)
> > -                       goto found;
> > -       }
> > -       bus = NULL;
> > -found:
> > -       ssb_buses_unlock();
> > -
> > -       return bus;
> > -}
> > -#endif /* CONFIG_SSB_SDIOHOST */
> > -
> >  int ssb_for_each_bus_call(unsigned long data,
> >                           int (*func)(struct ssb_bus *bus, unsigned long data))
> >  {

-- 
Michael

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2014-10-28 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 17:28 [PATCH v2] ssb: Fix Sparse error in main Pramod Gurav
2014-10-28 16:33 ` Pramod Gurav
2014-10-28 17:40   ` Michael Büsch [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=20141028184030.3b185979@wiggum \
    --to=m@bues.ch \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pramod.gurav.etc@gmail.com \
    --cc=pramod.gurav@smartplayin.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