From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Rothwell Subject: linux-next: build failure after merge of the final tree Date: Wed, 28 Sep 2011 19:56:01 +1000 Message-ID: <20110928195601.9d0da0ea27186c4ce9349d94@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Andrew Morton Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, David Miller , Huang Ying List-Id: linux-next.vger.kernel.org Hi all, After merging the final tree, today's linux-next build (sparc32 defconfig) failed like this: In file included from include/linux/irq_work.h:4:0, from include/linux/perf_event.h:510, from arch/sparc/mm/fault_32.c:21: include/linux/llist.h: In function 'llist_add': include/linux/llist.h:158:2: error: implicit declaration of function 'in_nmi' In file included from include/linux/irq_work.h:4:0, from include/linux/perf_event.h:510, from arch/sparc/kernel/unaligned_32.c:18: include/linux/llist.h: In function 'llist_add': include/linux/llist.h:158:2: error: implicit declaration of function 'in_nmi' In file included from include/linux/irq_work.h:4:0, from include/linux/perf_event.h:510, from kernel/sys.c:16: include/linux/llist.h: In function 'llist_add': include/linux/llist.h:158:2: error: implicit declaration of function 'in_nmi' Caused by commit 510d7dc70eab ("llist: make all llist functions inline") from the akpm tree. I applied this patch for today: From: Stephen Rothwell Date: Wed, 28 Sep 2011 19:51:38 +1000 Subject: [PATCH] llist: using in_nmi requires including hardirq.h Signed-off-by: Stephen Rothwell --- include/linux/llist.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/llist.h b/include/linux/llist.h index 5d23564..fb81b7b 100644 --- a/include/linux/llist.h +++ b/include/linux/llist.h @@ -73,6 +73,7 @@ struct llist_node { #ifdef CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG #define CHECK_NMI_SAFE_CMPXCHG() #else +#include #define CHECK_NMI_SAFE_CMPXCHG() BUG_ON(in_nmi()) #endif -- 1.7.6.3 -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/