Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 10 Jun 2002 17:34:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 10 Jun 2002 17:34:34 -0400 Received: from p50887BDF.dip.t-dialin.net ([80.136.123.223]:30105 "EHLO hawkeye.luckynet.adm") by vger.kernel.org with ESMTP id ; Mon, 10 Jun 2002 17:34:33 -0400 Date: Mon, 10 Jun 2002 15:34:21 -0600 (MDT) From: Thunder from the hill X-X-Sender: thunder@hawkeye.luckynet.adm To: Tom Rini cc: "Maksim (Max) Krasnyanskiy" , Thunder from the hill , Andrew Morton , Kernel Mailing List Subject: Re: [PATCH] 2.5.21 kill warnings 4/19 In-Reply-To: <20020610211152.GQ14252@opus.bloom.county> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, 10 Jun 2002, Tom Rini wrote: > Right. Maybe it should even go in if it's not > already there. You want this? Index: include/linux/compiler.h =================================================================== RCS file: /var/cvs/thunder-2.5/include/linux/compiler.h,v retrieving revision 1.1.1.1 diff -u -3 -p -r1.1.1.1 compiler.h --- include/linux/compiler.h 10 Jun 2002 15:19:48 -0000 1.1.1.1 +++ include/linux/compiler.h 10 Jun 2002 21:33:38 -0000 @@ -8,7 +8,15 @@ #if __GNUC__ == 2 && __GNUC_MINOR__ < 96 #define __builtin_expect(x, expected_value) (x) -#endif +#endif /* GCC < 2.96 */ + +/* + * There may or may not be a __func__. For GCC < 2.95, there is none, so we + * define it as __FUNCTION__ there, even though it's NOT equivalent. + */ +#if __GNUC__ == 2 && __GNUC_MINOR__ < 95 +#define __func__ __FUNCTION__ +#endif /* GCC < 2.95 */ #define likely(x) __builtin_expect((x),1) #define unlikely(x) __builtin_expect((x),0) Regards, Thunder -- German attitude becoming | Thunder from the hill at ngforever rightaway popular: | "Get outa my way, | free inhabitant not directly for I got a mobile phone!" | belonging anywhere - 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/