Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756127AbYHCGE2 (ORCPT ); Sun, 3 Aug 2008 02:04:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752116AbYHCGEU (ORCPT ); Sun, 3 Aug 2008 02:04:20 -0400 Received: from an-out-0708.google.com ([209.85.132.245]:55558 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089AbYHCGEU (ORCPT ); Sun, 3 Aug 2008 02:04:20 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UYxO6Mv3IbSzCE6LzBL0hxPZkCvRWgxeBTEWO4Uqct8alPS7W56B8qVpJhRCQGUJ1w Zm5jnjqDPt/uDNRxzk/qvl/mGrhNQqXzDlqROeuapqV7zgZ9R8ITCRWiUoI3ph37kx5M qPUI8/+yJDtlQIoCQmEqQ/GiwbWbRPkI2hHIY= Message-ID: <86802c440808022304g41749d9dn7688c81c3fdbed8a@mail.gmail.com> Date: Sat, 2 Aug 2008 23:04:18 -0700 From: "Yinghai Lu" To: "Eric W. Biederman" Subject: Re: [PATCH 00/25] dyn_array and nr_irqs support v3 Cc: "Ingo Molnar" , "Thomas Gleixner" , "H. Peter Anvin" , "Dhaval Giani" , "Mike Travis" , "Andrew Morton" , linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1217732365-16595-1-git-send-email-yhlu.kernel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 782 Lines: 27 On Sat, Aug 2, 2008 at 10:51 PM, Eric W. Biederman wrote: > > It appears that quite a few of the places you have changed are testing > to see if an irq is valid. The idiomatic way to perform that test in > the kernel is: > > if (irq) is uninitialized irq to be -1 or 0? > > With no test to see if you are >= NR_IRQS. > > I expect that is the change we want in the drivers that are performing such a silly > extra check. is_irq_valid(irq_no) ? wait to see your new patchset about dyn irq_cfg and irq_desc YH -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/