From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965078AbVKVSUR (ORCPT ); Tue, 22 Nov 2005 13:20:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965083AbVKVSUQ (ORCPT ); Tue, 22 Nov 2005 13:20:16 -0500 Received: from palinux.external.hp.com ([192.25.206.14]:53920 "EHLO palinux.hppa") by vger.kernel.org with ESMTP id S965078AbVKVSUP (ORCPT ); Tue, 22 Nov 2005 13:20:15 -0500 Date: Tue, 22 Nov 2005 11:20:14 -0700 From: Matthew Wilcox To: Linus Torvalds Cc: Alan Cox , David Woodhouse , Paul Mackerras , Ingo Molnar , David Howells , Andrew Morton , linux-kernel@vger.kernel.org, Russell King , Ian Molton , Benjamin Herrenschmidt Subject: Re: [PATCH 4/5] Centralise NO_IRQ definition Message-ID: <20051122182014.GO1598@parisc-linux.org> References: <20051121190632.GG1598@parisc-linux.org> <20051121194348.GH1598@parisc-linux.org> <20051121211544.GA4924@elte.hu> <17282.15177.804471.298409@cargo.ozlabs.ibm.com> <1132611631.11842.83.camel@localhost.localdomain> <1132657991.15117.76.camel@baythorne.infradead.org> <1132668939.20233.47.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 22, 2005 at 09:03:12AM -0800, Linus Torvalds wrote: > In short: NO_IRQ _is_ 0. Always has been. It's the only sane value. And > btw, there is no need for that #define at all, exactly because the way you > test for "is this no irq" is by doing "!dev->irq". Could you at least take the first patch that checks that we don't go outside the bounds of the irq_desc array?