Skip to content

Commit 695f2ca

Browse files
Eric Sandeenmartinetd
authored andcommitted
fs/fs_parse: add back fsparam_u32hex
296b670 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>
1 parent 52df783 commit 695f2ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/fs_parser.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ static inline bool fs_validate_description(const char *name,
120120
#define fsparam_u32(NAME, OPT) __fsparam(fs_param_is_u32, NAME, OPT, 0, NULL)
121121
#define fsparam_u32oct(NAME, OPT) \
122122
__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)
123125
#define fsparam_s32(NAME, OPT) __fsparam(fs_param_is_s32, NAME, OPT, 0, NULL)
124126
#define fsparam_u64(NAME, OPT) __fsparam(fs_param_is_u64, NAME, OPT, 0, NULL)
125127
#define fsparam_enum(NAME, OPT, array) __fsparam(fs_param_is_enum, NAME, OPT, 0, array)

0 commit comments

Comments
 (0)