All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
To: Ley Foon Tan <lftan.linux@gmail.com>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	linux-kernel@vger.kernel.org,
	linux-pci <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] PCI: altera: Fix no return warning for altera_pcie_irq_teardown()
Date: Thu, 30 May 2019 15:54:31 +0100	[thread overview]
Message-ID: <20190530145411.GA13993@redmoon> (raw)
In-Reply-To: <CAFiDJ5_HCeY0hf8W-HiEMLFWgjYNspXuH9dBV1kKY-YEvMLAeA@mail.gmail.com>

On Fri, May 24, 2019 at 10:17:28AM +0800, Ley Foon Tan wrote:
> On Fri, May 24, 2019 at 10:15 AM Ley Foon Tan <ley.foon.tan@intel.com> wrote:
> >
> > Fix compilation warning caused by patch "PCI: altera: Allow building as module".
> >
> > drivers/pci/controller/pcie-altera.c: In function ‘altera_pcie_irq_teardown’:
> > drivers/pci/controller/pcie-altera.c:723:1: warning: no return statement in function returning non-void [-Wreturn-type]
> >  }
> >
> > Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> > ---
> >  drivers/pci/controller/pcie-altera.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c
> > index 6c86bc69ace8..27222071ace7 100644
> > --- a/drivers/pci/controller/pcie-altera.c
> > +++ b/drivers/pci/controller/pcie-altera.c
> > @@ -706,7 +706,7 @@ static int altera_pcie_init_irq_domain(struct altera_pcie *pcie)
> >         return 0;
> >  }
> >
> > -static int altera_pcie_irq_teardown(struct altera_pcie *pcie)
> > +static void altera_pcie_irq_teardown(struct altera_pcie *pcie)
> >  {
> >         irq_set_chained_handler_and_data(pcie->irq, NULL, NULL);
> >         irq_domain_remove(pcie->irq_domain);
> > --
> > 2.19.0
> >
> Hi
> 
> You can squash this patch to this https://lkml.org/lkml/2019/4/24/18
> "PCI: altera: Allow building as module" if want.

Done, thanks.

Lorenzo

      reply	other threads:[~2019-05-30 14:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-24  2:15 [PATCH] PCI: altera: Fix no return warning for altera_pcie_irq_teardown() Ley Foon Tan
2019-05-24  2:17 ` Ley Foon Tan
2019-05-30 14:54   ` Lorenzo Pieralisi [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=20190530145411.GA13993@redmoon \
    --to=lorenzo.pieralisi@arm.com \
    --cc=bhelgaas@google.com \
    --cc=ley.foon.tan@intel.com \
    --cc=lftan.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.