[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160126040525.GA15074@roeck-us.net>
Date: Mon, 25 Jan 2016 20:05:25 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Bjorn Helgaas <helgaas@...nel.org>
Cc: Chen Fan <chen.fan.fnst@...fujitsu.com>,
linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
rjw@...ysocki.net, lenb@...nel.org, izumi.taku@...fujitsu.com,
wency@...fujitsu.com, caoj.fnst@...fujitsu.com,
ddaney.cavm@...il.com, okaya@...eaurora.org, bhelgaas@...gle.com,
jiang.liu@...ux.int
Subject: Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS
On Mon, Jan 25, 2016 at 02:58:04PM -0600, Bjorn Helgaas wrote:
> [+cc Thomas]
>
[ ... ]
>
> I don't like the x86 ifdef. I'd prefer:
>
> static inline bool irq_valid(unsigned int irq)
> {
> if (irq < NR_IRQS)
> return true;
> return false;
> }
>
Or:
static inline bool irq_valid(unsigned int irq)
{
return irq < NR_IRQS;
}
Guenter
Powered by blists - more mailing lists