Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11015rwb; Tue, 15 Nov 2022 18:10:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6y4H+anXSsxHNjPApSshU7khzQP0oNO/Hn7PsjIdJn1Gi8zh4Os8B20mFk9Zv4vkroLfNl X-Received: by 2002:a17:90a:aa11:b0:20a:cbb0:3c9b with SMTP id k17-20020a17090aaa1100b0020acbb03c9bmr1326298pjq.81.1668564652426; Tue, 15 Nov 2022 18:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668564652; cv=none; d=google.com; s=arc-20160816; b=FbC9IIa4vCLnb0o4aQayKmP4IX5bkn2MVNHqD7exM3iwL08zR8MrK5eYizw4H/adse nvUGptDjzJPJ33bMzcOBSbQeSB09jZZtZbL1Oe0gg65Ocp2gXhpxh+fiKMws0LTPqk26 oNkKBXsB1GUUMwzRm10o4fJs8CC8OS7eAzIvqdM/V4G5djWAGSEkfNEMqGOGRk3iBjuz 5X6hJH4NTB/aitm52O0RC70YR7fqxUF8H8fVBlJLnV6Jf4YNyjLBYW5G1WbaEfHh+uGj bp/tDZhFNw9MW1zp+kjxnoDrR+V9GA0hqd90+o42CkslxB7dDcu6QD+Va/6HGK2VO/NU QH9g== 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=8RCXuZtWtjxoBVX8iAH7grfRaF1YM2xqsuPSC+MDSsk=; b=Uvu1xThYEdtgXm16cTwe7exea3VkWSfO8m1i16Huh80sH/KGdz4D0N5L1p3rarRcUf VQ64y/2/mE3lIxEasbpG8JZNxMMZfoeifgwJ2zJAxiRvxLWX/HdVIR/bQM3AwRNhu1Pd lo54mzhcVdf2w6FrEtvgFjpdC2my6PrnO83fu0X7H6ooyTt/rEEyhtlWTzDBK6/5BE21 dznaULpmnDHkr/4roXdpWg2i1uVwk24kT5wdwh59F0Sb7sbKIUSAitWIVspeYuJ/YLmV 5zMmgU2IjluYsXCRPCppD3U0c+j4phJN/belBovt6k9YyNSVEIujlVCPY/SelDBq1J3C uFnA== 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 n3-20020a638f03000000b00476b6fa2963si1421293pgd.599.2022.11.15.18.10.40; Tue, 15 Nov 2022 18:10:52 -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 S230507AbiKPBXy (ORCPT + 90 others); Tue, 15 Nov 2022 20:23:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbiKPBXw (ORCPT ); Tue, 15 Nov 2022 20:23:52 -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 E618FC39 for ; Tue, 15 Nov 2022 17:23:50 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VUv8ln1_1668561826; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VUv8ln1_1668561826) by smtp.aliyun-inc.com; Wed, 16 Nov 2022 09:23:48 +0800 From: Yang Li To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] migrate: stop using 0 as NULL pointer Date: Wed, 16 Nov 2022 09:23:45 +0800 Message-Id: <20221116012345.84870-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/migrate.c:1198:24: warning: Using plain integer as NULL pointer Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3080 Reported-by: Abaci Robot Signed-off-by: Yang Li --- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/migrate.c b/mm/migrate.c index 15dc56a3da7a..e50b3c42e6ad 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1195,7 +1195,7 @@ static int unmap_and_move(new_page_t get_new_page, return -ENOMEM; dst = page_folio(newpage); - dst->private = 0; + dst->private = NULL; rc = __unmap_and_move(src, dst, force, mode); if (rc == MIGRATEPAGE_SUCCESS) set_page_owner_migrate_reason(&dst->page, reason); -- 2.20.1.7.g153144c