Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp708471pxv; Wed, 14 Jul 2021 13:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBUXcbf0VPhPe8QHJlPzOgjaMvxW7tkJgWhinbMavcxlkMuF/AfZFoXIvNIwGQgV1fjEMP X-Received: by 2002:a17:906:f8d7:: with SMTP id lh23mr30234ejb.485.1626295038556; Wed, 14 Jul 2021 13:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626295038; cv=none; d=google.com; s=arc-20160816; b=0mGxhD7hR7UxVcQ0XtvJu1B/abgeRxoQcaAqTfp2mGfKNuwol5xCZWqWaB01VYSeFt Fm6WOZ+pCBuO+eSVUDFXoryY+Jz/owYnrJhroY79vnsq26rWtez4TpJ2RuOF4eALs4dT 5rfJvQZQ8SkzmsiFwAO5gn7gA+z2mujnEWyEQZFGawUV4ob6zVuz7rPawbtJxxbgiRUb dNm/eVifqCRGDN+mhobIt9RUjaJLKwfqxSUuq6CiORoKi3Goi8pIPlr8DWdRl7d1deOW W9qLHOXhMIZuSie5wdQgnWoHuEZ9LeYPWKxHHYgNh58ChRpLbe3RvgNIoWX4G3xfhYI9 TPrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O91ChT6aq6gFj1s1eeKJPhJgYPpsA9fr7zrKDQPlVMI=; b=k7VOESTHULaH1ifLABEdyQp736pCu443k9tXr85lv7Yc3FdmRXGFF3GQFlFzthD00z 0ayxD51qLq1hNQiRTt1OmZVomSQplGuJwCnwoueX4WE9T9XUxbX5S7CCH44b9Osestp5 IbySPzgCYtcYpHiUOG9W0qsJjBqhGT68wz2J0boOkBJu7KaBJxklHzqiNcDvqNERIABJ e2M3oewkexfCeNxJH5KCrbRGd+ZMgydUdjwVOEA2s4Ylv7gQQUMeMzYpkwX8cXFBF0WP AJDtUFRlQM8p9BFuG1zdaETFPw/3c+s5mejiY8dsYCcS30bb8M2iVh/uvrRMfr9F+5B/ uAXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=F78hDwxT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si4892788ejd.239.2021.07.14.13.36.54; Wed, 14 Jul 2021 13:37:18 -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=@ibm.com header.s=pp1 header.b=F78hDwxT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235632AbhGNURj (ORCPT + 99 others); Wed, 14 Jul 2021 16:17:39 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:62806 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbhGNURi (ORCPT ); Wed, 14 Jul 2021 16:17:38 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16EK3g8i084171; Wed, 14 Jul 2021 16:13:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=O91ChT6aq6gFj1s1eeKJPhJgYPpsA9fr7zrKDQPlVMI=; b=F78hDwxT8p5Hi5ea4iRmX5YeibVAKo+ISPXe/ejlEYJV1dC3zfaPdt/8SfrQMnToMzqc PTp7Sxg7CGgJ6765F47q1xHtVlrHlq/ZyO6D5+DhL+FXOCde+9CJnqUYe/odcWPC1lUR K+cZ58Nhyy6TsLLhwXT6rLIfcS5swNDkv2qnUtRdzr1VY9DsFk51ZAW/psKjI0wy/mBi DGzhSg+MEbCzQUNlNKfFY01l/RCorJ2BBWBz8yN1IA+VM2nZrnYHxCXyZEqseij9o3qe /ZmBVBPct3F4dItCcdBCX4QhVoLrXNIRADXchr2nSZer+zyoUCgWhmBMCyJ7ImRY2JLc ug== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 39sc8kfb2g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Jul 2021 16:13:24 -0400 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 16EK3sS4084604; Wed, 14 Jul 2021 16:13:24 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 39sc8kfb13-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Jul 2021 16:13:23 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16EKB4nX032501; Wed, 14 Jul 2021 20:13:21 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03ams.nl.ibm.com with ESMTP id 39q3689x6g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Jul 2021 20:13:20 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16EKDHkb36307240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Jul 2021 20:13:17 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CCFC7AE051; Wed, 14 Jul 2021 20:13:17 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EC7C0AE04D; Wed, 14 Jul 2021 20:13:15 +0000 (GMT) Received: from osiris (unknown [9.145.80.156]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 14 Jul 2021 20:13:15 +0000 (GMT) Date: Wed, 14 Jul 2021 22:13:14 +0200 From: Heiko Carstens To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, 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 , 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 Subject: Re: [PATCH v1 1/4] mm/memory_hotplug: use "unsigned long" for PFN in zone_for_pfn_range() Message-ID: References: <20210712124052.26491-1-david@redhat.com> <20210712124052.26491-2-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210712124052.26491-2-david@redhat.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: _R4J7Ka4suONfylmv2kX6PD4cpzO6szw X-Proofpoint-ORIG-GUID: NPoolV9OQ2VwpTmyT54T1Ri1bj2r49ZC X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-14_10:2021-07-14,2021-07-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=805 spamscore=0 suspectscore=0 impostorscore=0 clxscore=1011 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107140119 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 02:40:49PM +0200, 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 > --- > include/linux/memory_hotplug.h | 4 ++-- > mm/memory_hotplug.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) I'd propose to add Cc: since I actually had the fun to try to debug something like this a couple of years ago: 6cdb18ad98a4 ("mm/vmstat: fix overflow in mod_zone_page_state()")