From patchwork Tue Jun 3 04:57:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 4285061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E0F819F391 for ; Tue, 3 Jun 2014 04:58:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 20B3720218 for ; Tue, 3 Jun 2014 04:58:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E7BB20212 for ; Tue, 3 Jun 2014 04:58:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wrgls-0004px-Ud; Tue, 03 Jun 2014 04:56:24 +0000 Received: from mail-pb0-f52.google.com ([209.85.160.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wrglq-0004pY-1Q for linux-arm-kernel@lists.infradead.org; Tue, 03 Jun 2014 04:56:22 +0000 Received: by mail-pb0-f52.google.com with SMTP id rr13so4998794pbb.39 for ; Mon, 02 Jun 2014 21:56:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=t0MTmKcRRyKl1sO9eW34Wl6thLrNPXxuEQhOFKlpayg=; b=dX2Q8r5+aoMYddpHRu+Gqp+u/2Z/8w1/BZcz3q0TqzAKw8oEmI3uxNufiHwg8p1Mjc Ywoy5mM4EwTqAYfhETl2gQtAvsooC3wDln0M3pxCSDyg1jLqivRUAHQEmehglKZzEd9X vL/Cak0DPfFVbuV/J+bzKJwS7U6lu5TB/WC59u/Fj/oyJzeOShDcLlpbENmc8RS/Ls7t MpLebKuyy0qzCK4z64zhnk46XNp+ZhnGLav7wrjmOJrLFnvUtb6SZUNBapyQNlwTGFoe myewpYLOd/Da1991WEmc1gkbaVNuJ2EooQXbeHGb/sZEHNrQP8B/0rl3INIyf88Syjgo 2ldg== X-Gm-Message-State: ALoCoQnEKJVIGHVdWDLX8ULw1nUkurdguV7HD8Kxa8/3iKnpg8PxD7nTKWgGQx1FxrNCGZU2M94A X-Received: by 10.66.236.196 with SMTP id uw4mr1042655pac.113.1401771360496; Mon, 02 Jun 2014 21:56:00 -0700 (PDT) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id mt1sm23340135pbb.31.2014.06.02.21.55.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jun 2014 21:55:59 -0700 (PDT) From: Olof Johansson To: kgene.kim@samsung.com Subject: [PATCH] ARM: exynos: mark machine descriptor functions static Date: Mon, 2 Jun 2014 21:57:36 -0700 Message-Id: <1401771456-6101-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140602_215622_138327_908F4A68 X-CRM114-Status: GOOD ( 11.52 ) X-Spam-Score: -0.7 (/) Cc: Olof Johansson , t.figa@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There's no reason to export these functions, and I have no idea why they have over time ended up in the header file. As a result, none of the checker tools caught it (i.e. sparse was silent on it). Signed-off-by: Olof Johansson --- I'm guessing with all the churn right now this might not apply, so it might need manual application around -rc1. There's definitely room for more cleanup in common.h. arch/arm/mach-exynos/common.h | 6 ------ arch/arm/mach-exynos/exynos.c | 10 +++++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 5a3a1ec..0b0b6d5 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h @@ -116,13 +116,7 @@ void mct_init(void __iomem *base, int irq_g0, int irq_l0, int irq_l1); struct map_desc; extern void __iomem *sysram_ns_base_addr; extern void __iomem *sysram_base_addr; -void exynos_init_io(void); -void exynos_restart(enum reboot_mode mode, const char *cmd); void exynos_sysram_init(void); -void exynos_cpuidle_init(void); -void exynos_cpufreq_init(void); -void exynos_init_late(void); - void exynos_firmware_init(void); #ifdef CONFIG_PINCTRL_EXYNOS diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 9183675..c4f9c3d 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -146,7 +146,7 @@ static struct map_desc exynos5_iodesc[] __initdata = { }, }; -void exynos_restart(enum reboot_mode mode, const char *cmd) +static void exynos_restart(enum reboot_mode mode, const char *cmd) { struct device_node *np; u32 val = 0x1; @@ -174,7 +174,7 @@ static struct platform_device exynos_cpuidle = { .id = -1, }; -void __init exynos_cpuidle_init(void) +static void __init exynos_cpuidle_init(void) { if (soc_is_exynos5440()) return; @@ -182,7 +182,7 @@ void __init exynos_cpuidle_init(void) platform_device_register(&exynos_cpuidle); } -void __init exynos_cpufreq_init(void) +static void __init exynos_cpufreq_init(void) { platform_device_register_simple("exynos-cpufreq", -1, NULL, 0); } @@ -209,7 +209,7 @@ void __init exynos_sysram_init(void) } } -void __init exynos_init_late(void) +static void __init exynos_init_late(void) { if (of_machine_is_compatible("samsung,exynos5440")) /* to be supported later */ @@ -256,7 +256,7 @@ static void __init exynos_map_io(void) iotable_init(exynos5_iodesc, ARRAY_SIZE(exynos5_iodesc)); } -void __init exynos_init_io(void) +static void __init exynos_init_io(void) { debug_ll_io_init();