All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: fix cast in fsparam_u32hex() macro
@ 2020-09-16 20:18 Alexey Dobriyan
  2020-09-16 23:12 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2020-09-16 20:18 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 include/linux/fs_parser.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/include/linux/fs_parser.h
+++ b/include/linux/fs_parser.h
@@ -120,7 +120,7 @@ static inline bool fs_validate_description(const char *name,
 #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_hex, NAME, OPT, 0, (void *16))
+			__fsparam(fs_param_is_u32_hex, 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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fs: fix cast in fsparam_u32hex() macro
  2020-09-16 20:18 [PATCH] fs: fix cast in fsparam_u32hex() macro Alexey Dobriyan
@ 2020-09-16 23:12 ` Al Viro
  0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2020-09-16 23:12 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linux-fsdevel

On Wed, Sep 16, 2020 at 11:18:43PM +0300, Alexey Dobriyan wrote:
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
> 
>  include/linux/fs_parser.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/include/linux/fs_parser.h
> +++ b/include/linux/fs_parser.h
> @@ -120,7 +120,7 @@ static inline bool fs_validate_description(const char *name,
>  #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_hex, NAME, OPT, 0, (void *16))
> +			__fsparam(fs_param_is_u32_hex, 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)

Nice catch; applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-16 23:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 20:18 [PATCH] fs: fix cast in fsparam_u32hex() macro Alexey Dobriyan
2020-09-16 23:12 ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.