From: Andrew Morton <akpm@linux-foundation.org>
To: Prathu Baronia <prathubaronia2011@gmail.com>
Cc: masahiroy@kernel.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, nathan@kernel.org, ndesaulniers@google.com,
nicolas@fjasle.eu
Subject: Re: [PATCH] scripts: fix the gfp flags header path in gfp-translate
Date: Thu, 8 Jun 2023 17:35:33 -0700 [thread overview]
Message-ID: <20230608173533.1187af36cdb624f3915ae305@linux-foundation.org> (raw)
In-Reply-To: <20230608154450.21758-1-prathubaronia2011@gmail.com>
On Thu, 8 Jun 2023 21:14:49 +0530 Prathu Baronia <prathubaronia2011@gmail.com> wrote:
> Since gfp flags have been shifted to gfp_types.h so update the path in
> the gfp-translate script.
>
> ...
>
> --- a/scripts/gfp-translate
> +++ b/scripts/gfp-translate
> @@ -63,11 +63,11 @@ fi
>
> # Extract GFP flags from the kernel source
> TMPFILE=`mktemp -t gfptranslate-XXXXXX` || exit 1
> -grep -q ___GFP $SOURCE/include/linux/gfp.h
> +grep -q ___GFP $SOURCE/include/linux/gfp_types.h
> if [ $? -eq 0 ]; then
> - grep "^#define ___GFP" $SOURCE/include/linux/gfp.h | sed -e 's/u$//' | grep -v GFP_BITS > $TMPFILE
> + grep "^#define ___GFP" $SOURCE/include/linux/gfp_types.h | sed -e 's/u$//' | grep -v GFP_BITS > $TMPFILE
> else
> - grep "^#define __GFP" $SOURCE/include/linux/gfp.h | sed -e 's/(__force gfp_t)//' | sed -e 's/u)/)/' | grep -v GFP_BITS | sed -e 's/)\//) \//' > $TMPFILE
> + grep "^#define __GFP" $SOURCE/include/linux/gfp_types.h | sed -e 's/(__force gfp_t)//' | sed -e 's/u)/)/' | grep -v GFP_BITS | sed -e 's/)\//) \//' > $TMPFILE
> fi
>
Thanks. I added
Fixes: cb5a065b4ea9c ("headers/deps: mm: Split <linux/gfp_types.h> out of <linux/gfp.h>")
Cc: <stable@vger.kernel.org>
next prev parent reply other threads:[~2023-06-09 0:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-08 15:44 Prathu Baronia
2023-06-09 0:35 ` Andrew Morton [this message]
2023-06-12 9:21 ` David Hildenbrand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230608173533.1187af36cdb624f3915ae305@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=nicolas@fjasle.eu \
--cc=prathubaronia2011@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox