Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4047627rwb; Mon, 21 Nov 2022 03:05:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4pfeAlUAtGMD7bYP5wLde57nPoadU6yInXTk/LVRqb2do2/2In14HVEPqfXjmM/TZAaO0L X-Received: by 2002:a05:6402:5305:b0:467:69e3:c25b with SMTP id eo5-20020a056402530500b0046769e3c25bmr15524721edb.3.1669028747116; Mon, 21 Nov 2022 03:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669028747; cv=none; d=google.com; s=arc-20160816; b=KI5RDbvMZg1Sp7rTnm7ajd+Qggd17sQqdne5VTL5DJMRhVcK+O4ieKKmAACTPmLsTQ FVr2uu17nP88zZMsObL4qaL/xSGvIX3KmioeB4R1ys8VsszxvJ36Fs2TjsnERfeufpuH h8VHBnx2v/OFu4IkhLWfFKj+TWIrrg7DJwTHEqOKe1zjM48jxPPfndM1IHgsH0ipvLlu kyJ1LL1AT0Bhpg+JnpU6ZTZJUwDKQCH8v7FSEYpB85Bn8gzXN7HYcbAoRMk8Q8quamoi NlpM0b580UrFLPKKrSmTKp8KtojtoHE/hkwwTtdVBsbQ1oqI8BeInvnrScQ4EKPDkNla +E7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=36lP5aJD1lLfad48LgG+K8xja/OmeIAkTe2HxqndyGI=; b=0xBTjU63Bk6OPTCCSBGU9EaQivcrPlTX/3kSoJMRUHEmMK5/BGSqVYJCKZ/c8sP6Dl UcrCTQS0fhdtJr0zcr6iArqT+7MucMK5MmGF86BnZkcKcERH9QdMVSL9gtAciCGkaTSl z/fWHJB8X8hWg2V1a3ZEDJjOmVR3xkqgRdIoxhZAYWg94mqNsNnNTm1Q7jWqmCjs/Hy+ GlmjR1YHK+wS/l3PSaDnYRgy6ZyEgITf8u4sJE3pil6aQ4tDGCdAcW1gS34EkFu8yS5u M97i0LNQ3tLSjQVN+9827E2EwgeoI8TrFo30BjbEjaA+vUVufkUxk3gqjjzC64YmV2Td XBkQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp8-20020a1709071b0800b007add405cccdsi9764343ejc.444.2022.11.21.03.05.23; Mon, 21 Nov 2022 03:05:47 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbiKUKUq (ORCPT + 91 others); Mon, 21 Nov 2022 05:20:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiKUKUo (ORCPT ); Mon, 21 Nov 2022 05:20:44 -0500 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E74C427CE0 for ; Mon, 21 Nov 2022 02:20:42 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R771e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VVKKCcj_1669026038; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VVKKCcj_1669026038) by smtp.aliyun-inc.com; Mon, 21 Nov 2022 18:20:39 +0800 From: Yang Li To: mike.kravetz@oracle.com Cc: songmuchun@bytedance.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] mm/hugetlb: stop using 0 as NULL pointer Date: Mon, 21 Nov 2022 18:20:37 +0800 Message-Id: <20221121102037.75307-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 mm/hugetlb.c:1531:37: warning: Using plain integer as NULL pointer Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3224 Reported-by: Abaci Robot Signed-off-by: Yang Li --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 222937d512c4..b6c2fc882f21 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1528,7 +1528,7 @@ static void add_hugetlb_folio(struct hstate *h, struct folio *folio, } folio_set_compound_dtor(folio, HUGETLB_PAGE_DTOR); - folio_change_private(folio, 0); + folio_change_private(folio, NULL); /* * We have to set HPageVmemmapOptimized again as above * folio_change_private(folio, 0) cleared it. -- 2.20.1.7.g153144c