Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1692226

Re: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API

From Andy Shevchenko <andy.shevchenko@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API
Date 2017-07-20 00:00 +0200
Message-ID <u55aG-67b-13@gated-at.bofh.it> (permalink)
References <u51Ts-3Yc-21@gated-at.bofh.it> <u5238-42I-15@gated-at.bofh.it> <u53BU-5c3-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jul 19, 2017 at 11:18 PM, Haiyang Zhang <haiyangz@microsoft.com> wrote:

>>  struct hv_fcopy_hdr {
>>       __u32 operation;
>> -     uuid_le service_id0; /* currently unused */
>> -     uuid_le service_id1; /* currently unused */
>> +     __u8 service_id0[16]; /* currently unused */
>> +     __u8 service_id1[16]; /* currently unused */
>>  } __attribute__((packed));
>
> Even user space may not have all guid_t operations, could you still
> put guid_t here for consistency?

I'm not sure how this code has been designed, though uuid_le followed
by guid_t are kernel internal types mistakenly put to UAPI in the
first place.

Consistency here is how we treat those types in user space, starting
from v4.13 uuid_be gone from that header. uuid_le is luckily will be
gone soon.

> This file is also used by our kernel
> mode code.

It will work still the same after this change.

-- 
With Best Regards,
Andy Shevchenko

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v1 4/6] vmbus: Switch to use new generic UUID API Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-07-19 20:40 +0200
  RE: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API Haiyang Zhang <haiyangz@microsoft.com> - 2017-07-19 22:20 +0200
    Re: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-07-20 00:00 +0200
  Re: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API kbuild test robot <lkp@intel.com> - 2017-07-22 20:50 +0200
  Re: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API Christoph Hellwig <hch@lst.de> - 2017-07-24 18:00 +0200

csiph-web