From patchwork Wed Sep 15 00:53:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 12495213 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11A90C433F5 for ; Wed, 15 Sep 2021 00:53:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B39B761184 for ; Wed, 15 Sep 2021 00:53:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B39B761184 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 54D9D940009; Tue, 14 Sep 2021 20:53:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FD9F6B0074; Tue, 14 Sep 2021 20:53:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3ECE7940009; Tue, 14 Sep 2021 20:53:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0194.hostedemail.com [216.40.44.194]) by kanga.kvack.org (Postfix) with ESMTP id 317EC6B0073 for ; Tue, 14 Sep 2021 20:53:42 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id DADD43949F for ; Wed, 15 Sep 2021 00:53:41 +0000 (UTC) X-FDA: 78587985042.09.9F9050F Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf07.hostedemail.com (Postfix) with ESMTP id 9DADE10000A6 for ; Wed, 15 Sep 2021 00:53:41 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id BE6276103B; Wed, 15 Sep 2021 00:53:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631667220; bh=QfAiGsW60lLRZ4WZ3voUQCHotfWarlUyocpqA9j3zHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZjyDzkqNUP4Dpo0RbzbUhYtTFDIgmyJBQ8lmQsggtTEPYYmE8O5I++FysDZd/oa24 UfvE8wlpv8BOPrMAnYv9bUWaT6QAUWQahihDqZPD9EehDLeuRHOpqfc8ceRkqjygep XODdfm8SmtzqQvwp/bLcD+ZQl6Ve/jhfYmlHunUM9JUOaUVd4bDtL87hBJSHRskMgp FfIkqxSm63j2Eix7oM+J9NO+0YF2BgeGNUS7jXX6g970OKfg1fFz4dDqgGR+AOv7bb +1CuZgR+ujEt6Vahp5MN75C6soVVNAxX3N4VmTi5gZxnKnpUETHNYq30Coe+aaOFxA HxyLYiXznP/fA== From: Masami Hiramatsu To: Steven Rostedt Cc: Linus Torvalds , Mike Rapoport , Andrew Morton , LKML , Ingo Molnar , Masami Hiramatsu , Linux-MM , Vlastimil Babka Subject: [PATCH v2 5/5] tools/bootconfig: Define memblock_free_ptr() to fix build error Date: Wed, 15 Sep 2021 09:53:38 +0900 Message-Id: <163166721835.510331.4931010992364519157.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <163166717752.510331.12843735095061762373.stgit@devnote2> References: <163166717752.510331.12843735095061762373.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 9DADE10000A6 X-Stat-Signature: xxxdrx7pd5wkot55hbopufwo3bjtzjfx Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ZjyDzkqN; spf=pass (imf07.hostedemail.com: domain of mhiramat@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=mhiramat@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1631667221-974170 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: Since commit 77e02cf57b6c ("memblock: introduce saner 'memblock_free_ptr()' interface") introduced memblock_free_ptr() to lib/bootconfig.c, bootconfig tool also has to define memblock_free_ptr() wrapper, and remove unused __pa() and memblock_free(). Fixes: 77e02cf57b6c ("memblock: introduce saner 'memblock_free_ptr()' interface") Signed-off-by: Masami Hiramatsu --- tools/bootconfig/include/linux/memblock.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/bootconfig/include/linux/memblock.h b/tools/bootconfig/include/linux/memblock.h index 7862f217d85d..f2e506f7d57f 100644 --- a/tools/bootconfig/include/linux/memblock.h +++ b/tools/bootconfig/include/linux/memblock.h @@ -4,9 +4,8 @@ #include -#define __pa(addr) (addr) #define SMP_CACHE_BYTES 0 #define memblock_alloc(size, align) malloc(size) -#define memblock_free(paddr, size) free(paddr) +#define memblock_free_ptr(paddr, size) free(paddr) #endif