Commit 5818a6e2519b34cd6d0220d89f5729ab2725e1bf
Committed by
Rafael J. Wysocki
1 parent
fce2b111fa
Exists in
master
and in
39 other branches
PM: Add empty suspend/resume device irq functions
git commit 0a0c5168 "PM: Introduce functions for suspending and resuming device interrupts" introduced some helper functions. However these functions are only available for architectures which support GENERIC_HARDIRQS. Other architectures will see this build error: drivers/built-in.o: In function `sysdev_suspend': (.text+0x15138): undefined reference to `check_wakeup_irqs' drivers/built-in.o: In function `device_power_up': (.text+0x1cb66): undefined reference to `resume_device_irqs' drivers/built-in.o: In function `device_power_down': (.text+0x1cb92): undefined reference to `suspend_device_irqs' To fix this add some empty inline functions for !GENERIC_HARDIRQS. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
include/linux/interrupt.h
... | ... | @@ -183,11 +183,17 @@ |
183 | 183 | extern void enable_irq(unsigned int irq); |
184 | 184 | |
185 | 185 | /* The following three functions are for the core kernel use only. */ |
186 | +#ifdef CONFIG_GENERIC_HARDIRQS | |
186 | 187 | extern void suspend_device_irqs(void); |
187 | 188 | extern void resume_device_irqs(void); |
188 | 189 | #ifdef CONFIG_PM_SLEEP |
189 | 190 | extern int check_wakeup_irqs(void); |
190 | 191 | #else |
192 | +static inline int check_wakeup_irqs(void) { return 0; } | |
193 | +#endif | |
194 | +#else | |
195 | +static inline void suspend_device_irqs(void) { }; | |
196 | +static inline void resume_device_irqs(void) { }; | |
191 | 197 | static inline int check_wakeup_irqs(void) { return 0; } |
192 | 198 | #endif |
193 | 199 |