]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[uaccess] Rename userptr_sub() to userptr_diff()
authorMichael Brown <mcb30@ipxe.org>
Sun, 20 Apr 2025 16:18:06 +0000 (17:18 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 20 Apr 2025 16:20:30 +0000 (17:20 +0100)
commit63d27c6311db07780dfd7a0bd939c96b60e20a7c
treee229491c088e58c3e01475b7029d6dee64565a35
parent453acba7dc4b34fa3814755671755e2601a9059d
[uaccess] Rename userptr_sub() to userptr_diff()

Clarify the intended usage of userptr_sub() by renaming it to
userptr_diff() (to avoid confusion with userptr_add()), and fix the
existing call sites that erroneously use userptr_sub() to subtract an
offset from a userptr_t value.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/bzimage.c
src/arch/x86/image/initrd.c
src/arch/x86/include/librm.h
src/include/ipxe/linux/linux_uaccess.h
src/include/ipxe/uaccess.h