Messages in this thread | | | Date | Wed, 14 Apr 2021 22:12:14 +0300 | From | Andy Shevchenko <> | Subject | Re: [PATCH 2/7] stm class: Replace uuid_t with plain u8 uuid[16] |
| |
On Wed, Apr 14, 2021 at 08:56:50PM +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 14, 2021 at 08:47:48PM +0300, Andy Shevchenko wrote: > > On Wed, Apr 14, 2021 at 07:33:38PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Apr 14, 2021 at 08:12:46PM +0300, Alexander Shishkin wrote:
...
> > Nothing, just will require additional export_uuid() / import_uuid() call. > > Isn't that the "correct way" here?
I agree that it is better, yes.
> > > > - generate_random_uuid(pn->uuid.b); > > > > > > Ok, that's not good, but that looks to be a flaw in the > > > generate_random_uuid() api, not this driver implementation. > > > > > > I don't understand why this change is needed? > > > > Using raw buffer APIs against uuid_t / guid_t. > > So you want to do that, or you do not want to do that? Totally > confused,
It is matter of consistency, so two possibilities here: - use types _and_ APIs for raw buffer (this patch) - use types _and_ APIs for uuid_t (suggested in this discussion)
Currently it uses uuid_t type _and_ raw buffer APIs — inconsistency.
-- With Best Regards, Andy Shevchenko
| |