From: Finn Thain <fthain@telegraphics.com.au>
To: afzal mohammed <afzal.mohd.ma@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Greg Ungerer <gerg@linux-m68k.org>,
linux-m68k <linux-m68k@lists.linux-m68k.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq()
Date: Fri, 28 Feb 2020 09:38:20 +1100 (AEDT) [thread overview]
Message-ID: <alpine.LNX.2.22.394.2002280927130.8@nippy.intranet> (raw)
In-Reply-To: <20200227120618.GA6312@afzalpc>
On Thu, 27 Feb 2020, afzal mohammed wrote:
> On Thu, Feb 27, 2020 at 09:32:46AM +0100, Geert Uytterhoeven wrote:
> > On Thu, Feb 27, 2020 at 9:18 AM afzal mohammed <afzal.mohd.ma@gmail.com> wrote:
> > > Since most of the existing setup_irq() didn't even check & handle
> > > error return, my first thought was just s/setup_irq/request_irq, it
> > > was easier from scripting pointing of view. i felt uncomfortable
> > > doing nothing in case of error. Also noted that request_irq()
> > > definition has a "__much_check", so decided to add it.
> >
> > Most (all?) of the code calling setup_irq() is very old, and most of
> > the calls happen very early, so any such failures are hard failures
> > that prevent the system from booting at all. Hence printing a message
> > may be futile, as it may happen before the console has been
> > initialized (modulo early-printk).
>
> The main reason to at least acknowledge the return value was due to
> __much_check in request_irq() definition, though w/ the compiler that i
> used, there were no warnings, i feared that it might warn w/ some other
> compilers & in some cases (may be W=[1-3] ?).
>
This isn't new code, so I'd assume it's been "checked" in the sense of
"reviewed and tested".
So the lack of an error message could be taken to mean that there's no
need for an error message.
If you want to stop the compiler complaining about an unchecked return
value, assuming that it does so, please consider using
if (request_irq(...))
pr_debug(...);
That way there is no penalty paid for adding error messages that the
original author apparently did not want.
next prev parent reply other threads:[~2020-02-27 22:38 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-24 0:47 [PATCH v2 00/18] genirq: Remove setup_irq() afzal mohammed
2020-02-24 0:50 ` [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq() afzal mohammed
2020-02-26 0:42 ` Greg Ungerer
2020-02-26 1:11 ` Finn Thain
2020-02-26 2:11 ` Greg Ungerer
2020-02-26 6:39 ` Finn Thain
2020-02-26 12:26 ` Greg Ungerer
2020-02-26 22:31 ` Finn Thain
2020-02-27 6:37 ` Greg Ungerer
2020-02-27 22:19 ` Finn Thain
2020-02-27 8:18 ` afzal mohammed
2020-02-27 8:32 ` Geert Uytterhoeven
2020-02-27 12:06 ` afzal mohammed
2020-02-27 22:38 ` Finn Thain [this message]
2020-02-29 12:41 ` afzal mohammed
2020-02-28 7:05 ` Greg Ungerer
2020-02-29 12:47 ` afzal mohammed
2020-02-29 13:15 ` afzal mohammed
2020-02-29 23:11 ` Finn Thain
2020-03-01 1:05 ` afzal mohammed
2020-03-01 3:26 ` Finn Thain
2020-03-01 6:13 ` afzal mohammed
2020-03-02 6:26 ` Finn Thain
2020-03-04 1:24 ` afzal mohammed
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=alpine.LNX.2.22.394.2002280927130.8@nippy.intranet \
--to=fthain@telegraphics.com.au \
--cc=afzal.mohd.ma@gmail.com \
--cc=geert@linux-m68k.org \
--cc=gerg@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=tglx@linutronix.de \
/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