* Re: [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays [not found] <20160604051453.3758.qmail@ns.sciencehorizons.net> @ 2016-06-04 16:29 ` Joe Perches 2016-06-04 21:57 ` George Spelvin 2016-06-05 14:19 ` Andy Shevchenko 0 siblings, 2 replies; 5+ messages in thread From: Joe Perches @ 2016-06-04 16:29 UTC (permalink / raw) To: George Spelvin, andriy.shevchenko Cc: bjorn, linux-kernel, matt, rv, Robert Moore, Lv Zheng, Rafael J. Wysocki, Len Brown, linux-acpi, devel (adding acpi folks) On Sat, 2016-06-04 at 01:14 -0400, George Spelvin wrote: > Both input and output code is simplified if we use a mapping from binary > UUID index to ASCII UUID position. This lets us combine hyphen-skipping > and endian-swapping into one table. > > This significantly simplifies __uuid_to_bin(), which was using *two* > lookup tables. Seems sensible, thanks. Trivially, acpi defines this but doesn't seem to use it. include/acpi/acconfig.h:#define UUID_STRING_LENGTH 36 /* Total length of a UUID string */ And Ingo commented last month: https://lkml.org/lkml/2016/4/29/69 Maybe this __uuid_to_bin function should be made public and the acpi version in drivers/acpi/acpica/utuuid.c should be removed. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays 2016-06-04 16:29 ` [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays Joe Perches @ 2016-06-04 21:57 ` George Spelvin 2016-06-05 14:19 ` Andy Shevchenko 1 sibling, 0 replies; 5+ messages in thread From: George Spelvin @ 2016-06-04 21:57 UTC (permalink / raw) To: andriy.shevchenko, joe, linux Cc: bjorn, devel, lenb, linux-acpi, linux-kernel, lv.zheng, matt, rafael.j.wysocki, robert.moore, rv Joe Perches wrote: > And Ingo commented last month: > https://lkml.org/lkml/2016/4/29/69 > > Maybe this __uuid_to_bin function should be made public and > the acpi version in drivers/acpi/acpica/utuuid.c should be > removed. I agree with the second part, but not the first; the uuid_le_to_bin() wrapper is better for the job, and already public. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays 2016-06-04 16:29 ` [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays Joe Perches 2016-06-04 21:57 ` George Spelvin @ 2016-06-05 14:19 ` Andy Shevchenko 2016-06-05 15:34 ` Joe Perches 1 sibling, 1 reply; 5+ messages in thread From: Andy Shevchenko @ 2016-06-05 14:19 UTC (permalink / raw) To: Joe Perches, George Spelvin Cc: bjorn, linux-kernel, matt, rv, Robert Moore, Lv Zheng, Rafael J. Wysocki, Len Brown, linux-acpi, devel On Sat, 2016-06-04 at 09:29 -0700, Joe Perches wrote: > (adding acpi folks) > > Trivially, acpi defines this but doesn't seem to use it. > > include/acpi/acconfig.h:#define UUID_STRING_LENGTH 36 /* > Total length of a UUID string */ > > And Ingo commented last month: > https://lkml.org/lkml/2016/4/29/69 > > Maybe this __uuid_to_bin function should be made public and > the acpi version in drivers/acpi/acpica/utuuid.c should be > removed. Looks like you missed my first version of (other) series. http://www.spinics.net/lists/linux-api/msg17518.html -- Andy Shevchenko <andriy.shevchenko@linux.intel.com> Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays 2016-06-05 14:19 ` Andy Shevchenko @ 2016-06-05 15:34 ` Joe Perches 2016-06-05 16:15 ` Andy Shevchenko 0 siblings, 1 reply; 5+ messages in thread From: Joe Perches @ 2016-06-05 15:34 UTC (permalink / raw) To: Andy Shevchenko, George Spelvin Cc: bjorn, linux-kernel, matt, rv, Robert Moore, Lv Zheng, Rafael J. Wysocki, Len Brown, linux-acpi, devel On Sun, 2016-06-05 at 17:19 +0300, Andy Shevchenko wrote: > On Sat, 2016-06-04 at 09:29 -0700, Joe Perches wrote: > > (adding acpi folks) > > Trivially, acpi defines this but doesn't seem to use it. > > > > include/acpi/acconfig.h:#define UUID_STRING_LENGTH 36 /* > > Total length of a UUID string */ > > > > And Ingo commented last month: > > https://lkml.org/lkml/2016/4/29/69 > > > > Maybe this __uuid_to_bin function should be made public and > > the acpi version in drivers/acpi/acpica/utuuid.c should be > > removed. > Looks like you missed my first version of (other) series. > http://www.spinics.net/lists/linux-api/msg17518.html More like if a patch isn't applied after several months, it's likely not going to be applied unless it is resent. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays 2016-06-05 15:34 ` Joe Perches @ 2016-06-05 16:15 ` Andy Shevchenko 0 siblings, 0 replies; 5+ messages in thread From: Andy Shevchenko @ 2016-06-05 16:15 UTC (permalink / raw) To: Joe Perches, George Spelvin Cc: bjorn, linux-kernel, matt, rv, Robert Moore, Lv Zheng, Rafael J. Wysocki, Len Brown, linux-acpi, devel On Sun, 2016-06-05 at 08:34 -0700, Joe Perches wrote: > On Sun, 2016-06-05 at 17:19 +0300, Andy Shevchenko wrote: > > On Sat, 2016-06-04 at 09:29 -0700, Joe Perches wrote: > > > (adding acpi folks) > > > Trivially, acpi defines this but doesn't seem to use it. > > > > > > include/acpi/acconfig.h:#define UUID_STRING_LENGTH 36 /* > > > Total length of a UUID string */ > > > > > > And Ingo commented last month: > > > https://lkml.org/lkml/2016/4/29/69 > > > > > > Maybe this __uuid_to_bin function should be made public and > > > the acpi version in drivers/acpi/acpica/utuuid.c should be > > > removed. > > Looks like you missed my first version of (other) series. > > http://www.spinics.net/lists/linux-api/msg17518.html > > More like if a patch isn't applied after several months, > it's likely not going to be applied unless it is resent. The discussion was about how to proceed with uuid_*_cmp() functions that have prototypes like uuid_le x1, x2. Any ideas come to mind? -- Andy Shevchenko <andriy.shevchenko@linux.intel.com> Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-05 16:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20160604051453.3758.qmail@ns.sciencehorizons.net>
2016-06-04 16:29 ` [PATCH v2 2/2] lib/uuid.c: eliminate uuid_[bl]e_index arrays Joe Perches
2016-06-04 21:57 ` George Spelvin
2016-06-05 14:19 ` Andy Shevchenko
2016-06-05 15:34 ` Joe Perches
2016-06-05 16:15 ` Andy Shevchenko
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox