From patchwork Wed Apr 17 12:02:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10905295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A5E91390 for ; Wed, 17 Apr 2019 12:02:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1691C289EA for ; Wed, 17 Apr 2019 12:02:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1450228A3A; Wed, 17 Apr 2019 12:02:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94C65289F6 for ; Wed, 17 Apr 2019 12:02:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 49D586B0003; Wed, 17 Apr 2019 08:02:13 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 44B9F6B0006; Wed, 17 Apr 2019 08:02:13 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33AF26B0007; Wed, 17 Apr 2019 08:02:13 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by kanga.kvack.org (Postfix) with ESMTP id 14A616B0003 for ; Wed, 17 Apr 2019 08:02:13 -0400 (EDT) Received: by mail-qk1-f199.google.com with SMTP id s70so20597806qka.1 for ; Wed, 17 Apr 2019 05:02:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=C1P0rpBJ7wl0XOwuJrerM17/6mon2qZPo7eocnyL9AE=; b=PXaOLcEYdHSUuxAb1VEnEBUnsHQVLcLMZVv7bmsk0XzmDUdm5xlkzECDww6Yt7VHOw xwZPAe+2YzDBF2O/MKSMHd+c68ZfjpiUNAKPa6WijOX8TAK2DPi6DNgNA8GDWkpjlpBl eK61XqrUYgnP354sTHChe7IveGCbElqCDAxsDuJLAGoyoFFDO+upkrYhEIRqxupFUNnY NN0PeHYPV6MKbm8sm10Mg/MldLjXWz5wIZbmKDoLSbIA/zWUbwKCfyPZRkRjAGBhMSzs BvO9zuoHHPOxzhbkInkAXX8zWEXHmiJabuPzZuq29fhpiHhGCS3nI8FAbvVIRii2OpWl zMDw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: APjAAAX5Qzp1AnJsSYefsNOhUcIe9a9Bb1ixE2gVxfbQK9YTGB5KyoBs Wq69X2ihpDvo4ANxlI+S2V+od6ieM3uT9/nJjSwBl1BChciGGJoXkfFnCYB+OUl82kGYZMk3Xr0 wHqT79zzwJ/ICpyir6uutBAdX4atofVGmRtOrE2xx+rhH78ANAjsT5clqxjbgQQc22w== X-Received: by 2002:a05:620a:108f:: with SMTP id g15mr66607803qkk.61.1555502532764; Wed, 17 Apr 2019 05:02:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY/BUMrF3L/7/O1b5WtFlKSkbB/xXRCBa6anUd27LvjbU6hUwD727Dxpiv4Q1z0vLZr5Kk X-Received: by 2002:a05:620a:108f:: with SMTP id g15mr66607660qkk.61.1555502531447; Wed, 17 Apr 2019 05:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555502531; cv=none; d=google.com; s=arc-20160816; b=YeGWDjMvZn3WdGmzohIQ0aWV6M2ZdAMJzLSARzsmLSTngYBlAluBxxIN0IbwgnZEaE +EX1imuCfOfrVWiVyhPDOpm770+nPnZz9LsnpzazQQ8gegW2n5ZiItmTmDZPVQe3Qomz nflA6e+vgWas+DOwWzrLuTmoJ6cPYGnr1MVRYJDNIvpD2zrUntejdCfvCodJmnXYct5D 34sIOFfxKSqZpCc47ZPc+14/GuSR90ixOZRuEcNbGe9i26ccZj9jOZt7taUVaaIBFU3m M3VEpq4AJL6K/8gW8gARjtkAkXig+cBDgYCAtBaq+bv+v1T7ec2i4ORURX+CLFSqr1qN t1eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=C1P0rpBJ7wl0XOwuJrerM17/6mon2qZPo7eocnyL9AE=; b=LWIingrcK2StoCHjOzQKk+HflBuQEtCP/mlPlJ/hCC8sffaXVuEqnFXcVm7z+I/5M9 uZzkWyO/U0w198MACfbdvqKOO76rOPLXmI6jeHatwyevzXBHEp5NZGbJ8Zv0bCPTvg0Z /kgLO5G+H0Kqx8S2eAJ9pdk1LxksCZ/YHkSnFC7lUyRRh0t9YpkpXjK0Vr+urV3IXveX Pq7SDwoLCPMVLJcETCjYoF6uWBz/bQDcYsrAHFNSxNibJduyghpMzbKMKkR9X4Largf1 429FBx1cFJ454FHeKYoNYVLun5e4+OM71hN14vefUEe8e2IYnFfcIk1uyyZ965UZ/vkB +DoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id z36si1153624qve.93.2019.04.17.05.02.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 05:02:11 -0700 (PDT) Received-SPF: pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5DFB8C060200; Wed, 17 Apr 2019 12:02:10 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-141.ams2.redhat.com [10.36.117.141]) by smtp.corp.redhat.com (Postfix) with ESMTP id 216905D9E1; Wed, 17 Apr 2019 12:02:04 +0000 (UTC) From: David Hildenbrand To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, David Hildenbrand , Andrew Morton , Oscar Salvador , Michal Hocko , Pavel Tatashin , Wei Yang , Qian Cai , Arun KS , Mathieu Malaterre Subject: [PATCH] mm/memory_hotplug: Fixup "Release memory resource after arch_remove_memory()" Date: Wed, 17 Apr 2019 14:02:04 +0200 Message-Id: <20190417120204.6997-1-david@redhat.com> In-Reply-To: <20190409100148.24703-2-david@redhat.com> References: <20190409100148.24703-2-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 17 Apr 2019 12:02:10 +0000 (UTC) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP pr_warn with "%pa" expects a pointer to phys_addr_t or resource_size_t. So let's propery use resource_size_t for the start address and size, we are dealing with resources after all. Cc: Andrew Morton Cc: Oscar Salvador Cc: Michal Hocko Cc: David Hildenbrand Cc: Pavel Tatashin Cc: Wei Yang Cc: Qian Cai Cc: Arun KS Cc: Mathieu Malaterre Reviewed-by: Oscar Salvador Signed-off-by: David Hildenbrand --- mm/memory_hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 093f6dc66f46..328878b6799d 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1800,7 +1800,8 @@ void try_offline_node(int nid) } EXPORT_SYMBOL(try_offline_node); -static void __release_memory_resource(u64 start, u64 size) +static void __release_memory_resource(resource_size_t start, + resource_size_t size) { int ret;