[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87zgh9tuna.wl-tiwai@suse.de>
Date: Sat, 16 Jul 2022 08:54:17 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>
Subject: Re: [PATCH v1 1/1] ALSA: isa: Use INVALID_HWIRQ definition
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@...ux.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
Powered by blists - more mailing lists