of: Define of_irq_find_parent dummy for !defined(CONFIG_OF_IRQ)
PATCH 1/1 of: Define of_irq_find_parent dummy for !defined(CONFIG_OF_IRQ)
This changes the dummy version of of_irq_find_parent to be defined when !defined(CONFIG_OF_IRQ) instead of when !defined(CONFIG_OF). Without this of_irq_find_parent is undefined on SPARC that defines CONFIG_OF but not CONFIG_OF_IRQ.
--- include/linux/of_irq.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
include/linux/of_irq.h +5 -3
@@ -83,11 +83,13 @@ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, {return 0 ; } +#endif /* !CONFIG_OF */ + +#endif /* __OF_IRQ_H */ +#if !defined(CONFIG_OF_IRQ )static inline void *of_irq_find_parent (struct device_node *child) {return NULL ; } -#endif /* !CONFIG_OF */ - -#endif /* __OF_IRQ_H */ +#endif /* !CONFIG_OF_IRQ */
Signature · 1 line
1.7.10.4
Quoted 4 lines · Andreas Larsson
This changes the dummy version of
of_irq_find_parentto be defined when !defined(CONFIG_OF_IRQ) instead of when !defined(CONFIG_OF). Without thisof_irq_find_parentis undefined on SPARC that definesCONFIG_OFbut notCONFIG_OF_IRQ.
Can you give me some clue about where the failure is. This function has been here a while, so what changed?
Rob
Quoted 34 lines
Signed-off-by Andreas Larsson <[email protected]>--- include/linux/of_irq.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)include/linux/of_irq.h +5
-4@@ -83,11 +83,13 @@ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, {return 0 ; } +#endif /* !CONFIG_OF */ + +#endif /* __OF_IRQ_H */ +#if !defined(CONFIG_OF_IRQ )static inline void *of_irq_find_parent (struct device_node *child) {return NULL ; } -#endif /* !CONFIG_OF */ - -#endif /* __OF_IRQ_H */ +#endif /* !CONFIG_OF_IRQ */ --1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · Rob Herring
Quoted 4 lines · Andreas Larsson
This changes the dummy version of
of_irq_find_parentto be defined when !defined(CONFIG_OF_IRQ) instead of when !defined(CONFIG_OF). Without thisof_irq_find_parentis undefined on SPARC that definesCONFIG_OFbut notCONFIG_OF_IRQ.Can you give me some clue about where the failure is. This function has been here a while, so what changed?
There is no failure as far as I know at the moment.
An earlier version of a submitted patch concerning gpiolib-of.c triggered compile failure on SPARC due to this situation (not an issue in the latest version of that patch)
It is more of a failure waiting to happen, so this can wait until v3.12.
Cheers,
Andreas Larsson
Quoted 36 lines
Rob
Quoted 34 lines
Signed-off-by Andreas Larsson <[email protected]>--- include/linux/of_irq.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)include/linux/of_irq.h +5
-4@@ -83,11 +83,13 @@ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, {return 0 ; } +#endif /* !CONFIG_OF */ + +#endif /* __OF_IRQ_H */ +#if !defined(CONFIG_OF_IRQ )static inline void *of_irq_find_parent (struct device_node *child) {return NULL ; } -#endif /* !CONFIG_OF */ - -#endif /* __OF_IRQ_H */ +#endif /* !CONFIG_OF_IRQ */ --1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html