Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Apr 2002 05:37:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Apr 2002 05:37:02 -0400 Received: from dsl-213-023-038-128.arcor-ip.net ([213.23.38.128]:427 "EHLO starship") by vger.kernel.org with ESMTP id ; Wed, 24 Apr 2002 05:36:59 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Keith Owens , linux-kernel@vger.kernel.org Subject: Re: [patch] 2.5.9 remove warnings Date: Tue, 23 Apr 2002 11:37:03 +0200 X-Mailer: KMail [version 1.3.2] Cc: torvalds@transmeta.org In-Reply-To: <10704.1019533171@kao2.melbourne.sgi.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 23 April 2002 05:39, Keith Owens wrote: > exit.c:40: warning: passing arg 1 of `__builtin_expect' makes integer from pointer without a cast > - if (unlikely(proc_dentry)) { > + if (unlikely(proc_dentry != NULL)) { Have you checked to see if this produces the same code? To be on the safe side: + if (unlikely((ulong) proc_dentry)) { -- Daniel - 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/