aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/interrupt.h
diff options
context:
space:
mode:
authorMonakhov Dmitriy <dmonakhov@openvz.org>2007-05-08 03:25:07 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:00 -0400
commit616883df78bd4b3fcdb6ddc39bd3d4cb902bfa32 (patch)
treec1ad0fa79ae7cc50593e7b435006520b07578970 /include/linux/interrupt.h
parentc761c84154dcd952182e4867d841298c9eb0b14b (diff)
IRQ: add __must_check to request_irq
This could help to find buggy drivers where request_irq return value wasn't checked. There's just no reason to ignore errors which can and do occur. Anyone who got warning during compilation have to realise what it is't realy safe code. Signed-off-by: Monakhov Dmitriy <dmonakhov@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r--include/linux/interrupt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index 0319f665dd3f..2067a7ef6e62 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -83,11 +83,11 @@ struct irqaction {
83}; 83};
84 84
85extern irqreturn_t no_action(int cpl, void *dev_id); 85extern irqreturn_t no_action(int cpl, void *dev_id);
86extern int request_irq(unsigned int, irq_handler_t handler, 86extern int __must_check request_irq(unsigned int, irq_handler_t handler,
87 unsigned long, const char *, void *); 87 unsigned long, const char *, void *);
88extern void free_irq(unsigned int, void *); 88extern void free_irq(unsigned int, void *);
89 89
90extern int devm_request_irq(struct device *dev, unsigned int irq, 90extern int __must_check devm_request_irq(struct device *dev, unsigned int irq,
91 irq_handler_t handler, unsigned long irqflags, 91 irq_handler_t handler, unsigned long irqflags,
92 const char *devname, void *dev_id); 92 const char *devname, void *dev_id);
93extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id); 93extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id);