Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1905167rwb; Thu, 17 Nov 2022 03:58:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ScvH3YeJLhNtQYoDljVFbTzmcoQxY8OEjopHtvq9RS+EHQTesyMqvfdDrVJZQc3WbXAeu X-Received: by 2002:a05:6402:17d1:b0:463:ba10:9e2d with SMTP id s17-20020a05640217d100b00463ba109e2dmr1874940edy.43.1668686321987; Thu, 17 Nov 2022 03:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668686321; cv=none; d=google.com; s=arc-20160816; b=XS5miWC1xzmoz+e1MArRWqtMy94E3W3amzzo4MLThhbZArz/GjlPDqyJTaWMOj06L8 X8SPqTTTOj8f9h5Bj5wITZamap9lvVYbL8DsCkARKAKLLcM7iiHzh28LToNy0bVo0acw f4Yj3UQ07iPOfLGmgvge8W5nEJ6oWMRWhDhRT9dom9CYk16PQUzsDZhugI4mVXY/39gE aoAezMfD8BpEC1R+3o17Hqk4OzggEmNjEns0rAHJzkqMupyjF6bdyZ32GuSAsLct/hUx WjaCLsUA/vfj1Fdpbtbo7ib+CU620sdfmwmM/ANzsZY29oJwSKGjM1sKmatP8/LRfulB aeeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=VkDO0tN0QVhq9+4ytiHH1Q+NQsFL/NHOuSBEb6Cn4GU=; b=SA4ga9BMjPf0nTNik/igqKr6GWU9enb60NXBW/yBcPeLFkds0NwIJ+40YlBUYjM2bJ KvoM7qy9ogMlzjuWqndaBuz1ycOdnvRlIoApiANkN+PP+hUIVidevsAaan6INqm8IpzJ wBQKnSbu+iwRPkXbOUJZo4zXo1duMXFVp4VEOv/ZV3ivg50LKRyyDl+z/6lTuzfuzFIm PVzeIaWdfYMxtCw8lm9HW08EwSqzYsuCjurxAnHYGNWDsadeb79T023OVkTM+Twrwz3Q Y3xWO9nxw8g6Nyjae7QzPLRsMw1sMUC8qe1nJRcxqEJRDpnhCk5Dv5vqX/a2Jp04+M3U 9QBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fNlklGim; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o2-20020a056402444200b00461f9648c7dsi640900edb.422.2022.11.17.03.58.20; Thu, 17 Nov 2022 03:58:41 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fNlklGim; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233742AbiKQLuH (ORCPT + 92 others); Thu, 17 Nov 2022 06:50:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233886AbiKQLtf (ORCPT ); Thu, 17 Nov 2022 06:49:35 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1BD310C6 for ; Thu, 17 Nov 2022 03:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668685706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VkDO0tN0QVhq9+4ytiHH1Q+NQsFL/NHOuSBEb6Cn4GU=; b=fNlklGim0uUS/UAACh64KERu17mjwMaf3cgd8MXEw9m12N68kgyCoOdesXVJh9izX6gTk/ 99QpsoyBLXks1/Orf7pF3qjedJenvf5+tzH27nI6L9qb4GG59AerPbQ1kpA8WdmzX19LfR e496LKayy2nResyxDLF4kxo5MEeLmYQ= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-231-KDlrVyq0Ol6licUxnymqYA-1; Thu, 17 Nov 2022 06:48:24 -0500 X-MC-Unique: KDlrVyq0Ol6licUxnymqYA-1 Received: by mail-wr1-f72.google.com with SMTP id r23-20020adfa157000000b00241bcae980cso15528wrr.7 for ; Thu, 17 Nov 2022 03:48:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VkDO0tN0QVhq9+4ytiHH1Q+NQsFL/NHOuSBEb6Cn4GU=; b=a/no2Ow4BdBO96/2XabSSEt9zVY9jCnAchGU3m4pbXAxJz4yyrsH/bTyrLR9OHW9nu +cgOhqwajaNH15XIIUx3y68ETL6XOHIG1tLYozdmVFUUQctM3FfNpGMiVhcSOV/JMTRN qdc3wEskT4qLB8PuyvVO0OVCEnx/n8BQzrYo+/16+0YtWZxQFU45UqqnoCD+enqwRgfc GEbwBY6YOK4yc79hlgY1bQ75vSzVxVMIcDzjixQsCPq/X8ry9zRliijNw4lszp+E9mS1 PsJ5wkXLHWRNUQIeARs1qZvvY3gVac9krjgSPY5LQ3+geLTPRyIMaUnh0UHRcBV4ny+8 +Oww== X-Gm-Message-State: ANoB5pm2awpJ2fatuBIqCe9PPxWO/ZdroLjfnBMo+u49bblWchRDnJCW eUEuHsPlqQpj41ybXPEbgZVg3Vlx9kkIzHtJpwhLwrSfQ9wPlfvXzLCGpSTQBh+0hZTkogGIYCh I5d8PPMaP9GoRXb/+qveznE5A X-Received: by 2002:adf:e4cf:0:b0:241:a047:d011 with SMTP id v15-20020adfe4cf000000b00241a047d011mr1264609wrm.258.1668685702239; Thu, 17 Nov 2022 03:48:22 -0800 (PST) X-Received: by 2002:adf:e4cf:0:b0:241:a047:d011 with SMTP id v15-20020adfe4cf000000b00241a047d011mr1264600wrm.258.1668685702040; Thu, 17 Nov 2022 03:48:22 -0800 (PST) Received: from ?IPV6:2003:cb:c707:5200:39a9:b834:27c1:4ede? (p200300cbc707520039a9b83427c14ede.dip0.t-ipconnect.de. [2003:cb:c707:5200:39a9:b834:27c1:4ede]) by smtp.gmail.com with ESMTPSA id l8-20020adfa388000000b002417f35767asm824276wrb.40.2022.11.17.03.48.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 03:48:21 -0800 (PST) Message-ID: <7379a953-5a87-7978-b413-3d52b9b55795@redhat.com> Date: Thu, 17 Nov 2022 12:48:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH -next] migrate: stop using 0 as NULL pointer Content-Language: en-US To: Yang Li , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20221116012345.84870-1-yang.lee@linux.alibaba.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20221116012345.84870-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 On 16.11.22 02:23, Yang Li wrote: > 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); Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb