From patchwork Wed Feb 10 23:52:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12082077 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=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 7C94AC433DB for ; Wed, 10 Feb 2021 23:54:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2BD2364E0D for ; Wed, 10 Feb 2021 23:54:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2BD2364E0D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XkATH2QvYh664upaVWofYXr/DfZ8fuNHAG1PsjyEsPk=; b=dfgiledEXs3dtpz9Z30qu4Fx/0 GOvDY7/kEPbVd3mUFvJMdgJW7bWUW5q6s5wbV8Wt4KN463lLYiEVzqG69oAwrcQyfHyB39V09wKt7 qGrsXch+u1oToQ4W+IekHed8gUtO8ss+yd9C19HCTAfmqficwwqqbLnBBXDm/f8um/3oRm/82bbG0 btjwxzUrTB1d4/ooMVmZ2ismFNQNVti+Kcjs2pMYGzMDGKE0pH8s1AS3//21RUhf+vyynkQHNcfRn /7guJ/qspndB65EY4jHRP0K78HlevY/axDVLGbkN8BnCfM/grBsCKd8Q2Dyg76lLh950BBGIaroHV QEPUy/pg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9zI5-0006gN-Lm; Wed, 10 Feb 2021 23:53:01 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9zI2-0006fq-Lv for linux-arm-kernel@lists.infradead.org; Wed, 10 Feb 2021 23:52:59 +0000 Received: by mail-pj1-x1033.google.com with SMTP id my11so3718895pjb.1 for ; Wed, 10 Feb 2021 15:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sw+4hTERsJ95x3OUdaatH7l2UPgiDomv1hcpD2ZxNqI=; b=iJXkbpWf9Xp9xhd3DRYZ2iFa+7t+86a8D1EhkB4lVs1Jtkp98ZoO0ydYq8PgTIPRr4 dSaxK+vQmGFp9dQB0ww/CwlfJfiTutb1O8n9myj/Wmm33DjVB5MncTpa43TXJ13vv7V+ ferU4u8NBVxNEEaAJ4Mg1LtlV3GgwwL3I0+BEoZq6WofvfSJ0AY+iZJZreNVB4ye9KdY 1wPlb+xVvc8U7Ju38o22ipV6TGntk8LGOjhpP7nhuXJ8e7kLur9RicbJROdLeVc5YXjl vIIxnvVra6opi/iIvwS5QntTDhyVL12trjJwws+W2pT5m/Xc8zRqA6eFfdYBufAsRnZS nRJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=sw+4hTERsJ95x3OUdaatH7l2UPgiDomv1hcpD2ZxNqI=; b=gLjtfZskpGMwVDSxxFFyNixlo2dfVQWXfLRKs5/siF1Lh/sDZ3FMKxOlbEqc/KxMS7 CYLFmBAqWS0mdEwMpezMftmu72bjyQlOfw7ZnQi5lJQB7Gs62ti+3v6tyjjKy/DPPNG0 SpSporoogzeFldtTRZETKPfTzEFmep3UlRjG8hBUiEdrawWAvrBXcAN3WS9ooXb95uYA /KHpQYO2x3qFFA+lGTkrsUxeyTSkRrd2mLkioIXTTQURxGCOHtJzVUy7YR8x13sHEAni KE9Ak+Ms6snjhbaCmE4jIGOs4/SkTOjAUj3D8MUVETwUc0jQaoHm0qv0YqBpfxpqSUw4 EKmQ== X-Gm-Message-State: AOAM532MgCNYvpteHdeybDGlDeQBjQoGHe9hOw8MQqX0THPsa5lYlgvf 0iniJEibQ2seIyXWPIPs3hgbCIpuIUs= X-Google-Smtp-Source: ABdhPJzSFkYB5GmLFSQZ4TnxB4yVnLTWzjlffBbDKs0fNJIFqC+FmWj5cvxz/qSViIuEQeRal1XKjA== X-Received: by 2002:a17:90a:1f4c:: with SMTP id y12mr1356739pjy.52.1613001174226; Wed, 10 Feb 2021 15:52:54 -0800 (PST) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id y16sm3288419pgg.20.2021.02.10.15.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 15:52:53 -0800 (PST) From: Joel Stanley To: Russell King , Arnd Bergmann Subject: [PATCH] ARM: kexec: Remove unused kexec_reinit callback Date: Thu, 11 Feb 2021 10:22:43 +1030 Message-Id: <20210210235243.398810-1-joel@jms.id.au> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210210_185258_738747_5402DE38 X-CRM114-Status: GOOD ( 12.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The last (only?) user of this was removed in commit ba364fc752da ("ARM: Kirkwood: Remove mach-kirkwood"), back in v3.17. Signed-off-by: Joel Stanley Reviewed-by: Arnd Bergmann --- arch/arm/include/asm/kexec.h | 3 --- arch/arm/kernel/machine_kexec.c | 8 -------- 2 files changed, 11 deletions(-) diff --git a/arch/arm/include/asm/kexec.h b/arch/arm/include/asm/kexec.h index 22751b5b5735..e62832dcba76 100644 --- a/arch/arm/include/asm/kexec.h +++ b/arch/arm/include/asm/kexec.h @@ -56,9 +56,6 @@ static inline void crash_setup_regs(struct pt_regs *newregs, } } -/* Function pointer to optional machine-specific reinitialization */ -extern void (*kexec_reinit)(void); - static inline unsigned long phys_to_boot_phys(phys_addr_t phys) { return phys_to_idmap(phys); diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c index 2b09dad7935e..f567032a09c0 100644 --- a/arch/arm/kernel/machine_kexec.c +++ b/arch/arm/kernel/machine_kexec.c @@ -147,11 +147,6 @@ void machine_crash_shutdown(struct pt_regs *regs) pr_info("Loading crashdump kernel...\n"); } -/* - * Function pointer to optional machine-specific reinitialization - */ -void (*kexec_reinit)(void); - void machine_kexec(struct kimage *image) { unsigned long page_list, reboot_entry_phys; @@ -187,9 +182,6 @@ void machine_kexec(struct kimage *image) pr_info("Bye!\n"); - if (kexec_reinit) - kexec_reinit(); - soft_restart(reboot_entry_phys); }