From patchwork Thu Oct 4 08:54:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10625761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFD801515 for ; Thu, 4 Oct 2018 09:26:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFC6428D1F for ; Thu, 4 Oct 2018 09:26:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C428B28D25; Thu, 4 Oct 2018 09:26:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 684BB28D1F for ; Thu, 4 Oct 2018 09:26:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=tpH5nDLcHyKwID6vkpeHJD+ItgeYHaZ213phCEm6ut8=; b=l/GLxfPrfmT9F4 0oef248VFOADVQXxVT/dKjL49sjlW4JoZ1iOrivNRab7pQB31amBtJVwBWCMm1MLa37QvUgOw/th2 N61hr83y/xHRlE4ffEh0pJHpq+FDBqsnC4H/HWSrtRPHCPH8iY6pr/WnTs2YAlQF696O2JROOW6qm bqLanakAnuxoRJBal1gc29Prg2p8t06HN5ADSKxlIkLruYHOH87HMrnNFNpSCFQ7s0Ft+rOYwlqoO jZPKXZPcjfZb7Sn10tLyTC80kn1RHVkp/Xx/8IZU2kBkNG0gRdHFV2Xpzuc2moVYV0cgMVL2B6ESM +SwFtVs4Za8MR/hdcDVg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7zuC-00048r-L3; Thu, 04 Oct 2018 09:26:48 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7zsj-0002jv-Rp for linux-arm-kernel@bombadil.infradead.org; Thu, 04 Oct 2018 09:25:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oal2Sxh3eKSVbX8dI6XStpPyPYZTzwiOSIntq3DfXv0=; b=nn5G/BP/O6JYgMQmYrvD3FNS/r EQ/Bd4l3nazrpIp1BZnhVpiZjpB6csKBINCD2CUp/6vSy5vC8lC+c55dP0TAZY7RXbDDaccq96x07 1PgzwcyxgnzRIzhVSNtOgF865jCzX4dA0pENiO7XjyhN56kF2qPq/crxaZiSkwZi+/PYnocRhsgxC DdLJQBW3U9bK18MYnmU6oAHtSmoFVLQQXQldP6y0YCfx0tuFjXZkohHfkibcBzhnfaAYgVhyygci+ UXBOqXhTnCGdR+fYDgZnqL+h9zyxXQXYXvxRdP8uC4HtLLFXodrmsA4IG4uawm3mxZO5J5jg9HUoP 2MQ0ZTQg==; Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7zPH-0007VP-FK for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 08:54:52 +0000 Received: by mail-wm1-x344.google.com with SMTP id z204-v6so7341922wmc.5 for ; Thu, 04 Oct 2018 01:54:39 -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=oal2Sxh3eKSVbX8dI6XStpPyPYZTzwiOSIntq3DfXv0=; b=dT5sgIyvnwhdXHQNv4Rc5C8G6LVXjSGFrF/ZnRKwlC0SX0iRP6iS5Tbo1bE3gj/A5V EdB/wxWmQdEcfh+jCNIB7tvyiGOJcXOgSw39pJTqoNbY7+TS2ZbZaCf+OZFQC3CHUTiU 27fHFh8IUC20VLaYm1B/hLhdQVH9gaew1XRtlRJJXAif4Mp4xvDPMJHj5azHuVv0WmbA qNkUEGQzDVoah0zPYnIgYeK/oDQfYBlySF3Cp5YEMVFZkkXP4v0sxVHYGZqkwJPgYfqs WN/D1/YhvgieTMDfMMQS2lmGB4zctbe0/B8BzgbZvARI3nwW+F/kvcH2WzOLqcOsC1hZ coWA== 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=oal2Sxh3eKSVbX8dI6XStpPyPYZTzwiOSIntq3DfXv0=; b=Dmmx/IfPdIb24Bn3qiB3nF7lb6BFeGH9q75VYTsmGDWJsJrJlmlx0Y3irPLYjESVi5 FT/jPr6ZjUhhGv0eRyAL2vyxlqj2OirxATQLquhOMVCKQexcQyJ2jFZJJ0srO+7zHCQw apuzPgPf7kd5tMZdM87c+eGujpXo6qpxyOhmdbhfjYddF4iBXxU0ad2ikCPs2gBsSYKN X7Xhk2GGYrxXuBis3NKZDSUUx8caRWU94CafWd+7VaeCkr5gIUjskeuzvzqZeWMTkyUE Etuq5XxWYvDunzI0J3HL844cJtRopkgdflj9PM6vcrg2vZDh3gSf39AA5qgrdYC+5krk 36xg== X-Gm-Message-State: ABuFfojzVrZGVo0xCXjLqi8fx6VcPPnfkB0PpnHGV/kMUrORw85UtdrK jNWWrAWSK65FOuKlHV8iZZYMaGve/hIUXg== X-Google-Smtp-Source: ACcGV63CRi4UXM8mkEXCOVPqg17EE1pywkCH4HbqumAq958mbNu+iW5GiJHFu0dx9cXUtII0l3Jxig== X-Received: by 2002:a1c:a683:: with SMTP id p125-v6mr4134869wme.24.1538643277075; Thu, 04 Oct 2018 01:54:37 -0700 (PDT) Received: from cperon-Latitude-7490.devialet.com (static-css-csd-151233.business.bouyguestelecom.com. [176.162.151.233]) by smtp.gmail.com with ESMTPSA id b139-v6sm8715013wmd.36.2018.10.04.01.54.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Oct 2018 01:54:36 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Dinh Nguyen , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 1/3] ARM: socfpga: Clean unused functions Date: Thu, 4 Oct 2018 10:54:13 +0200 Message-Id: <20181004085415.12925-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_045451_529160_83D964DD X-CRM114-Status: GOOD ( 12.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These functions are unused externally, removed them and declare the one used locally as static. Signed-off-by: Clément Péron --- arch/arm/mach-socfpga/core.h | 2 -- arch/arm/mach-socfpga/socfpga.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 65e1817d8afe..92cae0a9213f 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -34,8 +34,6 @@ #define RSTMGR_MPUMODRST_CPU1 0x2 /* CPU1 Reset */ -extern void socfpga_init_clocks(void); -extern void socfpga_sysmgr_init(void); void socfpga_init_l2_ecc(void); void socfpga_init_ocram_ecc(void); void socfpga_init_arria10_l2_ecc(void); diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index dde14f7bf2c3..5fb6f79059a8 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -32,7 +32,7 @@ void __iomem *rst_manager_base_addr; void __iomem *sdr_ctl_base_addr; unsigned long socfpga_cpu1start_addr; -void __init socfpga_sysmgr_init(void) +static void __init socfpga_sysmgr_init(void) { struct device_node *np;