Skip to content

string: import strverscmp_improved from systemd

Ahmad Fatoum barebox 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3include: sync min/max definitions with Linuxinclude/linux/const.h include/linux/kernel.h include/linux/minmax.h+179 -1220 replies
2/3include: minmax.h: implement compare3 helperinclude/linux/minmax.h+20 -00 replies
3/3string: import strverscmp_improved from systemdinclude/string.h lib/Kconfig lib/Makefile +4 more+358 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] string: import strverscmp_improved from systemd

The Boot Loader specification now references the UAPI group's version format specification[1] on how blspec entries should be sorted.

In preparation of aligning barebox entry sorting with the specification, import systemd's strverscmp_improved as strverscmp and add some tests for it.

The changes to bootloader spec sorting need some more testing and will follow separately.

Ahmad Fatoum (3):
include: sync min/max definitions with Linux
include: minmax.h: implement compare3 helper
string: import strverscmp_improved from systemd

 include/linux/const.h  |   9 ++
 include/linux/kernel.h | 123 +--------------------------
 include/linux/minmax.h | 189 +++++++++++++++++++++++++++++++++++++++++
 include/string.h       |   2 +
 lib/Kconfig            |   9 +-
 lib/Makefile           |   1 +
 lib/strverscmp.c       | 165 +++++++++++++++++++++++++++++++++++
 test/self/Kconfig      |   6 ++
 test/self/Makefile     |   1 +
 test/self/string.c     | 175 ++++++++++++++++++++++++++++++++++++++
 10 files changed, 557 insertions(+), 123 deletions(-)
 create mode 100644 include/linux/minmax.h
 create mode 100644 lib/strverscmp.c
 create mode 100644 test/self/string.c
Signature · 1 line
2.38.5