From patchwork Tue Jun 13 05:13:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charan Teja Kalla X-Patchwork-Id: 107091 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp316262vqr; Mon, 12 Jun 2023 22:28:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6U5Bf4fMbWzbsCndyn/jXlxnmdcRg5OJFxn8diBE1Q1WzHobVpOUE8JqsesVEv20RHSZbq X-Received: by 2002:a0d:d701:0:b0:56d:308f:1efa with SMTP id z1-20020a0dd701000000b0056d308f1efamr998647ywd.4.1686634089252; Mon, 12 Jun 2023 22:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686634089; cv=none; d=google.com; s=arc-20160816; b=PokpIEwpgQbnaxDcbEGnVLLnwI6NU6ymT2GQ1AuBdzbkDXC/ZBxhfoFpBWS0iYjGZ/ /Ww+TXI167Sl3bFyuTl+G/sLXQjbWW+pepKuNUhFqgp2ZO86eKrbka/kGvX3XGgeA/4X A1xRKU1Ro+e9B/JG+b0qzpFaT56oSt9nSMwSSh7RVudu4655yUE5cOKfuU4GWXiSzIuR ZFl1ohaIctC3w6Lwu3VmaQFvsLvasnaPUNUqkrhJqq+sx8sxiP0wB4F6Uj80DVpwlgio XDSXX4NWl0ewn4bIjczpGnhJdI8u+46Qr3EYKbb0pYf1PCOCNtuQjxdW5bFV8KXBWNv6 sIXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=+xOblXP6Of44juClUSLRySEfxGA1qt8RGsv8h8ljKLE=; b=kC4Nua95hvjoR2CmVr0/Z8R44l7Am7br1DuamJq8Kc3UxH8ArTkUprrPGH6oNqS1U6 gb++AwWBqhySNA8u6hbwLj8Nwvf6s56zmB5F5wZctgcDHasZZZTT+5NJWRRWZ+RkKL7x b+fhA/9s5m0UZlhsGdvRpJ8/D8ICNLeK9fyUTM8UHB4/CNEEYHQuOz8HaB2p4Hftyd5p g5DVHgjknPLH3AAx87TwdjCkGXhaObWTD20dy8st7RoZs0aZrZzxboQNY1+SJ1nwxhyD zlQEGidVtOVbG0GyQy2bUHw5fgFf1uJ9rxXF02IW1zXJxazWVh/2aUIHKEXchObLy4kV 3Wjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=b8IY0KN8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fr17-20020a17090ae2d100b0025bdd2129adsi3116060pjb.97.2023.06.12.22.27.57; Mon, 12 Jun 2023 22:28:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=b8IY0KN8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239163AbjFMFOZ (ORCPT + 99 others); Tue, 13 Jun 2023 01:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232951AbjFMFOW (ORCPT ); Tue, 13 Jun 2023 01:14:22 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B5FE79 for ; Mon, 12 Jun 2023 22:14:21 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35D4U4gx022408; Tue, 13 Jun 2023 05:14:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=+xOblXP6Of44juClUSLRySEfxGA1qt8RGsv8h8ljKLE=; b=b8IY0KN8TyAS/wYGkwSqrzsJLg2cCQ4/sAgIoSDBMrA6zr7gMZXnSzaLjfhC8x4tbphU xpV/IBKmtNBXEFORaEoUGnDL5oEBSGke6Gy/uN6Dry3htdkoy5EC6uRAvDJ1rMGTjOvE +QXgVLdK+pJ6W3tE5iqgv2KsfcZMpoC7lkzQxRVWTJifWr7+aYX5VUfp59wO92xmIhPX nWCt+W2obr0GKUY28h0WnOVxG243BtcfkuxqzBYbOz7aYLxtXz9GEUlb8QtdNMlsMgEF yzohgnOMIeLXuA7cF0o9pw02GVmhKtWxNYZ0TGHluFpo1w0zgN3pf41bkExuzhmGVLzO Lg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r69gx0s9y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Jun 2023 05:14:15 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35D5Dx3O021631 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Jun 2023 05:13:59 GMT Received: from hu-charante-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Mon, 12 Jun 2023 22:13:56 -0700 From: Charan Teja Kalla To: , , , CC: , , "Charan Teja Kalla" Subject: [PATCH] mm: fix gfp-translate for changes in gfp.h Date: Tue, 13 Jun 2023 10:43:37 +0530 Message-ID: <1686633217-4397-1-git-send-email-quic_charante@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 2F8eCcU-5At9-eJbJYHjcr4ZTrk_hIyp X-Proofpoint-GUID: 2F8eCcU-5At9-eJbJYHjcr4ZTrk_hIyp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_02,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1011 mlxscore=0 suspectscore=0 mlxlogscore=529 bulkscore=0 adultscore=0 phishscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306130046 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768564026987523321?= X-GMAIL-MSGID: =?utf-8?q?1768564026987523321?= The commit cb5a065b4ea9 ("headers/deps: mm: Split out of ") made all the gfp flags that the gfp-translate script needed to move from gfp.h to gfp_types.h. Made changes accordingly in the gfp-translate scipt. w/o this patch: $./scripts/gfp-translate 0xc2cc0 Source: /local/mnt/workspace/linux_next/linux Parsing: 0xc2cc0 with this patch: Source: /local/mnt/workspace/linux_next/linux Parsing: 0xc2cc0 #define ___GFP_IO 0x40 #define ___GFP_FS 0x80 #define ___GFP_DIRECT_RECLAIM 0x400 #define ___GFP_KSWAPD_RECLAIM 0x800 #define ___GFP_NOWARN 0x2000 #define ___GFP_COMP 0x40000 #define ___GFP_NOMEMALLOC 0x80000 Fixes: cb5a065b4ea9 ("headers/deps: mm: Split out of ") Signed-off-by: Charan Teja Kalla --- scripts/gfp-translate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gfp-translate b/scripts/gfp-translate index b2ce416..6c9aed1 100755 --- 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 # Parse the flags