[PATCH 0/3] of/irq: fix guards and dummies for OF=y and OF_IRQ=n

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Historically OF was only selectable by arch code, which usually also used
IRQ_DOMAIN, thus making OF_IRQ and OF interchangeable for !SPARC.

Since OF is now a user selectable symbol, it is now easy to create a
situation where OF=y and OF_IRQ=n, by not enabling IRQ_DOMAIN on e.g.
x86.

This causes linking errors as for a few functions the prototype guard
was OF, which is too broad and does not catch all combinations. Recently
added of_msi_configure is even missing a dummy implementation.

The following three patches fix these issues by shuffling the prototypes
and dummy implementations around (adding one where necessary), and make
the guard for irq_of_parse_and_map more specific.

Based on devicetree/next.

Jonas Gorski (3):
  of/irq: add a dummy of_msi_configure if OF_IRQ=n
  of/irq: fix guards of of_irq_find_parent and of_msi_configure
  of/irq: fix guards for irq_of_parse_and_map prototype

 include/linux/of_irq.h | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

-- 
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux