From patchwork Wed Sep 1 08:29:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weizhao Ouyang X-Patchwork-Id: 12468625 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=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,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 6B280C4320A for ; Wed, 1 Sep 2021 08:29:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1A8CB6103D for ; Wed, 1 Sep 2021 08:29:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1A8CB6103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id B34C16B0071; Wed, 1 Sep 2021 04:29:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AE3066B0072; Wed, 1 Sep 2021 04:29:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D3318D0001; Wed, 1 Sep 2021 04:29:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0047.hostedemail.com [216.40.44.47]) by kanga.kvack.org (Postfix) with ESMTP id 8F3506B0071 for ; Wed, 1 Sep 2021 04:29:56 -0400 (EDT) Received: from smtpin39.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4DD44235DD for ; Wed, 1 Sep 2021 08:29:56 +0000 (UTC) X-FDA: 78538331592.39.EE6214C Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by imf02.hostedemail.com (Postfix) with ESMTP id 137377001A05 for ; Wed, 1 Sep 2021 08:29:55 +0000 (UTC) Received: by mail-pl1-f171.google.com with SMTP id n18so1053498plp.7 for ; Wed, 01 Sep 2021 01:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uEF7gvqwfbmwW2Wlh9BZzPOgxlqZXBD1tP6d5gmOMzA=; b=sSDUcl7oLVlDkyo52pdEZM1V1Xl0bBb9tDAJ4/PMbqIS1gy5t9mc+pT3LQuiDrycda 60S67vEHa81Jq1BdakqxN8cxJgp5Xy8HjHz66se03Uj52cyu8DETsx9noSVwdgTm2iaY ERzqhXKGtK+XVO5jjh6AudunXd87z/gA5d15bbIeClz0Ey8MyImTInsEvogqkC3nADkk ZFzg8JMG8Sa60ydadlxjH0Gfpsq5wXtGAo8mWwj5C05ouUkQ+GHeKS1klvUYQYlH2Bji npaS0ePftf8kMH7YjtNAcN4WMFOL8XEQ4SqHoDp1cWQCZA5zqJ4matQ92HBqmV04MWoR hLfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uEF7gvqwfbmwW2Wlh9BZzPOgxlqZXBD1tP6d5gmOMzA=; b=MZyYYYOGm9xZAReXXicBMt3g8cHuRq9pP6TLxRh8t6FpaTOwM+3I2JgWgSnr65KlKS NtSKeGZUWKPW8hkF6XEbTZv45Fh/SQNrjPPC0gKibE/PeAub9ZER8q/ncvhCPoDjmPxB nK01R3XPgF7mBfVsQbYlQAP6XMCpriNnLbBXeGMKuWje/FXlsH7TbGjVefuir6s7S7Oq 1rLMIH7PRcHK6fMaxRtLdoRoF/8dH6d7Z1XU7pbCPi6qFcQoDncNLESjq/t8U4es6H0e 1X18BkhQrG11pIBlMwpNbPjdCjQu75tfUjdMKPl9Hgc28cZczjOo5BNlJ6Tq0e7lOG6m fm2A== X-Gm-Message-State: AOAM531tkCE+76LeKgbyxeA2fQGShBOS8WjCLAgkgiVu8zj6z5gFPGFX c9SmkdATAdFBTi4r8XdnE3E= X-Google-Smtp-Source: ABdhPJx5if/okyK4OD2r1W9Kp91JPxGpTqwgPma1p/eDWUd9raCWGQpTPLtztEVZPRUznt5kWHNcoQ== X-Received: by 2002:a17:90a:6503:: with SMTP id i3mr10299929pjj.42.1630484994939; Wed, 01 Sep 2021 01:29:54 -0700 (PDT) Received: from ownia.. ([173.248.225.217]) by smtp.gmail.com with ESMTPSA id d20sm19509159pfu.36.2021.09.01.01.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 01:29:54 -0700 (PDT) From: Weizhao Ouyang To: arnd@arndb.de, akpm@linux-foundation.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Weizhao Ouyang Subject: [PATCH 1/1] mm/early_ioremap.c: remove redundant early_ioremap_shutdown() Date: Wed, 1 Sep 2021 16:29:17 +0800 Message-Id: <20210901082917.399953-1-o451686892@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=sSDUcl7o; spf=pass (imf02.hostedemail.com: domain of o451686892@gmail.com designates 209.85.214.171 as permitted sender) smtp.mailfrom=o451686892@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 137377001A05 X-Stat-Signature: i3akymbhymhebaifzato7zudrohyg1ai X-HE-Tag: 1630484995-713409 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: early_ioremap_reset() reserved a weak function so that architectures can provide a specific cleanup. Now no architectures use it, remove this redundant function. Signed-off-by: Weizhao Ouyang Reviewed-by: David Hildenbrand --- include/asm-generic/early_ioremap.h | 6 ------ mm/early_ioremap.c | 5 ----- 2 files changed, 11 deletions(-) diff --git a/include/asm-generic/early_ioremap.h b/include/asm-generic/early_ioremap.h index 9def22e6e2b3..9d0479f50f97 100644 --- a/include/asm-generic/early_ioremap.h +++ b/include/asm-generic/early_ioremap.h @@ -19,12 +19,6 @@ extern void *early_memremap_prot(resource_size_t phys_addr, extern void early_iounmap(void __iomem *addr, unsigned long size); extern void early_memunmap(void *addr, unsigned long size); -/* - * Weak function called by early_ioremap_reset(). It does nothing, but - * architectures may provide their own version to do any needed cleanups. - */ -extern void early_ioremap_shutdown(void); - #if defined(CONFIG_GENERIC_EARLY_IOREMAP) && defined(CONFIG_MMU) /* Arch-specific initialization */ extern void early_ioremap_init(void); diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c index 164607c7cdf1..74984c23a87e 100644 --- a/mm/early_ioremap.c +++ b/mm/early_ioremap.c @@ -38,13 +38,8 @@ pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys_addr, return prot; } -void __init __weak early_ioremap_shutdown(void) -{ -} - void __init early_ioremap_reset(void) { - early_ioremap_shutdown(); after_paging_init = 1; }