Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5917908ybg; Tue, 22 Oct 2019 10:14:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHZVsyLfVvxzc8RMivxmNJ5nxC1eJq+EOiafW/yqgUQynOCwC6buNp+K7ud9a/wLCgkRvw X-Received: by 2002:aa7:d28d:: with SMTP id w13mr31936821edq.184.1571764443545; Tue, 22 Oct 2019 10:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571764443; cv=none; d=google.com; s=arc-20160816; b=fC4QGHeOalMI+2nuFYQuOl5DOhZb/rnjLokZAUXUOaaqoeIrVPT+0+r0v6XDoda0RX v3mdAXWum4e+c5PIRnoIev+5hbBzDSrlvuxEaYnqE2YmUpelUcMswX1swm0VjfjKjBIM LvA4Th7N+H+jkpddtySRkdxDNHJ4qamxLh6Y1QEz8rdAe+z+p3CEPJ4rjk0Q+sThgA2v lPQ/CcN3/mR7IWdzH0q8IXEDnM/C8zBqqHw3D/KyA3q6qiOlhnnL4YgACLp9oNhGMrKN +bQoRNgeQE4eTXu2O5pM4T105BRCylqrxhha7JnJcbxTXzIMpxa+CQ8q03BXcQk3TXTX V9ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=verREcsJNtPysZ9vPN4PNk/WohO4SkDi6AfcyDmaBQU=; b=DEJj0WQUNssagYdr/y+ilckIof+OFBB8SSgJ4FLqvmennUXS9ftEw+MozioL7tSwFD Da9abHXogmyVJkT5ZtS71BIVrC9c4VI6jdp+D0s5obiItPDe13hUDUu/QDH8nWV1k/00 Yq7d0jC2jAQyiFmE6giCOo1auP0X1yYbnLxYBXd1Klqh4rtbR1OyqolJQ6M9a7fdmyz0 u2Qj2gnb9DRLWFjKQfMY0ROxTTi0e2irK5VtRnW9l9lI0Z7qgM5YoeaMWdW/IZUDg/sV lvL2T+ceylPc7lhdrue8a/x82O2XhCCXymhGbniU5nujgJHk/zZTrqWqfEaCF9mzZ3z3 4QFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si13015430ede.101.2019.10.22.10.13.39; Tue, 22 Oct 2019 10:14:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389268AbfJVQNX (ORCPT + 99 others); Tue, 22 Oct 2019 12:13:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:59766 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732118AbfJVQNW (ORCPT ); Tue, 22 Oct 2019 12:13:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BA110B383; Tue, 22 Oct 2019 16:13:20 +0000 (UTC) From: Thomas Bogendoerfer To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] MIPS: SGI-IP27: collect externs in new header file Date: Tue, 22 Oct 2019 18:13:11 +0200 Message-Id: <20191022161315.4194-1-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IP27 code has a few externs distributed over .c files. Collect them together into one commcon header file. Signed-off-by: Thomas Bogendoerfer --- arch/mips/sgi-ip27/ip27-common.h | 9 +++++++++ arch/mips/sgi-ip27/ip27-init.c | 4 ++-- arch/mips/sgi-ip27/ip27-reset.c | 2 ++ arch/mips/sgi-ip27/ip27-smp.c | 4 ++-- arch/mips/sgi-ip27/ip27-timer.c | 2 ++ 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 arch/mips/sgi-ip27/ip27-common.h diff --git a/arch/mips/sgi-ip27/ip27-common.h b/arch/mips/sgi-ip27/ip27-common.h new file mode 100644 index 000000000000..e9e9f1dc8c20 --- /dev/null +++ b/arch/mips/sgi-ip27/ip27-common.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __IP27_COMMON_H +#define __IP27_COMMON_H + +extern void ip27_reboot_setup(void); +extern void hub_rt_clock_event_init(void); + +#endif /* __IP27_COMMON_H */ diff --git a/arch/mips/sgi-ip27/ip27-init.c b/arch/mips/sgi-ip27/ip27-init.c index 1dad799758c4..f48e2b3990f6 100644 --- a/arch/mips/sgi-ip27/ip27-init.c +++ b/arch/mips/sgi-ip27/ip27-init.c @@ -36,6 +36,8 @@ #include #include +#include "ip27-common.h" + #define CPU_NONE (cpuid_t)-1 static DECLARE_BITMAP(hub_init_mask, MAX_COMPACT_NODES); @@ -113,8 +115,6 @@ get_nasid(void) >> NSRI_NODEID_SHFT); } -extern void ip27_reboot_setup(void); - void __init plat_mem_setup(void) { u64 p, e, n_mode; diff --git a/arch/mips/sgi-ip27/ip27-reset.c b/arch/mips/sgi-ip27/ip27-reset.c index c90228d0d4c2..74d078247e49 100644 --- a/arch/mips/sgi-ip27/ip27-reset.c +++ b/arch/mips/sgi-ip27/ip27-reset.c @@ -26,6 +26,8 @@ #include #include +#include "ip27-common.h" + void machine_restart(char *command) __noreturn; void machine_halt(void) __noreturn; void machine_power_off(void) __noreturn; diff --git a/arch/mips/sgi-ip27/ip27-smp.c b/arch/mips/sgi-ip27/ip27-smp.c index 386702abe660..c38df7c62964 100644 --- a/arch/mips/sgi-ip27/ip27-smp.c +++ b/arch/mips/sgi-ip27/ip27-smp.c @@ -27,6 +27,8 @@ #include #include +#include "ip27-common.h" + /* * Takes as first input the PROM assigned cpu id, and the kernel * assigned cpu id as the second. @@ -147,8 +149,6 @@ static void ip27_init_cpu(void) static void ip27_smp_finish(void) { - extern void hub_rt_clock_event_init(void); - hub_rt_clock_event_init(); local_irq_enable(); } diff --git a/arch/mips/sgi-ip27/ip27-timer.c b/arch/mips/sgi-ip27/ip27-timer.c index 9ca775465a91..d53a29070e12 100644 --- a/arch/mips/sgi-ip27/ip27-timer.c +++ b/arch/mips/sgi-ip27/ip27-timer.c @@ -38,6 +38,8 @@ #include #include +#include "ip27-common.h" + static int rt_next_event(unsigned long delta, struct clock_event_device *evt) { unsigned int cpu = smp_processor_id(); -- 2.16.4