]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs/fs_parse: add back fsparam_u32hex
authorEric Sandeen <sandeen@redhat.com>
Fri, 10 Oct 2025 21:36:16 +0000 (16:36 -0500)
committerDominique Martinet <asmadeus@codewreck.org>
Mon, 3 Nov 2025 07:49:53 +0000 (16:49 +0900)
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>
include/linux/fs_parser.h

index 5a0e897cae807bbf5472645735027883a6593e91..5e8a3b5460331b88ff73af1760eb21f8e4311fdf 100644 (file)
@@ -120,6 +120,8 @@ static inline bool fs_validate_description(const char *name,
 #define fsparam_u32(NAME, OPT) __fsparam(fs_param_is_u32, NAME, OPT, 0, NULL)
 #define fsparam_u32oct(NAME, OPT) \
                        __fsparam(fs_param_is_u32, NAME, OPT, 0, (void *)8)
+#define fsparam_u32hex(NAME, OPT) \
+                       __fsparam(fs_param_is_u32, NAME, OPT, 0, (void *)16)
 #define fsparam_s32(NAME, OPT) __fsparam(fs_param_is_s32, NAME, OPT, 0, NULL)
 #define fsparam_u64(NAME, OPT) __fsparam(fs_param_is_u64, NAME, OPT, 0, NULL)
 #define fsparam_enum(NAME, OPT, array) __fsparam(fs_param_is_enum, NAME, OPT, 0, array)