From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966312Ab2CANa4 (ORCPT ); Thu, 1 Mar 2012 08:30:56 -0500 Received: from mail2.gnudd.com ([213.203.150.91]:62287 "EHLO mail.gnudd.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966247Ab2CANay (ORCPT ); Thu, 1 Mar 2012 08:30:54 -0500 Date: Thu, 1 Mar 2012 14:28:36 +0100 From: Alessandro Rubini To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Giancarlo Asnaghi , Alan Cox , Russell King - ARM Linux Subject: [PATCH 1/4] x86: add NO_IRQ macro Message-ID: <6bda7538144dce0bf5780df3d0601147dae753b5.1330607068.git.rubini@gnudd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: GnuDD, Device Drivers, Embedded Systems, Courses References: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is needed to compile AMBA drivers. Most architectures define NO_IRQ as -1, and this does the same for the PC. Signed-off-by: Alessandro Rubini Acked-by: Giancarlo Asnaghi Cc: Russell King Cc: Alan Cox --- arch/x86/include/asm/irq.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h index ba870bb..c9072f5 100644 --- a/arch/x86/include/asm/irq.h +++ b/arch/x86/include/asm/irq.h @@ -10,6 +10,8 @@ #include #include +#define NO_IRQ (-1) + static inline int irq_canonicalize(int irq) { return ((irq == 2) ? 9 : irq); -- 1.7.7.2