]> xenbits.xensource.com Git - xen.git/commit
xen/lib: Switch to xen/byteorder.h
authorLin Liu <lin.liu@citrix.com>
Wed, 20 Oct 2021 04:29:46 +0000 (04:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 18 Apr 2025 14:16:12 +0000 (15:16 +0100)
commit9aaae6cb4df2a4a98147ca7b49a6e97fc3bbb9ad
treefd41a582f7dcc1f9d15a2344545069c7032f4aba
parent7b55401529f9c4f5bfbc3232df941a9b6dc324d5
xen/lib: Switch to xen/byteorder.h

In divmod.c, additionally swap xen/lib.h for xen/macros.h as only ABS() is
needed.

In find-next-bit.c, ext2 has nothing to do with this logic.  It was a local
modification when the logic was imported from Linux, because Xen didn't have a
suitable helper at the time.

The new infrastructure does have a suitable primitive, so use it.

No functional change.

Signed-off-by: Lin Liu <lin.liu@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/lib/divmod.c
xen/lib/find-next-bit.c