Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp390068pxv; Thu, 15 Jul 2021 06:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCqQx/IJuTs73KrDLUKjFukEqMCUpNkQuv7L7ZxHpNXsIieUHbxr++fMdDpIPh1FhHQQTj X-Received: by 2002:a05:6402:51:: with SMTP id f17mr7079308edu.359.1626356508921; Thu, 15 Jul 2021 06:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626356508; cv=none; d=google.com; s=arc-20160816; b=zPTuUJf1R+38v06cmjFx6Up87HRUeu7V39+sC86js0PRUxdUQiwISPv47qnRdaL8Mv wwoE9u7Lv4EtVZQlDrJav3G5KGWKSDh27KFJb1HY6jk0f39M0uQBPuNwzlf19mp6eQNy 7MwHc8sNfkiWiK/YszFCIjLxw54m7MQkWPhxxlbjR9GtVWAq8d8ZKfu3QVgoW311qmWC /W8gzjWE8yUwhEF/Ui+aAamnmwlCNV/09luK2euWOnU3YisBJd2uf+/RUL8YLWmIbqYJ QBoZHhPitAVM9JBNdBj+/5XyGfLRVE+A/fn8SbHiOiiUkiCgcOrU+d9BQu/a5qdizjNk mggA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QXkiqMT/glRYwyHPQoyx3aDo7nh/1KZKgmUiqtcAPDY=; b=H1XCYEzkqyCnJ9dtxKi4L0Q3/3LA+lQELu8Q1OIec9LVFvfalxMFbH7apcbUL0en7R CVGTlVCKeKi5g9juXy8g35BjSHF6LXiAY/ezavhZKYDeZlJroSGnCdUU+eVR1Z8x00se V8XTzRWMhh2k6S0+R7j0Rj32WxdbL7M5WvJ9GrujlaI3MC5yPPbaq97UvBDiFuryjl0D gH487gRnuGqSkQEy3o3jAN9eaSmylg5uTpubay1wG9wJg0BMKGPwTTSRrEhdweJLC3Pq zVOphYvgBHvOFZapybv6y8t03fmxnGRIHAcAEFQ1NmiPKt9YJU6khnh9En1uaG2JVmHf 8wJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=MzDY4nkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y94si7730695ede.150.2021.07.15.06.41.25; Thu, 15 Jul 2021 06:41:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=MzDY4nkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234510AbhGOJiO (ORCPT + 99 others); Thu, 15 Jul 2021 05:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbhGOJiN (ORCPT ); Thu, 15 Jul 2021 05:38:13 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C7B2C06175F for ; Thu, 15 Jul 2021 02:35:21 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id j199so4644457pfd.7 for ; Thu, 15 Jul 2021 02:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QXkiqMT/glRYwyHPQoyx3aDo7nh/1KZKgmUiqtcAPDY=; b=MzDY4nkv0QsPl3RRx5bPYDTbkke6SLjvc2oe/RSnFjWPoG5T8dKKOpymsgn9qnMEo5 sHqxBMigOcqDJef4hC+9JXoGQOaC8weUX9BDwb4LL9Bd7P0Krz13fdt/z7yzOy3r9d5S rG3d/tO8xgT4XztexfXgIp3IDYBeGN9W+twCbHxAaE97054zyI195LlstTaa9miNyIXM ZtVHwqJ28F/LP7I/1SsMcG0zjwTSwJpQ0xkHBDByyigddb4j1A3R2obUCxlnJQF5ykQN Ztp7XfV6waqivs0muPAXuxlF2/iTY49SqqzHdAHr2xrNm0uZ88d8P0soxXfEf0udttiW YxVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QXkiqMT/glRYwyHPQoyx3aDo7nh/1KZKgmUiqtcAPDY=; b=MTnginf1HgDp5MTZabb2oFEHFmw7U/3DsIDojs7SCaqIWQLldj94vlSw2we0+Eb9hE Luw92Adbmw1RVoZ3dd36aCe2CL0+ntA+hoebGfUReko1+gszIjGWAM53IM/MeKPkKeTY VahoIITn3rMf7TPI1Nt7Ohwd20gR7gtbt//H9T49vfHPtzGbFo6+1h8Q844ig5/6cEHb ny/3clzNFc0VVdE4a2ARYiV0NfJUt8sDj58J+oCj2a8brcArkvMmtLxLxuGT5F5IUQzG Aqjq7tcmPxnNCvU7FvHUXebDqKgIpzuY0RkAqk3ikWWEenHVfnINlU+MykgjZm3lBoeC HDdA== X-Gm-Message-State: AOAM532puRFOV6dboIvB3tEuChVXWU3ZMySN0buV63x0egUge4DL2xk+ QQpTlpjwyGJ0+71AQECgLAfH+EdsEc1xxTqu2l+PB2cKlhY5bQ== X-Received: by 2002:a05:6a00:1508:b029:332:3aab:d842 with SMTP id q8-20020a056a001508b02903323aabd842mr3528446pfu.59.1626341720657; Thu, 15 Jul 2021 02:35:20 -0700 (PDT) MIME-Version: 1.0 References: <20210712124052.26491-1-david@redhat.com> <20210712124052.26491-2-david@redhat.com> In-Reply-To: <20210712124052.26491-2-david@redhat.com> From: Muchun Song Date: Thu, 15 Jul 2021 17:34:44 +0800 Message-ID: Subject: Re: [PATCH v1 1/4] mm/memory_hotplug: use "unsigned long" for PFN in zone_for_pfn_range() To: David Hildenbrand Cc: LKML , Linux Memory Management List , Andrew Morton , Vitaly Kuznetsov , "Michael S. Tsirkin" , Jason Wang , Pankaj Gupta , Wei Yang , Oscar Salvador , Michal Hocko , Dan Williams , Anshuman Khandual , Dave Hansen , Vlastimil Babka , Mike Rapoport , "Rafael J. Wysocki" , Len Brown , Pavel Tatashin , Heiko Carstens , Michael Ellerman , Catalin Marinas , virtualization@lists.linux-foundation.org, linux-acpi@vger.kernel.org, Andy Lutomirski , "Aneesh Kumar K.V" , Anton Blanchard , Ard Biesheuvel , Baoquan He , Benjamin Herrenschmidt , Borislav Petkov , Christian Borntraeger , Christophe Leroy , Dave Jiang , "H. Peter Anvin" , Ingo Molnar , Jia He , Joe Perches , Kefeng Wang , Laurent Dufour , Michel Lespinasse , Nathan Lynch , Nicholas Piggin , Paul Mackerras , Peter Zijlstra , Pierre Morel , "Rafael J. Wysocki" , Rich Felker , Scott Cheloha , Sergei Trofimovich , Thiago Jung Bauermann , Thomas Gleixner , Vasily Gorbik , Vishal Verma , Will Deacon , Yoshinori Sato Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 8:42 PM David Hildenbrand wrote: > > Checkpatch complained on a follow-up patch that we are using "unsigned" > here, which defaults to "unsigned int" and checkpatch is correct. > > Use "unsigned long" instead, just as we do in other places when handling > PFNs. This can bite us once we have physical addresses in the range of > multiple TB. > > Fixes: e5e689302633 ("mm, memory_hotplug: display allowed zones in the preferred ordering") > Signed-off-by: David Hildenbrand Reviewed-by: Muchun Song