[PATCH -next] phy: ti: j721e-wiz: Add missing include linux/slab.h

2021-04-07 Thread Shixin Liu
: 040cbe768731 ("phy: ti: j721e-wiz: Model the internal clocks without device tree input") Reported-by: Hulk Robot Signed-off-by: Shixin Liu --- drivers/phy/ti/phy-j721e-wiz.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-w

[PATCH -next 1/7] crypto: sun4i-ss - Fix PM reference leak when pm_runtime_get_sync() fails

2021-04-08 Thread Shixin Liu
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: Shixin Liu --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss

[PATCH -next 3/7] crypto: sun8i-ce - Fix PM reference leak in sun8i_ce_probe()

2021-04-08 Thread Shixin Liu
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: Shixin Liu --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce

[PATCH -next 5/7] crypto: stm32/cryp - Fix PM reference leak on stm32-cryp.c

2021-04-08 Thread Shixin Liu
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: Shixin Liu --- drivers/crypto/stm32/stm32-cryp.c | 4

[PATCH -next 2/7] crypto: sun8i-ss - Fix PM reference leak when pm_runtime_get_sync() fails

2021-04-08 Thread Shixin Liu
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: Shixin Liu --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss

[PATCH -next 4/7] crypto: stm32/hash - Fix PM reference leak on stm32-hash.c

2021-04-08 Thread Shixin Liu
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: Shixin Liu --- drivers/crypto/stm32/stm32-hash.c | 8

[PATCH -next 7/7] crypto: omap-aes - Fix PM reference leak on omap-aes.c

2021-04-08 Thread Shixin Liu
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: Shixin Liu --- drivers/crypto/omap-aes.c | 7 +++ 1

[PATCH -next 6/7] crypto: sa2ul - Fix PM reference leak in sa_ul_probe()

2021-04-08 Thread Shixin Liu
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Signed-off-by: Shixin Liu --- drivers/crypto/sa2ul.c | 2 +- 1 file

[PATCH -next] scsi: megaraid_sas: Use DEFINE_SPINLOCK() for spinlock

2021-03-29 Thread Shixin Liu
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Shixin Liu --- drivers/scsi/megaraid/megaraid_sas_base.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/megaraid

[PATCH -next 1/2] mtip32xx: use DEFINE_SPINLOCK() for spinlock

2021-03-29 Thread Shixin Liu
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Shixin Liu --- drivers/block/mtip32xx/mtip32xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers

[PATCH -next 2/2] mtip32xx: use LIST_HEAD() for list_head

2021-03-29 Thread Shixin Liu
There's no need to declare a list and then init it manually, just use the LIST_HEAD() macro. Signed-off-by: Shixin Liu --- drivers/block/mtip32xx/mtip32xx.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mti

[PATCH -next 2/2] drivers: most: use LIST_HEAD() for list_head

2021-03-29 Thread Shixin Liu
There's no need to declare a list and then init it manually, just use the LIST_HEAD() macro. Signed-off-by: Shixin Liu --- drivers/most/most_cdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/most/most_cdev.c b/drivers/most/most_cdev.c index 8b69cf3

[PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue

2021-03-29 Thread Shixin Liu
wait_queue_head_t can be initialized automatically with DECLARE_WAIT_QUEUE_HEAD() rather than explicitly calling init_waitqueue_head(). Signed-off-by: Shixin Liu --- drivers/s390/cio/css.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/s390/cio/css.c b/drivers

[PATCH -next 2/2] mISDN: Use LIST_HEAD() for list_head

2021-03-29 Thread Shixin Liu
There's no need to declare a list and then init it manually, just use the LIST_HEAD() macro. Signed-off-by: Shixin Liu --- drivers/isdn/mISDN/dsp_core.c | 7 ++- drivers/isdn/mISDN/l1oip_core.c | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/isdn/

[PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock

2021-03-29 Thread Shixin Liu
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Shixin Liu --- drivers/s390/cio/css.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index

[PATCH -next 1/2] drivers: most: use DEFINE_SPINLOCK() for spinlock

2021-03-29 Thread Shixin Liu
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Shixin Liu --- drivers/most/most_cdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/most/most_cdev.c b/drivers/most/most_cdev.c

[PATCH -next 1/2] mISDN: Use DEFINE_SPINLOCK() for spinlock

2021-03-29 Thread Shixin Liu
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Signed-off-by: Shixin Liu --- drivers/isdn/hardware/mISDN/hfcmulti.c | 7 ++- drivers/isdn/mISDN/dsp_core.c | 3 +-- drivers/isdn/mISDN/l1oip_core.c| 3 +-- 3

[PATCH -next v2 2/2] mISDN: Use LIST_HEAD() for list_head

2021-03-29 Thread Shixin Liu
There's no need to declare a list and then init it manually, just use the LIST_HEAD() macro. Signed-off-by: Shixin Liu --- drivers/isdn/mISDN/dsp_core.c | 7 ++- drivers/isdn/mISDN/l1oip_core.c | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/isdn/

[PATCH -next v2 1/2] mISDN: Use DEFINE_SPINLOCK() for spinlock

2021-03-29 Thread Shixin Liu
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Changelog: >From v1: 1. fix the mistake reported by kernel test robot. Signed-off-by: Shixin Liu --- drivers/isdn/hardware/mISDN/hfcmulti.c | 7 ++- drivers/isdn/mI

[PATCH -next 1/2] scsi: myrb: Make symbols DAC960_{LA/PG/PD/P}_privdata static

2021-03-27 Thread Shixin Liu
This symbol is not used outside of myrb.c, so we can marks it static. Signed-off-by: Shixin Liu --- drivers/scsi/myrb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/myrb.c b/drivers/scsi/myrb.c index d469a4889777..56767f8610d4 100644 --- a/drivers

[PATCH -next 2/2] scsi: myrs: Make symbols DAC960_{GEM/BA/LP}_privdata static

2021-03-27 Thread Shixin Liu
This symbol is not used outside of myrs.c, so we can marks it static. Signed-off-by: Shixin Liu --- drivers/scsi/myrs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/myrs.c b/drivers/scsi/myrs.c index 9ebff2449a54..d5ec1cdea0e1 100644 --- a/drivers/scsi

[PATCH] arm: kprobes: Make some symbols static

2021-03-27 Thread Shixin Liu
These two symbols are not used outside of test-core.c, so we can marks them static. Signed-off-by: Shixin Liu --- arch/arm/probes/kprobes/test-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/probes/kprobes/test-core.c b/arch/arm/probes/kprobes/test-core.c

[PATCH] arm: kprobes: fix an old-style function definition

2021-03-27 Thread Shixin Liu
I got a warning when compile kernel: arch/arm/probes/kprobes/core.c:465:12: warning: old-style function definition [-Wold-style-definition] 465 | int __init arch_init_kprobes() |^ Fix it by add parameter 'void'. Signed-off-by: Shixin Liu ---

[PATCH] arm: 9016/2: Make symbol 'tmp_pmd_table' static

2021-03-27 Thread Shixin Liu
Symbol 'tmp_pmd_table' is not used outside of kasan_init.c and only used when CONFIG_ARM_LPAE enabled. So marks it static and add it into CONFIG_ARM_LPAE. Signed-off-by: Shixin Liu --- arch/arm/mm/kasan_init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/a

[PATCH -next 3/3] mm/debug_vm_pgtable: Remove useless pfn_pmd()

2021-03-31 Thread Shixin Liu
The call to pfn_pmd() here is redundant. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgtable.c index c379bbe42c2a..9f4c4a114229 100644 --- a/mm/debug_vm_pgtable.c +++ b/mm/debug_vm_pgtable.c @@ -196,7

[PATCH -next 1/3] mm/debug_vm_pgtable: Fix one comment mistake

2021-03-31 Thread Shixin Liu
The branch condition should be CONFIG_TRANSPARENT_HUGEPAGE instead of CONFIG_ARCH_HAS_PTE_DEVMAP. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgtable.c index 05efe98a9ac2

[PATCH -next 2/3] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-03-31 Thread Shixin Liu
The functions {pmd/pud}_set_huge and {pmd/pud}_clear_huge is not depend on THP. But now if we want to test these functions, we have to enable THP. So move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 91

[PATCH -next] ACPI: processor: Fix a prepocessor warning

2021-03-31 Thread Shixin Liu
| Fixes: bc5706eaeae0 ("ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()") Signed-off-by: Shixin Liu --- drivers/acpi/processor_idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 19fb28a8

[PATCH -next v2 2/2] mm/debug_vm_pgtable: Remove redundant pfn_{pmd/pte}() and fix one comment mistake

2021-04-05 Thread Shixin Liu
v1->v2: Remove redundant pfn_pte() and fold two patch to one. Remove redundant pfn_{pmd/pte}() and fix one comment mistake. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mm/debug_vm_pgtable.c b

[PATCH -next v2 1/2] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-04-05 Thread Shixin Liu
v1->v2: Modified the commit message. The functions {pmd/pud}_set_huge and {pmd/pud}_clear_huge ars not dependent on THP. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 91 +++ 1 file changed, 39 insertions(+), 52 deletions(-) diff --git a