Skip to content

Commit 840267e

Browse files
Steven J. Hillpaulburton
authored andcommitted
MIPS: Octeon: Remove extern declarations.
Get rid of extern declarations in .c functions and included the necessary header file. Also remove unused UART declares. Signed-off-by: Steven J. Hill <steven.hill@cavium.com> Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/19477/ Cc: linux-mips@linux-mips.org
1 parent 6312455 commit 840267e

12 files changed

Lines changed: 30 additions & 34 deletions

File tree

‎arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2008 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -42,9 +42,6 @@
4242
#include <asm/octeon/cvmx-asxx-defs.h>
4343
#include <asm/octeon/cvmx-dbg-defs.h>
4444

45-
void __cvmx_interrupt_gmxx_enable(int interface);
46-
void __cvmx_interrupt_asxx_enable(int block);
47-
4845
/**
4946
* Probe RGMII ports and determine the number present
5047
*

‎arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2008 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -39,10 +39,7 @@
3939

4040
#include <asm/octeon/cvmx-gmxx-defs.h>
4141
#include <asm/octeon/cvmx-pcsx-defs.h>
42-
43-
void __cvmx_interrupt_gmxx_enable(int interface);
44-
void __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block);
45-
void __cvmx_interrupt_pcsxx_int_en_reg_enable(int index);
42+
#include <asm/octeon/cvmx-pcsxx-defs.h>
4643

4744
/**
4845
* Perform initialization required only once for an SGMII port.

‎arch/mips/cavium-octeon/executive/cvmx-helper-spi.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2008 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -25,10 +25,6 @@
2525
* Contact Cavium Networks for more information
2626
***********************license end**************************************/
2727

28-
void __cvmx_interrupt_gmxx_enable(int interface);
29-
void __cvmx_interrupt_spxx_int_msk_enable(int index);
30-
void __cvmx_interrupt_stxx_int_msk_enable(int index);
31-
3228
/*
3329
* Functions for SPI initialization, configuration,
3430
* and monitoring.
@@ -41,6 +37,8 @@ void __cvmx_interrupt_stxx_int_msk_enable(int index);
4137

4238
#include <asm/octeon/cvmx-pip-defs.h>
4339
#include <asm/octeon/cvmx-pko-defs.h>
40+
#include <asm/octeon/cvmx-spxx-defs.h>
41+
#include <asm/octeon/cvmx-stxx-defs.h>
4442

4543
/*
4644
* CVMX_HELPER_SPI_TIMEOUT is used to determine how long the SPI

‎arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2008 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -39,12 +39,9 @@
3939

4040
#include <asm/octeon/cvmx-pko-defs.h>
4141
#include <asm/octeon/cvmx-gmxx-defs.h>
42+
#include <asm/octeon/cvmx-pcsx-defs.h>
4243
#include <asm/octeon/cvmx-pcsxx-defs.h>
4344

44-
void __cvmx_interrupt_gmxx_enable(int interface);
45-
void __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block);
46-
void __cvmx_interrupt_pcsxx_int_en_reg_enable(int index);
47-
4845
int __cvmx_helper_xaui_enumerate(int interface)
4946
{
5047
union cvmx_gmxx_hg2_control gmx_hg2_control;

‎arch/mips/cavium-octeon/setup.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,11 +1154,7 @@ void __init prom_free_prom_memory(void)
11541154
}
11551155

11561156
void __init octeon_fill_mac_addresses(void);
1157-
int octeon_prune_device_tree(void);
11581157

1159-
extern const char __appended_dtb;
1160-
extern const char __dtb_octeon_3xxx_begin;
1161-
extern const char __dtb_octeon_68xx_begin;
11621158
void __init device_tree_init(void)
11631159
{
11641160
const void *fdt;

‎arch/mips/include/asm/octeon/cvmx-asxx-defs.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2012 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -55,6 +55,8 @@
5555
#define CVMX_ASXX_TX_HI_WATERX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000080ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
5656
#define CVMX_ASXX_TX_PRT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000008ull) + ((block_id) & 1) * 0x8000000ull)
5757

58+
void __cvmx_interrupt_asxx_enable(int block);
59+
5860
union cvmx_asxx_gmii_rx_clk_set {
5961
uint64_t u64;
6062
struct cvmx_asxx_gmii_rx_clk_set_s {

‎arch/mips/include/asm/octeon/cvmx-gmxx-defs.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2012 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -2070,6 +2070,8 @@ static inline uint64_t CVMX_GMXX_XAUI_EXT_LOOPBACK(unsigned long block_id)
20702070
return CVMX_ADD_IO_SEG(0x0001180008000540ull) + (block_id) * 0x8000000ull;
20712071
}
20722072

2073+
void __cvmx_interrupt_gmxx_enable(int interface);
2074+
20732075
union cvmx_gmxx_bad_reg {
20742076
uint64_t u64;
20752077
struct cvmx_gmxx_bad_reg_s {

‎arch/mips/include/asm/octeon/cvmx-pcsx-defs.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2012 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -334,6 +334,8 @@ static inline uint64_t CVMX_PCSX_TX_RXX_POLARITY_REG(unsigned long offset, unsig
334334
return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
335335
}
336336

337+
void __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block);
338+
337339
union cvmx_pcsx_anx_adv_reg {
338340
uint64_t u64;
339341
struct cvmx_pcsx_anx_adv_reg_s {

‎arch/mips/include/asm/octeon/cvmx-pcsxx-defs.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2012 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -268,6 +268,8 @@ static inline uint64_t CVMX_PCSXX_TX_RX_STATES_REG(unsigned long block_id)
268268
return CVMX_ADD_IO_SEG(0x00011800B0000830ull) + (block_id) * 0x1000000ull;
269269
}
270270

271+
void __cvmx_interrupt_pcsxx_int_en_reg_enable(int index);
272+
271273
union cvmx_pcsxx_10gbx_status_reg {
272274
uint64_t u64;
273275
struct cvmx_pcsxx_10gbx_status_reg_s {

‎arch/mips/include/asm/octeon/cvmx-spxx-defs.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Contact: support@caviumnetworks.com
55
* This file is part of the OCTEON SDK
66
*
7-
* Copyright (c) 2003-2012 Cavium Networks
7+
* Copyright (C) 2003-2018 Cavium, Inc.
88
*
99
* This file is free software; you can redistribute it and/or modify
1010
* it under the terms of the GNU General Public License, Version 2, as
@@ -45,6 +45,8 @@
4545
#define CVMX_SPXX_TPA_SEL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000328ull) + ((block_id) & 1) * 0x8000000ull)
4646
#define CVMX_SPXX_TRN4_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000360ull) + ((block_id) & 1) * 0x8000000ull)
4747

48+
void __cvmx_interrupt_spxx_int_msk_enable(int index);
49+
4850
union cvmx_spxx_bckprs_cnt {
4951
uint64_t u64;
5052
struct cvmx_spxx_bckprs_cnt_s {

0 commit comments

Comments
 (0)