From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: net/ipv4/inetpeer.c stack warnings Date: Thu, 19 Jul 2007 14:16:12 -0700 (PDT) Message-ID: <20070719.141612.72713859.davem@davemloft.net> References: <469F5941.7090900@googlemail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: nix.or.die@googlemail.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:37363 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1759461AbXGSVQN (ORCPT ); Thu, 19 Jul 2007 17:16:13 -0400 In-Reply-To: <469F5941.7090900@googlemail.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Gabriel C Date: Thu, 19 Jul 2007 14:29:53 +0200 > Hello , > > I noticed on current git this warning in net/ipv4/inetpeer.c > > ... > > CC net/ipv4/inetpeer.o > net/ipv4/inetpeer.c: In function 'unlink_from_pool': > net/ipv4/inetpeer.c:297: warning: the address of 'stack' will always > evaluate as 'true' > net/ipv4/inetpeer.c:297: warning: the address of 'stack' will always > evaluate as 'true' > net/ipv4/inetpeer.c: In function 'inet_getpeer': > net/ipv4/inetpeer.c:409: warning: the address of 'stack' will always > evaluate as 'true' > net/ipv4/inetpeer.c:409: warning: the address of 'stack' will always > evaluate as 'true' The compiler should not warn about that at all, the lookup() macro is called with "stack" set to NULL.