[PATCH] powerpc: cputime: fix a compile warning

2016-11-21 Thread yanjiang.jin
From: Yanjiang Jin This patch is to avoid the below warning: kernel/sched/cpuacct.c:298:25: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'long unsigned int' [-Wformat=] Signed-off-by: Yanjiang Jin --- arch/powerpc/include/asm/cputime.h | 3 ++- 1 fi

[PATCH] fsldma: t4240qds: drop "SG" CAP for DMA3

2016-11-21 Thread yanjiang.jin
From: Yanjiang Jin T4240QDS DMA controller uses the external DMA control signals to start or restart a paused DMA transfer, acknowledge a DMA transfer in progress and also indicates a transfer completion. "scatterlist copy" depends on these signals. But as "T4240 Reference Manual" shown: "The ex

[PATCH] fsl: mpc85xx: call k(un)map_atomic other than k(un)map

2015-03-02 Thread yanjiang.jin
From: Yanjiang Jin The k(un)map function may be called in atomic context in the function map_and_flush(), so use k(un)map_atomic to replace it, else we would get the below warning during kdump: BUG: sleeping function called from invalid context at include/linux/highmem.h:58 in_atomic(): 1, irqs_

[PATCH] ppc: mm: free memory after creating kmem cache

2015-02-27 Thread yanjiang.jin
From: Yanjiang Jin kmem_cache_create()->kmem_cache_create_memcg()->kstrdup() allocates new space and copy name's content, so it is safe to free name memory after calling kmem_cache_create(). Else kmemleak would report the below warning: unreferenced object 0xc000f9002160 (size 16): comm "s