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

Re: [Xen-devel] [PATCH RFC 19/23] hvmloader: remove size_t typedef and include stddef.h



On 28/04/14 16:43, Ian Campbell wrote:
> On Wed, 2014-04-16 at 16:13 +0200, Roger Pau Monne wrote:
>> The open coded typedef of size_t was clashing with the typedef in
>> FreeBSD headers. Remove the typedef and include the proper header
>> where size_t is defined (stddef.h).
>>
>> Signed-off-by: Roger Pau Monnà <roger.pau@xxxxxxxxxx>
>> Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
>> Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
>> ---
>>  tools/firmware/hvmloader/util.h |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/tools/firmware/hvmloader/util.h 
>> b/tools/firmware/hvmloader/util.h
>> index 9ccb905..46d32b9 100644
>> --- a/tools/firmware/hvmloader/util.h
>> +++ b/tools/firmware/hvmloader/util.h
> 
>> @@ -3,6 +3,7 @@
>>  
>>  #include <stdarg.h>
>>  #include <stdint.h>
>> +#include <stddef.h>
> 
> This isn't really userspace code, it's essentially a little kernel. So
> I'm not sure what the impact of including stddef.h is. I suppose it is
> probably OK.
> 
> Xen itself seems to use "typedef __SIZE_TYPE__ size_t" without
> ill-affects, on *BSD too I suppose.

I don't have a strong opinion regarding what to do, but hvmloader/util.h
already includes stdarg.h and stdint.h, so adding also stddef.h seemed
the best way. I plan to resend this as-is unless someone clearly objects.

Roger.


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

 


Rackspace

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