[PATCH] powerpc: export flush_icache_range

2014-04-27 Thread Jeff Mahoney
Commit aac416fc38c (lkdtm: flush icache and report actions) calls flush_icache_range from a module. It's exported on most architectures that implement it, but not on powerpc. This patch exports it to fix the module link failure. Signed-off-by: Jeff Mahoney --- arch/powerpc/kernel/ppc_ks

[PATCH RESEND] powerpc: fix handling of strnlen with zero len

2010-03-17 Thread Jeff Mahoney
ue is passed back in r3. In certain cases, this will happen to work. Otherwise it will pass back the address of the first string as the return value. This patch lifts the len <= 0 handling code from memcpy to handle that case. Reported by: christian_sell...@symantec.com Signed-off-by: Jeff

[PATCH] powerpc: Build fix for mpc52xx

2010-03-10 Thread Jeff Mahoney
mpc52xx_gpt_wdt_setup is defined as 0, which causes the following build failure with gcc 4.5, since it's built with -Werror. arch/powerpc/platforms/52xx/mpc52xx_gpt.c:761:3: error: statement with no effect Defining it as do { } while(0) fixes the problem. Signed-off-by: Jeff Mahoney ---

[PATCH] powerpc: fix handling of strnlen with zero len

2010-02-25 Thread Jeff Mahoney
ian_sell...@symantec.com Signed-off-by: Jeff Mahoney - --- arch/powerpc/lib/string.S |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) - --- a/arch/powerpc/lib/string.S +++ b/arch/powerpc/lib/string.S @@ -71,7 +71,7 @@ _GLOBAL(strcmp) _GLOBAL(strncmp) PPC_LCMPI r5,0 - -