Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4589038pja; Thu, 21 Nov 2019 22:24:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwY8/2cREIm264k7gqAarJUazgUzkheNCwYdR9IYy/I1ghygPamfr+Ut3PVYIl9Gi2LufXi X-Received: by 2002:a17:906:32d0:: with SMTP id k16mr19121593ejk.155.1574403855722; Thu, 21 Nov 2019 22:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574403855; cv=none; d=google.com; s=arc-20160816; b=fHIQaWA/i2k3HAbyQ1nzmpNkhPMqt+5oBpiegrAMRdA04M1kzUAODqu8Qf10kWi/Cn 85LBMs3BBrLjSCOFuIFgUczLv9NWrnrTcEKIdFWE9dzkvk4913ssnt4r8w4sRrxpM4oI xlVQ8UIkkp6QErb3hxfuBB0+uartXwYgsmXmix4C2xXpE2UQLBq4/xWwuT9m8RCJrBdC SxK/VCUMeM6XCQztXo0i0tZ+XwtxEYg5ms4U59IU/xvkJX1YIpjY5kvy5DEQZA5ETaU8 R+hCA1hO+2FEHJsb3l9Ek6mVhKD2XDVktawJ2OTXPdYIm6EYehXXLfJZCla6VUwpduoY WzbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5JZuXjgnQxKVKLfBsXkT3+b1XqiSNDP97s2ERpROkDY=; b=b2000iHxa3zOLPaxsO5A/AXQbVYEBpAydlooFDhZA8F+NZQUM2sWD4+kg9psmSdeoA CcNHqqJlCaElG42cXiNXfJhzcUZ+oy4gzNNodcjksRANuv6anFgFzfLUIaBGFqJCegxE bEyi4U44sSX/XhlYxl5SwB207splPbE1LSIp2Hi90VaIJXbyyJoi+AIby+WaXP4B6olh A4c63b0aO81bVUNzAZ8rnJoZZGI0onNrpaGhEJgqLwszXWxkFlFE5PXVcO7ftTwdtlVD u3sVNuLToG2drEcYCSOnigvvg6JhG0upk2WMyK+1d+lKVaPu+PWxI/qkAGeW7C0gcYW6 xwzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Eh4Y/MZn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a26si1983265edy.38.2019.11.21.22.23.52; Thu, 21 Nov 2019 22:24:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Eh4Y/MZn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728454AbfKVFwO (ORCPT + 99 others); Fri, 22 Nov 2019 00:52:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:57670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728425AbfKVFwK (ORCPT ); Fri, 22 Nov 2019 00:52:10 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E20BE20721; Fri, 22 Nov 2019 05:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401929; bh=/PKAD3AkTjyL9c8QHOk65inIyuVXFHetGmXfEQaBdZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Eh4Y/MZnnh2MimFV3TlPe+Cup/L4JvqYCsNhjbQFOiCZ6IF8yz2QJbb2b/c2RNlw2 71t/OLKxnxH7rbvw9bdGMelERLssJZWDBsOdBTrz5YGahi+HLrlwFI9SMc4710H33X Ef5NLgtwiDrIukvxtYBkZlZYS5h6YUdm6WmPYlk8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wentao Wang , Andrew Morton , Mike Rapoport , Linus Torvalds , Sasha Levin , linux-mm@kvack.org Subject: [PATCH AUTOSEL 4.19 156/219] mm/page_alloc.c: deduplicate __memblock_free_early() and memblock_free() Date: Fri, 22 Nov 2019 00:48:08 -0500 Message-Id: <20191122054911.1750-149-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wentao Wang [ Upstream commit d31cfe7bff9109476da92c245b56083e9b48d60a ] Link: http://lkml.kernel.org/r/C8ECE1B7A767434691FEEFA3A01765D72AFB8E78@MX203CL03.corp.emc.com Signed-off-by: Wentao Wang Reviewed-by: Andrew Morton Cc: Mike Rapoport Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- mm/memblock.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index 237944479d25a..bb4e32c6b19e9 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -1537,12 +1537,7 @@ void * __init memblock_virt_alloc_try_nid( */ void __init __memblock_free_early(phys_addr_t base, phys_addr_t size) { - phys_addr_t end = base + size - 1; - - memblock_dbg("%s: [%pa-%pa] %pF\n", - __func__, &base, &end, (void *)_RET_IP_); - kmemleak_free_part_phys(base, size); - memblock_remove_range(&memblock.reserved, base, size); + memblock_free(base, size); } /** -- 2.20.1