Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp390071pxv; Thu, 15 Jul 2021 06:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEqCxNBV/c07sbxK248B38HMDfqF5njdptlU8pwZfmXteyNnyVAunbojjFapOH349UwYxf X-Received: by 2002:a17:907:3e22:: with SMTP id hp34mr5711645ejc.334.1626356509119; Thu, 15 Jul 2021 06:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626356509; cv=none; d=google.com; s=arc-20160816; b=Bmd4vJMBQl52wZP6sSZNUV2yPBhNhbzllAf5O1qiBQbsGCQDgA2+6cx1eU5Xos6IHx 5F5M+8aigyDxRor5Hcmav8SyE69G2rAv3D0hpFdn+ocM2mJsgfy0oWMmIWujjYcKjch2 jIXG/QzHhBilfEWaMnVujrwRg3knG25Q2xJyCbH5BKMyfa7AtOcFys3a4MGlzPSbdxPU /mjP/O2nrRt29nBr7Rn3u7PhGX79naRGps0uubZxZowcQchFLmqKeirlotKGAQiZdAkf rlqe8PnlCsxmTbRpecIM3SQ4aB+8GB7/1t2d06fU1JyKKXXojPmw86jkPvpZnWzpeYl1 7ENQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=MLv5bgPyPZ/99VSlXVeSEdpKHTQqgo5Imyesbas7viQ=; b=VtNPIumA/GPX8ETsC6OqS9nWobMa2OlrzGTblaWAuT9mAinTHUnfygNU1HloK5ix/y rAlXgW2opFRdPtzJXmONHIbJ2bE1RFNoICV9ifX8ejTltZgZOzJjBDCiZ7O48xWufqcb imL6hhp5B63xzMS8hkNDK09KY8knxKiIYQ4xrKIf5IZ2GG1uT6rjk8rLgjfbwXOgLdUv xpNHw0BMuPz/FhaD+cVKtR4SQr4THLIrGs4vNjqkzp6ZV/AaZkgTdYI0VwrwMRoQqBz3 I5u0r5jgiQF8qx9SYa4stEqCopTRnkLO4YLf/tpHGq3Dps7jadilbu/pZH4m86bOBa/3 McvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ZRmRE3+N; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=fpQjexCL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si8665967edj.155.2021.07.15.06.41.26; Thu, 15 Jul 2021 06:41:49 -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=@suse.de header.s=susede2_rsa header.b=ZRmRE3+N; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=fpQjexCL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234387AbhGOJez (ORCPT + 99 others); Thu, 15 Jul 2021 05:34:55 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:50120 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233487AbhGOJey (ORCPT ); Thu, 15 Jul 2021 05:34:54 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 18EB81FDFD; Thu, 15 Jul 2021 09:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1626341520; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MLv5bgPyPZ/99VSlXVeSEdpKHTQqgo5Imyesbas7viQ=; b=ZRmRE3+NP6OfGMaASjmKDYmhh1Gc35DxuyIw8ArLNDXiXvyyIo8fGraZqIvotFtEkRQTq2 cmpPSexA+56IoUpEIUb29TWEAkx3S1sfpkoajCXovaxM6ILRkFOhZ4ltDx8bRxd6xY9+fB QJew3j+y5JAYfdy3FaHZkAkz4KVlxsg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1626341520; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MLv5bgPyPZ/99VSlXVeSEdpKHTQqgo5Imyesbas7viQ=; b=fpQjexCLwxaDMk2nuloW7K6GAO0D5g32O4gvc0vy2yTSNi36N9VtVQxeVqctkbHVEhHD64 +/8XMN8CxGDhbcBQ== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id B0AAF13AB6; Thu, 15 Jul 2021 09:31:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id WNi2J4wA8GBcBwAAGKfGzw (envelope-from ); Thu, 15 Jul 2021 09:31:56 +0000 Date: Thu, 15 Jul 2021 11:31:54 +0200 From: Oscar Salvador 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 , 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 Subject: Re: [PATCH v1 1/4] mm/memory_hotplug: use "unsigned long" for PFN in zone_for_pfn_range() Message-ID: <20210715093146.GA759@linux> 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> User-Agent: Mutt/1.10.1 (2018-07-13) 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 Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3