Re: [PATCH mm] tracing: incorrect gfp_t conversion
From: Andrew Morton
Date: Sat May 07 2022 - 19:23:31 EST
On Sat, 7 May 2022 15:48:35 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> I did the below.
>
Silly me, doesn't work.
>
> --- a/include/trace/events/mmflags.h~tracing-incorrect-gfp_t-conversion-fix
> +++ a/include/trace/events/mmflags.h
> @@ -13,53 +13,57 @@
> * Thus most bits set go first.
> */
>
> +#define FUL __force unsigned long
> +
> #define __def_gfpflag_names \
> - {(__force unsigned long)GFP_TRANSHUGE, "GFP_TRANSHUGE"}, \
Can't expand FUL here within the macro definition.