Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp413847pxb; Wed, 1 Sep 2021 01:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjPPcK3Fv0EUW3zt+OXvE4fsvGmpElFAMixf471+mDeky+CT+x18FeC1EhLnBViBt3D17t X-Received: by 2002:a17:907:aa4:: with SMTP id bz4mr35960157ejc.97.1630485188468; Wed, 01 Sep 2021 01:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630485188; cv=none; d=google.com; s=arc-20160816; b=oyvIpAp7agrELU3LPQ83oS/FvB7WVCgbjPpreY23Bvp2PaUBspXEhVod08JpHUC19w kh8Ys+dCcosAqoBoZQl2ET0XYei5rtoMjjMi1tZWAXUBMgMPXcMrtZ5LYfxJG8z5hXAN i4NLSlcobUZKiz1+TMEM8Vp3Ce46AOampVRbYz3C1zvrj6EhC6qn7C7ZKY8GKgNbWwfx mdPKyS6z6f0TNAxwacJ2dE2ICeNQ3g5io3AoBXlhzK5GeQ/yCwQxuzRlZ9cie4g9cd63 xVt9xbFbyTFvf8973rMJcs3jlP1uaXvu+d0dRbj+lDDpJIEli11q2LVYRsIuoiOXhlTU 7t5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uEF7gvqwfbmwW2Wlh9BZzPOgxlqZXBD1tP6d5gmOMzA=; b=eomjTzLbyiYdbPBd51L91TNV7Vp4XTxAM7oeTpdaP5X0eWpwj2wyFfcmNyLknbfa+e gubF/N2DQ2hwWyksuDsyoHVsQXZzYD1WDVWhpvt8KkDZHo1c2/Ux2a45jfdW7gPp4XYe +Na5ml8NskRGKoQ/TG92UyD5qKQG0h5TjpfxWtg93PYMFCsM9r8JCSCHzOoKVXHZQoOS m7s0X3ME7vOO0bYY5eU+F3fYcHOYVlnQ/g1TbhC5Ya4M8kP7Wz3b2OCL14+KXWPsBt56 G4a+SlqcOH+EjmKXKrGFSwT2+KqbZq8cktLS5lMEfL6gtKyIAO4gevulblwm7eghnR5B 19nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sSDUcl7o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw8si1760355edb.355.2021.09.01.01.32.45; Wed, 01 Sep 2021 01:33:08 -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=@gmail.com header.s=20161025 header.b=sSDUcl7o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243250AbhIAIaw (ORCPT + 99 others); Wed, 1 Sep 2021 04:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243104AbhIAIav (ORCPT ); Wed, 1 Sep 2021 04:30:51 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D69BC061575; Wed, 1 Sep 2021 01:29:55 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id mw10-20020a17090b4d0a00b0017b59213831so4089706pjb.0; 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=nDI895MzFTCFgJqg9dURN4Jw3RxyDfPOfjbNUNzfvhGnyEqUgtI1K+1F8aSPAYycUI c3Ur7dustcniQK8u2dNkUADlRKur1/Z1PKEWjZnXEB2Ip+euxpLXJgYJ7EFCAwiSLtA6 3f+xXK33h1Q1CvvNW3BP324I1EC3mU7xa/Qb3reqHFcnvAwnBK63jHU2dd+ETCCixjD6 BU6HFyx81IOeOPa0BWHfz9JbBzPItpOism6S3OpaTmLfqaSzDAlpymGjDjU7bFSsjgC4 SO4xbQI+2pBj3HmASb2dVVIjQ7YjmNjkc/uz/ebgPr1nJF5jJB1CUwgDQdBkt61J2vHu CWKA== X-Gm-Message-State: AOAM531NTBDKk5oWJ0LXUCS8YUMoMTk8thGwn9lYX0OVgHiYXnXvImBx dP4KmY8FnSJ2FQY/Y71S9LVDTcKZlCLWPHhmC8U= 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; } -- 2.30.2