[PATCH -next] RDMA/iw_cxgb4: Use DEFINE_SPINLOCK() for spinlock

2021-03-30 Thread Tang Yizhou
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Reported-by: Hulk Robot Signed-off-by: Tang Yizhou --- drivers/infiniband/hw/cxgb4/cm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw

[PATCH -next] crypto: ccp - Use DEFINE_SPINLOCK() for spinlock

2021-03-30 Thread Tang Yizhou
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Reported-by: Hulk Robot Signed-off-by: Tang Yizhou --- drivers/crypto/ccp/ccp-crypto-main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/ccp

[PATCH v3] mm, oom: Fix a comment in dump_task

2021-01-25 Thread Tang Yizhou
If p is a kthread, it will be checked in oom_unkillable_task() so we can delete the corresponding comment. Signed-off-by: Tang Yizhou Acked-by: David Rientjes Acked-by: Michal Hocko --- v2: Update CC list v3: Add Acked-by tags mm/oom_kill.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v2] mm, oom: Fix a comment in dump_task

2021-01-15 Thread Tang Yizhou
If p is a kthread, it will be checked in oom_unkillable_task() so we can delete the corresponding comment. Signed-off-by: Tang Yizhou Cc: David Rientjes Cc: KOSAKI Motohiro Cc: Shakeel Butt Cc: Michal Hocko --- v2: Update Cc list mm/oom_kill.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH] mm, oom: Fix a comment in dump_task

2021-01-15 Thread Tang Yizhou
If p is a kthread, it will be checked in oom_unkillable_task() so we can delete the corresponding comment. Signed-off-by: Tang Yizhou Cc: Ding Tianhong Cc: Zhou Guanghui Cc: Chen Weilong --- mm/oom_kill.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/oom_kill.c

Re: [PATCH v7 05/12] mm: HUGE_VMAP arch support cleanup

2020-09-11 Thread Tang Yizhou
On 2020/8/25 22:57, Nicholas Piggin wrote: > -int __init arch_ioremap_pud_supported(void) > +bool arch_vmap_pud_supported(pgprot_t prot); > { > /* >* Only 4k granule supports level 1 block mappings. > @@ -1319,9 +1319,9 @@ int __init arch_ioremap_pud_supported(void) >

Re: [PATCH v4 6/8] mm: Move vmap_range from lib/ioremap.c to mm/vmalloc.c

2020-08-17 Thread Tang Yizhou
Hi Nicholas, We may change the title as follows: mm: Move vmap_range from mm/ioremap.c to mm/vmalloc.c Yizhou

[PATCH -next] mm/gup.c: Fix the comment of return value for populate_vma_page_range()

2020-07-19 Thread Tang Yizhou
The return value of populate_vma_page_range() is consistent with __get_user_pages(), and so is the function comment of return value. Signed-off-by: Tang Yizhou --- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index 2cc5eba44362..a55f1ec712e9