Octeon: Several misc fixes
Hi David & Ralf,
These are some misc build fixes for Octeon.
Yang Shi (3):
MIPS: Octeon: Remove superfluous on_each_cpu parameter
MIPS: Octeon: Remove redundant declaration of octeon_reserve32_memory
MIPS: Octeon: Add add_wired_entry decralation in header file
Thanks,
Yang
PATCH 1/3 MIPS: Octeon: Remove superfluous on_each_cpu parameter
Now, on_each_cpu just need three parameters, but the on_each_cpu still uses four parameters in Octeon's setup.c. So, remove the superfluous parameter.
--- arch/mips/cavium-octeon/setup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/cavium-octeon/setup.c +1 -1
@@ -230,7 +230,7 @@ static void octeon_hal_setup_per_cpu_reserved32(void *unused)void octeon_hal_setup_reserved32 (void ) {#ifdef CONFIG_CAVIUM_RESERVE32_USE_WIRED_TLB -on_each_cpu (octeon_hal_setup_per_cpu_reserved32,NULL ,0 ,1 ); +on_each_cpu (octeon_hal_setup_per_cpu_reserved32,NULL ,1 );#endif }
Signature · 1 line
1.6.3.3
PATCH 2/3 MIPS: Octeon: Remove redundant declaration of octeon_reserve32_memory
In Octeon's setup.c, octeon_reserve32_memory is defined, so remove the redundant extern declaration of this variable.
--- arch/mips/cavium-octeon/setup.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
arch/mips/cavium-octeon/setup.c +0 -3
@@ -45,9 +45,6 @@ extern struct plat_smp_ops octeon_smp_ops;extern void pci_console_init (const char *arg);#endif -#ifdef CONFIG_CAVIUM_RESERVE32 -extern uint64_t octeon_reserve32_memory; -#endif static unsigned long long MAX_MEMORY =512ull <<20 ;struct octeon_boot_descriptor *octeon_boot_desc_ptr;
Signature · 1 line
1.6.3.3
PATCH 3/3 MIPS: Octeon: Add add_wired_entry decralation in header file
Octeon's setup.c uses add_wired_entry, but it is not declared anywhere. Copy add_wired_entry decralation fomr pgtable-32.h to pgtable-64.h and include asm/pgtable.h into Octeon's setup.c.
--- arch/mips/cavium-octeon/setup.c | 1 + arch/mips/include/asm/pgtable-64.h | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-)
arch/mips/cavium-octeon/setup.c +1 -0
@@ -30,6 +30,7 @@#include <asm/bootinfo.h> #include <asm/sections.h> #include <asm/time.h> +#include <asm/pagtable.h> #include <asm/octeon/octeon.h>
arch/mips/include/asm/pgtable-64.h +6 -0
@@ -23,6 +23,12 @@#endif /* +* - add_wired_entry() add a fixed TLB entry, and move wired register +*/ +extern void add_wired_entry (unsigned long entrylo0,unsigned long entrylo1, +unsigned long entryhi,unsigned long pagemask); + +/* * Each address space has 2 4K pages as its page directory, giving 1024 * (== PTRS_PER_PGD) 8 byte pointers to pmd tables. Each pmd table is a * single 4K page, giving 512 (== PTRS_PER_PMD) 8 byte pointers to page
Signature · 1 line
1.6.3.3
Re: [PATCH 3/3] MIPS: Octeon: Add add_wired_entry decralation in header file
Hi Yang,
Quoted 15 lines · On Wednesday 03 March 2010 08:26:12 Yang Shi wrote:
Octeon's
setup.cusesadd_wired_entry, but it is not declared anywhere. Copyadd_wired_entrydecralation fomrpgtable-32.htopgtable-64.hand includeasm/pgtable.hinto Octeon'ssetup.c.Signed-off-by Yang Shi <[email protected]>--- arch/mips/cavium-octeon/setup.c | 1 + arch/mips/include/asm/pgtable-64.h | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-)(quoted diff) +0
-0b/arch/mips/cavium-octeon/setup.c index 8309d68..f35ba16 100644
arch/mips/cavium-octeon/setup.c line 33
Quoted 4 lines
arch/mips/cavium-octeon/setup.c +1
-0@@ -30,6 +30,7 @@#include <asm/bootinfo.h> #include <asm/sections.h> #include <asm/time.h> +#include <asm/pagtable.h>
You probably meant to include <asm/pgtable.h> instead.
Quoted 21 lines
arch/mips/cavium-octeon/setup.c +0
-0#include <asm/octeon/octeon.h> (quoted diff) +0
-0b/arch/mips/include/asm/pgtable-64.h index 26dc69d..85ee34d 100644arch/mips/include/asm/pgtable-64.h +5
-0@@ -23,6 +23,12 @@#endif /* +* - add_wired_entry() add a fixed TLB entry, and move wired register +*/ +extern void add_wired_entry (unsigned long entrylo0,unsigned long entrylo1, + unsigned long entryhi, unsigned long pagemask); + +/* * Each address space has 2 4K pages as its page directory, giving 1024 * (== PTRS_PER_PGD) 8 byte pointers to pmd tables. Each pmd table is a * single 4K page, giving 512 (== PTRS_PER_PMD) 8 byte pointers to page
Signature · 1 line
Regards, Florian
Re: [PATCH 3/3] MIPS: Octeon: Add add_wired_entry decralation in header file
Quoted 14 lines · Florian Fainelli
Hi Yang,
Quoted 10 lines · On Wednesday 03 March 2010 08:26:12 Yang Shi wrote:
Octeon's
setup.cusesadd_wired_entry, but it is not declared anywhere. Copyadd_wired_entrydecralation fomrpgtable-32.htopgtable-64.hand includeasm/pgtable.hinto Octeon'ssetup.c.Signed-off-by Yang Shi <[email protected]>--- arch/mips/cavium-octeon/setup.c | 1 + arch/mips/include/asm/pgtable-64.h | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-)
Quoted 13 lines
arch/mips/cavium-octeon/setup.c line 34
Quoted 10 lines
(quoted diff) +0
-0b/arch/mips/cavium-octeon/setup.c index 8309d68..f35ba16 100644arch/mips/cavium-octeon/setup.c +1
-0@@ -30,6 +30,7 @@#include <asm/bootinfo.h> #include <asm/sections.h> #include <asm/time.h> +#include <asm/pagtable.h> You probably meant to include <
asm/pgtable.h> instead.
Yes, thanks to point out this.
V2 will be sent soon.
Regards,
Yang
Quoted 24 lines
Quoted 22 lines
arch/mips/cavium-octeon/setup.c +0
-0#include <asm/octeon/octeon.h> (quoted diff) +0
-0b/arch/mips/include/asm/pgtable-64.h index 26dc69d..85ee34d 100644arch/mips/include/asm/pgtable-64.h +5
-0@@ -23,6 +23,12 @@#endif /* +* - add_wired_entry() add a fixed TLB entry, and move wired register +*/ +extern void add_wired_entry (unsigned long entrylo0,unsigned long entrylo1, + unsigned long entryhi, unsigned long pagemask); + +/* * Each address space has 2 4K pages as its page directory, giving 1024 * (== PTRS_PER_PGD) 8 byte pointers to pmd tables. Each pmd table is a * single 4K page, giving 512 (== PTRS_PER_PMD) 8 byte pointers to page