Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317517

Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS

From Guenter Roeck <linux@roeck-us.net>
Newsgroups linux.kernel
Subject Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS
Date 2016-01-26 05:10 +0100
Message-ID <qV374-64e-11@gated-at.bofh.it> (permalink)
References <qUJrI-o2-11@gated-at.bofh.it> <qUWoV-167-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Chen Fan <chen.fan.fnst@cn.fujitsu.com> - 2016-01-25 08:10 +0100
  Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Bjorn Helgaas <helgaas@kernel.org> - 2016-01-25 22:00 +0100
    Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Chen Fan <chen.fan.fnst@cn.fujitsu.com> - 2016-01-26 02:50 +0100
    Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Guenter Roeck <linux@roeck-us.net> - 2016-01-26 05:10 +0100
    Re: [PATCH v2] pci: fix unavailable irq number 255 reported by  BIOS Thomas Gleixner <tglx@linutronix.de> - 2016-01-26 09:30 +0100
      Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Chen Fan <chen.fan.fnst@cn.fujitsu.com> - 2016-01-26 11:00 +0100
        Re: [PATCH v2] pci: fix unavailable irq number 255 reported by  BIOS Thomas Gleixner <tglx@linutronix.de> - 2016-01-26 11:00 +0100
      Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Bjorn Helgaas <helgaas@kernel.org> - 2016-01-26 16:30 +0100
        Re: [PATCH v2] pci: fix unavailable irq number 255 reported by  BIOS Thomas Gleixner <tglx@linutronix.de> - 2016-01-26 16:50 +0100
          Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Bjorn Helgaas <helgaas@kernel.org> - 2016-01-27 01:30 +0100
            Re: [PATCH v2] pci: fix unavailable irq number 255 reported by BIOS Cao jin <caoj.fnst@cn.fujitsu.com> - 2016-01-27 06:30 +0100
              Re: [PATCH v2] pci: fix unavailable irq number 255 reported by  BIOS Thomas Gleixner <tglx@linutronix.de> - 2016-01-27 09:40 +0100
            Re: [PATCH v2] pci: fix unavailable irq number 255 reported by  BIOS Thomas Gleixner <tglx@linutronix.de> - 2016-01-27 10:20 +0100

csiph-web