From: Christoph Hellwig <hch@lst.de>
To: Andy Lutomirski <luto@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Darren Hart <dvhart@infradead.org>,
Platform Driver <platform-driver-x86@vger.kernel.org>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1] platform/x86: wmi: Switch to use new generic UUID API
Date: Fri, 1 Sep 2017 10:23:03 +0200 [thread overview]
Message-ID: <20170901082303.GA23482@lst.de> (raw)
In-Reply-To: <CALCETrW6+MYpX+w-NKq8Uzo8_rJk+fLGkJaZiNAr4aCFRYNUQg@mail.gmail.com>
On Wed, Aug 30, 2017 at 01:01:28PM -0700, Andy Lutomirski wrote:
> What I'm saying is: I agree that "RFC4122 UUID" and "wintel GUID" are
> different, but the new structs aren't called "RFC4122 UUID" and
> "wintel GUID" - they're called "uuid" and "guid". I think the latter
> is very far from intuitive. I read the wmi patches several times
> before I figured out that they were even potentially correct.
uuid_t is the classic type for the RFC4122 UUID, userspace libuuid
which exists on just about any platforms calls it that, and in
the kernel XFS has been since before uuid_be was introduces. Now
for the Wintel GUID we'd have to call it "GUID" to stay close to
the roots, but I think guid_t is a good enough Linux-ish approximation
for that.
> 1. Make them totally separate. Have a function to convert a string to
> a uuid_le (or a guid_le or whatever you want to call it, as long as
> "le" or perhaps "wintel" is involved so it's obvious.) Have another
> function to convert back. Teach printk to understand %pULE.
They are entirely separate - one uses the uuid_* functions, one uses
guid_* functions.
> 2. Have a function to convert back and forth so that kernel code uses
> the real RFC4122 UUID for internal representations and keep just %pU.
99% of the uses are in interfaces we don't control - on disk, on the
wire, firmware, hypervisor. So there really is no point in converting
between them.
next prev parent reply other threads:[~2017-09-01 8:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 13:28 [PATCH v1] platform/x86: wmi: Switch to use new generic UUID API Andy Shevchenko
2017-08-04 15:01 ` Andy Lutomirski
2017-08-04 15:27 ` Andy Shevchenko
2017-08-06 15:43 ` Andy Lutomirski
2017-08-13 14:15 ` Andy Shevchenko
2017-08-13 15:23 ` Andy Lutomirski
2017-08-13 15:34 ` Andy Lutomirski
2017-08-30 12:25 ` Christoph Hellwig
2017-08-30 20:01 ` Andy Lutomirski
2017-09-01 8:23 ` Christoph Hellwig [this message]
2017-09-01 15:36 ` Andy Lutomirski
-- strict thread matches above, loose matches on Subject: below --
2018-07-13 12:53 Andy Shevchenko
2018-07-13 13:08 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170901082303.GA23482@lst.de \
--to=hch@lst.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=dvhart@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox