From: akpm@linux-foundation.org Subject: + include-linux-interrupth-add-dummy-irq_set_irq_wake-for-generic_hardirqs.patch added to -mm tree Date: Fri, 28 Jun 2013 13:22:35 -0700 Message-ID: <51cdf08b.laQVZABKKpgArGyu%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: application/octet-stream Content-Transfer-Encoding: 8bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:51458 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752081Ab3F1UWg (ORCPT ); Fri, 28 Jun 2013 16:22:36 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, tglx@linutronix.de, gang.chen@asianux.com Subject: + include-linux-interrupth-add-dummy-irq_set_irq_wake-for-generic_hardirqs.patch added to -mm tree To: gang.chen@asianux.com,tglx@linutronix.de From: akpm@linux-foundation.org Date: Fri, 28 Jun 2013 13:22:35 -0700 The patch titled Subject: include/linux/interrupt.h: add dummy irq_set_irq_wake() for "!GENERIC_HARDIRQS" has been added to the -mm tree. Its filename is include-linux-interrupth-add-dummy-irq_set_irq_wake-for-generic_hardirqs.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Chen Gang Subject: include/linux/interrupt.h: add dummy irq_set_irq_wake() for "!GENERIC_HARDIRQS" Since irq_set_irq_wake() has already declared in header file, when GENERIC_HARDIRQS enabled. Recommend to define the dummy one for GENERIC_HARDIRQS disabled, and also let the other related "static inline" functions are independent from GENERIC_HARDIRQS. So can avoid the compiling error below, and also let the code simpler and clearer. The related compiling error (ARCH=s390 allmodconfig): sound/soc/codecs/wm0010.c: In function ‘wm0010_spi_probe’: sound/soc/codecs/wm0010.c:976:2: error: implicit declaration of function ‘irq_set_irq_wake’ [-Werror=implicit-function-declaration] Signed-off-by: Chen Gang Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- include/linux/interrupt.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff -puN include/linux/interrupt.h~include-linux-interrupth-add-dummy-irq_set_irq_wake-for-generic_hardirqs include/linux/interrupt.h --- a/include/linux/interrupt.h~include-linux-interrupth-add-dummy-irq_set_irq_wake-for-generic_hardirqs +++ a/include/linux/interrupt.h @@ -344,16 +344,6 @@ static inline void enable_irq_lockdep_ir /* IRQ wakeup (PM) control: */ extern int irq_set_irq_wake(unsigned int irq, unsigned int on); -static inline int enable_irq_wake(unsigned int irq) -{ - return irq_set_irq_wake(irq, 1); -} - -static inline int disable_irq_wake(unsigned int irq) -{ - return irq_set_irq_wake(irq, 0); -} - #else /* !CONFIG_GENERIC_HARDIRQS */ /* * NOTE: non-genirq architectures, if they want to support the lock @@ -370,16 +360,23 @@ static inline int disable_irq_wake(unsig enable_irq(irq) # endif -static inline int enable_irq_wake(unsigned int irq) +/* IRQ wakeup (PM) control: */ +static inline int irq_set_irq_wake(unsigned int irq, unsigned int on) { return 0; } +#endif /* CONFIG_GENERIC_HARDIRQS */ + +static inline int enable_irq_wake(unsigned int irq) +{ + return irq_set_irq_wake(irq, 1); +} + static inline int disable_irq_wake(unsigned int irq) { - return 0; + return irq_set_irq_wake(irq, 0); } -#endif /* CONFIG_GENERIC_HARDIRQS */ #ifdef CONFIG_IRQ_FORCED_THREADING _ Patches currently in -mm which might be from gang.chen@asianux.com are arch-c6x-mm-include-asm-uaccessh-to-pass-compiling.patch linux-next.patch kernel-auditfilterc-fix-leak-in-audit_add_rule-error-path.patch include-linux-interrupth-add-dummy-irq_set_irq_wake-for-generic_hardirqs.patch posix-timers-correctly-get-dying-task-time-sample-in-posix_cpu_timer_schedule.patch mm-remove-lru-parameter-from-__lru_cache_add-and-lru_cache_add_lru-fix-2.patch mm-page_allocc-add-additional-checking-and-return-value-for-the-table-data.patch mm-nommuc-add-additional-check-for-vread-just-like-vwrite-has-done.patch arch-frv-kernel-trapsc-using-vsnprintf-instead-of-vsprintf.patch arch-frv-kernel-setupc-use-strncmp-instead-of-memcmp.patch