alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>,
	alsa-devel@alsa-project.org,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	kernel-janitors@vger.kernel.org
Subject: Re: [asoc:for-3.7 95/95] sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT
Date: Wed, 5 Sep 2012 22:06:51 +0800	[thread overview]
Message-ID: <20120905140651.GA8947@localhost> (raw)
In-Reply-To: <alpine.DEB.2.02.1209051552190.2122@hadrien>

On Wed, Sep 05, 2012 at 03:55:13PM +0200, Julia Lawall wrote:
> On Wed, 5 Sep 2012, Fengguang Wu wrote:
> 
> > On Wed, Sep 05, 2012 at 03:33:26PM +0200, Julia Lawall wrote:
> > > On Wed, 5 Sep 2012, Mark Brown wrote:
> > >
> > > > On Wed, Sep 05, 2012 at 01:56:09PM +0800, Fengguang Wu wrote:
> > > > > On Wed, Sep 05, 2012 at 06:40:25AM +0100, Mark Brown wrote:
> > > > > > On Thu, Aug 30, 2012 at 08:16:52AM -0700, Fengguang Wu wrote:
> > > >
> > > > > > Julia generally does a pretty good job of formatting her mails, perhaps
> > > > > > there's some scripts she uses whcih would help?
> > > >
> > > > > Julia Lawall? Added CC to her.
> > > >
> > > > Yes.
> > >
> > > I'm missing some context...
> >
> > Julia, you've posted some pretty neat (coccinelle generated?) patches
> > to the list. So we wonder whether you have some scripts for formatting
> > patches based on the coccinelle output?
> 
> I do have a tool, but it doesn't exactly take the output produced by
> coccicheck.  I can look into how this could be done.
> 
> The input desired would be the text printed by Coccinelle and a patch
> generated by git?

I'm just adapting the coccinelle generated diff into a mechanically
formated patch.

Here is the discussed patch, generated by a simple script.
It mainly serves as a good start point for patch submission.

: [PATCH] wm0010: fix coccinelle warnings
: 
: sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT
: 
:  Make sure threaded IRQs without a primary handler are always request with
:  IRQF_ONESHOT
: 
: Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci
: 
: Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
: ---
: 
: Please take the patch only if it's a positive warning. Thanks!
: 
:  cocci-output-17570-fcfaec-wm0010.c |    2 +-
:  1 file changed, 1 insertion(+), 1 deletion(-)
: 
: --- a/sound/soc/codecs/wm0010.c
: +++ b/sound/soc/codecs/wm0010.c
: @@ -847,7 +847,7 @@ static int wm0010_probe(struct snd_soc_c
:                 trigger = IRQF_TRIGGER_FALLING;
:         trigger |= IRQF_ONESHOT;
: 
: -       ret = request_threaded_irq(irq, NULL, wm0010_irq, trigger,
: +       ret = request_threaded_irq(irq, NULL, wm0010_irq, trigger | IRQF_ONESHOT,
:                                    "wm0010", wm0010);
:         if (ret)
:                 dev_err(wm0010->dev, "Failed to request IRQ %d: %d\n",
: 

Thanks,
Fengguang

  reply	other threads:[~2012-09-05 14:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-30 15:16 [asoc:for-3.7 95/95] sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Fengguang Wu
2012-09-05  5:40 ` Mark Brown
2012-09-05  5:56   ` Fengguang Wu
2012-09-05 12:05     ` Mark Brown
2012-09-05 13:33       ` Julia Lawall
2012-09-05 13:48         ` Fengguang Wu
2012-09-05 13:55           ` Julia Lawall
2012-09-05 14:06             ` Fengguang Wu [this message]
2012-09-05 20:01               ` Julia Lawall
2012-09-05 22:20                 ` Mark Brown
2012-09-05 22:39                   ` Fengguang Wu

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=20120905140651.GA8947@localhost \
    --to=fengguang.wu@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=dp@opensource.wolfsonmicro.com \
    --cc=julia.lawall@lip6.fr \
    --cc=kernel-janitors@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 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).