[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Qemu-devel] [PATCH v3 01/46] Replace all occurances of __FUNCTION__ with __func__



Juan Quintela <quintela@xxxxxxxxxx> writes:

> Alistair Francis <alistair.francis@xxxxxxxxxx> 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 <alistair.francis@xxxxxxxxxx>
>> Cc: Gerd Hoffmann <kraxel@xxxxxxxxxx>
>> Cc: Andrzej Zaborowski <balrogg@xxxxxxxxx>
>> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>> Cc: Anthony Perard <anthony.perard@xxxxxxxxxx>
>> Cc: John Snow <jsnow@xxxxxxxxxx>
>> Cc: Aurelien Jarno <aurelien@xxxxxxxxxxx>
>> Cc: Yongbok Kim <yongbok.kim@xxxxxxxxxx>
>> Cc: Peter Crosthwaite <crosthwaite.peter@xxxxxxxxx>
>> Cc: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
>> Cc: Fam Zheng <famz@xxxxxxxxxx>
>> Cc: Juan Quintela <quintela@xxxxxxxxxx>
>> Cc: "Dr. David Alan Gilbert" <dgilbert@xxxxxxxxxx>
>> Cc: qemu-arm@xxxxxxxxxx
>> Cc: qemu-block@xxxxxxxxxx
>> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
>> Reviewed-by: Eric Blake <eblake@xxxxxxxxxx>
>> Reviewed-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
>
> Reviewed-by: Juan Quintela <quintela@xxxxxxxxxx>
>
>
>> 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__.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.