[PATCH] powerpc: fix sys_call_table declaration

2014-10-02 Thread Romeo Cane
Declaring sys_call_table as a pointer causes the compiler to generate the wrong lookup code in arch_syscall_addr Signed-off-by: Romeo Cane --- arch/powerpc/include/asm/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/syscall.h b/arch

[PATCH] tools/perf: use local variable for segment file offset

2014-10-02 Thread Romeo Cane
The value of phdr->p_offset is stored inside a buffer that gets reallocated, so it could become corrupted if the new size isn't big enough to contain it Signed-off-by: Romeo Cane --- tools/perf/util/symbol-minimal.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff

Re: [PATCH] powerpc: fix sys_call_table declaration

2014-10-03 Thread Romeo Cane
On Fri, Oct 03, 2014 at 07:34:34AM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2014-10-02 at 15:41 +0100, Romeo Cane wrote: > > Declaring sys_call_table as a pointer causes the compiler to generate the > > wrong lookup code in arch_syscall_addr > > Care to elaborate ? &g

[PATCH] microblaze: fix instruction cache invalidation

2016-05-23 Thread Romeo Cane
-off-by: Romeo Cane --- arch/microblaze/include/asm/cacheflush.h | 6 +++--- arch/microblaze/kernel/signal.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/microblaze/include/asm/cacheflush.h b/arch/microblaze/include/asm/cacheflush.h index ffea82a..c978e64