Commit a00f6310 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] c-r4k: Convert init functions from inline to __init.

With more recent compilers inline doesn't necessarily means a function
will always be inlined.  So leave that decission to the compiler and
make the function as __init.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 06be375b
...@@ -89,7 +89,7 @@ static inline void r4k_blast_dcache_page_dc32(unsigned long addr) ...@@ -89,7 +89,7 @@ static inline void r4k_blast_dcache_page_dc32(unsigned long addr)
blast_dcache32_page(addr); blast_dcache32_page(addr);
} }
static inline void r4k_blast_dcache_page_setup(void) static void __init r4k_blast_dcache_page_setup(void)
{ {
unsigned long dc_lsize = cpu_dcache_line_size(); unsigned long dc_lsize = cpu_dcache_line_size();
...@@ -103,7 +103,7 @@ static inline void r4k_blast_dcache_page_setup(void) ...@@ -103,7 +103,7 @@ static inline void r4k_blast_dcache_page_setup(void)
static void (* r4k_blast_dcache_page_indexed)(unsigned long addr); static void (* r4k_blast_dcache_page_indexed)(unsigned long addr);
static inline void r4k_blast_dcache_page_indexed_setup(void) static void __init r4k_blast_dcache_page_indexed_setup(void)
{ {
unsigned long dc_lsize = cpu_dcache_line_size(); unsigned long dc_lsize = cpu_dcache_line_size();
...@@ -117,7 +117,7 @@ static inline void r4k_blast_dcache_page_indexed_setup(void) ...@@ -117,7 +117,7 @@ static inline void r4k_blast_dcache_page_indexed_setup(void)
static void (* r4k_blast_dcache)(void); static void (* r4k_blast_dcache)(void);
static inline void r4k_blast_dcache_setup(void) static void __init r4k_blast_dcache_setup(void)
{ {
unsigned long dc_lsize = cpu_dcache_line_size(); unsigned long dc_lsize = cpu_dcache_line_size();
...@@ -202,7 +202,7 @@ static inline void tx49_blast_icache32_page_indexed(unsigned long page) ...@@ -202,7 +202,7 @@ static inline void tx49_blast_icache32_page_indexed(unsigned long page)
static void (* r4k_blast_icache_page)(unsigned long addr); static void (* r4k_blast_icache_page)(unsigned long addr);
static inline void r4k_blast_icache_page_setup(void) static void __init r4k_blast_icache_page_setup(void)
{ {
unsigned long ic_lsize = cpu_icache_line_size(); unsigned long ic_lsize = cpu_icache_line_size();
...@@ -219,7 +219,7 @@ static inline void r4k_blast_icache_page_setup(void) ...@@ -219,7 +219,7 @@ static inline void r4k_blast_icache_page_setup(void)
static void (* r4k_blast_icache_page_indexed)(unsigned long addr); static void (* r4k_blast_icache_page_indexed)(unsigned long addr);
static inline void r4k_blast_icache_page_indexed_setup(void) static void __init r4k_blast_icache_page_indexed_setup(void)
{ {
unsigned long ic_lsize = cpu_icache_line_size(); unsigned long ic_lsize = cpu_icache_line_size();
...@@ -243,7 +243,7 @@ static inline void r4k_blast_icache_page_indexed_setup(void) ...@@ -243,7 +243,7 @@ static inline void r4k_blast_icache_page_indexed_setup(void)
static void (* r4k_blast_icache)(void); static void (* r4k_blast_icache)(void);
static inline void r4k_blast_icache_setup(void) static void __init r4k_blast_icache_setup(void)
{ {
unsigned long ic_lsize = cpu_icache_line_size(); unsigned long ic_lsize = cpu_icache_line_size();
...@@ -264,7 +264,7 @@ static inline void r4k_blast_icache_setup(void) ...@@ -264,7 +264,7 @@ static inline void r4k_blast_icache_setup(void)
static void (* r4k_blast_scache_page)(unsigned long addr); static void (* r4k_blast_scache_page)(unsigned long addr);
static inline void r4k_blast_scache_page_setup(void) static void __init r4k_blast_scache_page_setup(void)
{ {
unsigned long sc_lsize = cpu_scache_line_size(); unsigned long sc_lsize = cpu_scache_line_size();
...@@ -282,7 +282,7 @@ static inline void r4k_blast_scache_page_setup(void) ...@@ -282,7 +282,7 @@ static inline void r4k_blast_scache_page_setup(void)
static void (* r4k_blast_scache_page_indexed)(unsigned long addr); static void (* r4k_blast_scache_page_indexed)(unsigned long addr);
static inline void r4k_blast_scache_page_indexed_setup(void) static void __init r4k_blast_scache_page_indexed_setup(void)
{ {
unsigned long sc_lsize = cpu_scache_line_size(); unsigned long sc_lsize = cpu_scache_line_size();
...@@ -300,7 +300,7 @@ static inline void r4k_blast_scache_page_indexed_setup(void) ...@@ -300,7 +300,7 @@ static inline void r4k_blast_scache_page_indexed_setup(void)
static void (* r4k_blast_scache)(void); static void (* r4k_blast_scache)(void);
static inline void r4k_blast_scache_setup(void) static void __init r4k_blast_scache_setup(void)
{ {
unsigned long sc_lsize = cpu_scache_line_size(); unsigned long sc_lsize = cpu_scache_line_size();
...@@ -1221,7 +1221,7 @@ void au1x00_fixup_config_od(void) ...@@ -1221,7 +1221,7 @@ void au1x00_fixup_config_od(void)
} }
} }
static inline void coherency_setup(void) static void __init coherency_setup(void)
{ {
change_c0_config(CONF_CM_CMASK, CONF_CM_DEFAULT); change_c0_config(CONF_CM_CMASK, CONF_CM_DEFAULT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment