public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Subject: Re: [PATCH v1 1/1] ALSA: isa: Use INVALID_HWIRQ definition
Date: Sat, 16 Jul 2022 08:54:17 +0200	[thread overview]
Message-ID: <87zgh9tuna.wl-tiwai@suse.de> (raw)
In-Reply-To: <20220715205737.83076-1-andriy.shevchenko@linux.intel.com>

On Fri, 15 Jul 2022 22:57:37 +0200,
Andy Shevchenko wrote:
> 
> Use specific definition for invalid IRQ. It makes the
> code uniform in respect to the constant used for that.
> No functional change intended.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  sound/isa/sscape.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/sound/isa/sscape.c b/sound/isa/sscape.c
> index 0bc0025f7c19..9adaf91045e9 100644
> --- a/sound/isa/sscape.c
> +++ b/sound/isa/sscape.c
> @@ -140,8 +140,7 @@ struct soundscape {
>  	unsigned char midi_vol;
>  };
>  
> -#define INVALID_IRQ  ((unsigned)-1)
> -
> +#define INVALID_IRQ  ((unsigned)INVALID_HWIRQ)
>  
>  static inline struct soundscape *get_card_soundscape(struct snd_card *c)
>  {

This seems failing to build on my local tree as is.
We need to include <linux/irq.h> explicitly.


thanks,

Takashi

  reply	other threads:[~2022-07-16  6:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-15 20:57 [PATCH v1 1/1] ALSA: isa: Use INVALID_HWIRQ definition Andy Shevchenko
2022-07-16  6:54 ` Takashi Iwai [this message]
2022-07-18 19:14   ` Andy Shevchenko

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=87zgh9tuna.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.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