Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/fs_parse: add back fsparam_u32hex

296b67059 removed fsparam_u32hex because there were no callers
(yet) and it didn't build due to using the nonexistent symbol
fs_param_is_u32_hex.

fs/9p will need this parser, so add it back with the appropriate
fix (use fs_param_is_u32).

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Message-ID: <20251010214222.1347785-2-sandeen@redhat.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>

authored by

Eric Sandeen and committed by
Dominique Martinet
695f2ca1 52df783f

+2
+2
include/linux/fs_parser.h
··· 120 120 #define fsparam_u32(NAME, OPT) __fsparam(fs_param_is_u32, NAME, OPT, 0, NULL) 121 121 #define fsparam_u32oct(NAME, OPT) \ 122 122 __fsparam(fs_param_is_u32, NAME, OPT, 0, (void *)8) 123 + #define fsparam_u32hex(NAME, OPT) \ 124 + __fsparam(fs_param_is_u32, NAME, OPT, 0, (void *)16) 123 125 #define fsparam_s32(NAME, OPT) __fsparam(fs_param_is_s32, NAME, OPT, 0, NULL) 124 126 #define fsparam_u64(NAME, OPT) __fsparam(fs_param_is_u64, NAME, OPT, 0, NULL) 125 127 #define fsparam_enum(NAME, OPT, array) __fsparam(fs_param_is_enum, NAME, OPT, 0, array)