Received: from eggs.gnu.org ([2001:4830:134:3::10]:51471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC0sE-0006rh-Vr for qemu-devel@nongnu.org; Tue, 07 Nov 2017 05:12:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC0sE-00068S-2T for qemu-devel@nongnu.org; Tue, 07 Nov 2017 05:12:50 -0500 From: Markus Armbruster References: <87efpmccvu.fsf@secure.laptop> Date: Tue, 07 Nov 2017 11:12:14 +0100 In-Reply-To: <87efpmccvu.fsf@secure.laptop> (Juan Quintela's message of "Sun, 29 Oct 2017 14:16:53 +0100") Message-ID: <87bmke4cu9.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 01/46] Replace all occurances of __FUNCTION__ with __func__ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: Alistair Francis , "Dr. David Alan Gilbert" , Stefano Stabellini , Fam Zheng , qemu-block@nongnu.org, Peter Crosthwaite , John Snow , qemu-devel@nongnu.org, Yongbok Kim , qemu-arm@nongnu.org, Gerd Hoffmann , Stefan Hajnoczi , xen-devel@lists.xenproject.org, Anthony Perard , alistair23@gmail.com, Aurelien Jarno Juan Quintela writes: > Alistair Francis wrote: >> Replace all occurs of __FUNCTION__ except for the check in checkpatch >> with the non GCC specific __func__. >> >> One line in hcd-musb.c was manually tweaked to pass checkpatch. >> >> Signed-off-by: Alistair Francis >> Cc: Gerd Hoffmann >> Cc: Andrzej Zaborowski >> Cc: Stefano Stabellini >> Cc: Anthony Perard >> Cc: John Snow >> Cc: Aurelien Jarno >> Cc: Yongbok Kim >> Cc: Peter Crosthwaite >> Cc: Stefan Hajnoczi >> Cc: Fam Zheng >> Cc: Juan Quintela >> Cc: "Dr. David Alan Gilbert" >> Cc: qemu-arm@nongnu.org >> Cc: qemu-block@nongnu.org >> Cc: xen-devel@lists.xenproject.org >> Reviewed-by: Eric Blake >> Reviewed-by: Stefan Hajnoczi > > Reviewed-by: Juan Quintela > > >> diff --git a/audio/audio_int.h b/audio/audio_int.h >> index 5bcb1c60e1..543b1bd8d5 100644 >> --- a/audio/audio_int.h >> +++ b/audio/audio_int.h >> @@ -253,7 +253,7 @@ static inline int audio_ring_dist (int dst, int src, int len) >> #define AUDIO_STRINGIFY(n) AUDIO_STRINGIFY_(n) >> >> #if defined _MSC_VER || defined __GNUC__ >> -#define AUDIO_FUNC __FUNCTION__ >> +#define AUDIO_FUNC __func__ >> #else >> #define AUDIO_FUNC __FILE__ ":" AUDIO_STRINGIFY (__LINE__) >> #endif > > Unrelated to this patch .... > Do we really support other compilers than msc and gcc? Let me rephrase the question: do we really support compilers that don't understand __func__? The presence of numerous unconditional uses of __func__ in the tree means the answer is no. Let's replace AUDIO_FUNC by plain __func__.