[PATCH] acpi/nfit: Use kobj_to_dev() instead

2020-08-12 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/acpi/nfit/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index fa4500f..3bb350b --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi

[PATCH] drivers/dax: Use kobj_to_dev() instead

2020-08-12 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/dax/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c index df238c8..24625d2 --- a/drivers/dax/bus.c +++ b/drivers/dax/bus.c @@ -331,7 +331,7 @@ static

[PATCH] drivers/greybus: Use kobj_to_dev() instead

2020-08-12 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/greybus/interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/greybus/interface.c b/drivers/greybus/interface.c index 67dbe6f..de167f1 --- a/drivers/greybus/interface.c +++ b

[PATCH] drivers/input/misc: Use kobj_to_dev() instead

2020-08-12 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/input/misc/ims-pcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/ims-pcu.c b/drivers/input/misc/ims-pcu.c index d8dbfc0..0879d96 --- a/drivers/input/misc/ims-pcu.c +++ b

[PATCH V3] workqueue/watchdog: Make unbound workqueues aware of

2021-03-24 Thread Wang Qing
work never finishes, for example, because of dependencies of works queued into the same workqueue. V3: - Modify the commit message clearly according to Petr's suggestion. Signed-off-by: Wang Qing --- kernel/watchdog.c | 5 +++-- kernel/workqueue.c | 17 ++--- 2 files chang

[PATCH V3,RESEND] workqueue/watchdog: Make unbound workqueues aware of touch_softlockup_watchdog()

2021-03-24 Thread Wang Qing
work never finishes, for example, because of dependencies of works queued into the same workqueue. V3: - Modify the commit message clearly according to Petr's suggestion. Signed-off-by: Wang Qing --- kernel/watchdog.c | 5 +++-- kernel/workqueue.c | 17 ++--- 2 files chang

[PATCH] dma-buf: use wake_up_process() instead of wake_up_state()

2021-03-18 Thread Wang Qing
Using wake_up_process() is more simpler and friendly, and it is more convenient for analysis and statistics Signed-off-by: Wang Qing --- drivers/dma-buf/dma-fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c

[PATCH] futex: use wake_up_process() instead of wake_up_state()

2021-03-18 Thread Wang Qing
Using wake_up_process() is more simpler and friendly, and it is more convenient for analysis and statistics Signed-off-by: Wang Qing --- kernel/futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/futex.c b/kernel/futex.c index e68db77..078a1f9 --- a/kernel

[PATCH] workqueue: update wq_watchdog_touched for unbound lockup checking

2021-03-19 Thread Wang Qing
wq_watchdog_touched_cpu to check bound, and use wq_watchdog_touched to check unbound worker_pool. Signed-off-by: Wang Qing --- kernel/workqueue.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 0d150da..be08295

[PATCH V2] workqueue: watchdog: update wq_watchdog_touched for unbound lockup checking

2021-03-19 Thread Wang Qing
wq_watchdog_touched_cpu to check bound, and use wq_watchdog_touched to check unbound worker_pool. Signed-off-by: Wang Qing --- kernel/watchdog.c | 5 +++-- kernel/workqueue.c | 17 ++--- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/kernel/watchdog.c b/kernel

[PATCH] Modify the explanation and documentation related to watchdog thread

2021-03-23 Thread Wang Qing
"watchdog/%u" threads has be replaced by cpu_stop_work, So we need to modify the explanation and documentation related to this. Signed-off-by: Wang Qing --- .../admin-guide/kernel-per-CPU-kthreads.rst | 20 kernel/watchdog.c

[PATCH] sched: completion: Reinterpret the meaning of completion_done()

2021-03-16 Thread Wang Qing
The most intuitive meaning of completion_done() is to see if a completion has been done, done=0 can only indicate that someone may be waiting. Signed-off-by: Wang Qing --- kernel/sched/completion.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched

[PATCH] sched: swait: use wake_up_process() instead of wake_up_state()

2021-03-16 Thread Wang Qing
Why not just use wake_up_process(). Signed-off-by: Wang Qing --- kernel/sched/swait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/swait.c b/kernel/sched/swait.c index e1c655f..7a24925 --- a/kernel/sched/swait.c +++ b/kernel/sched/swait.c @@ -69,7 +69,7

[PATCH] sched: rename __prepare_to_swait() to add_swait_queue_locked()

2021-03-16 Thread Wang Qing
This function just puts wait into queue, and does not do an operation similar to prepare_to_wait() in wait.c. And during the operation, the caller needs to hold the lock to protect. Signed-off-by: Wang Qing --- kernel/sched/completion.c | 2 +- kernel/sched/sched.h | 2 +- kernel/sched

[PATCH 0/6] Clean up obsolete TODO files

2021-03-30 Thread Wang Qing
or abandoned. Its existence will mislead developers seeking to view outdated information. Wang Qing (6): mips/sgi-ip27: Delete obsolete TODO file scsi/aacraid: Delete obsolete TODO file fs/befs: Delete obsolete TODO file fs/jffs2: Delete obsolete TODO file net/ax25: Delete obsolete TODO

[PATCH 2/6] scsi/aacraid: Delete obsolete TODO file

2021-03-30 Thread Wang Qing
The TODO file here has not been updated from 2.6.12 for more than 15 years. Its existence will mislead developers seeking to view outdated information. Signed-off-by: Wang Qing --- drivers/scsi/aacraid/TODO | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 drivers/scsi/aacraid/TODO

[PATCH 3/6] fs/befs: Delete obsolete TODO file

2021-03-30 Thread Wang Qing
The TODO file here has not been updated from 2005, and the function development described in the file have been implemented or abandoned. Its existence will mislead developers seeking to view outdated information. Signed-off-by: Wang Qing --- fs/befs/TODO | 14 -- 1 file changed

[PATCH 1/6] mips/sgi-ip27: Delete obsolete TODO file

2021-03-30 Thread Wang Qing
The TODO file here has not been updated for 15 years, and the function development described in the file have been implemented or abandoned. Its existence will mislead developers seeking to view outdated information. Signed-off-by: Wang Qing --- arch/mips/sgi-ip27/TODO | 19

[PATCH 4/6] fs/jffs2: Delete obsolete TODO file

2021-03-30 Thread Wang Qing
The TODO file here has not been updated for 14 years, and the function development described in the file have been implemented or abandoned. Its existence will mislead developers seeking to view outdated information. Signed-off-by: Wang Qing --- fs/jffs2/TODO | 37

[PATCH 5/6] net/ax25: Delete obsolete TODO file

2021-03-30 Thread Wang Qing
The TODO file here has not been updated for 13 years, and the function development described in the file have been implemented or abandoned. Its existence will mislead developers seeking to view outdated information. Signed-off-by: Wang Qing --- net/ax25/TODO | 20 1 file

[PATCH 6/6] net/decnet: Delete obsolete TODO file

2021-03-30 Thread Wang Qing
The TODO file here has not been updated from 2005, and the function development described in the file have been implemented or abandoned. Its existence will mislead developers seeking to view outdated information. Signed-off-by: Wang Qing --- net/decnet/TODO | 40

[PATCH V2] watchdog: mtk: support pre-timeout when the bark irq is available

2021-04-14 Thread Wang Qing
Use the bark interrupt as the pretimeout notifier if available. By default, the pretimeout notification shall occur one second earlier than the timeout. V2: - panic() by default if WATCHDOG_PRETIMEOUT_GOV is not enabled Signed-off-by: Wang Qing --- drivers/watchdog/mtk_wdt.c | 57

[PATCH V3] watchdog: mtk: support pre-timeout when the bark irq is available

2021-04-14 Thread Wang Qing
- is processed and wait until timeout. Signed-off-by: Wang Qing --- drivers/watchdog/mtk_wdt.c | 62 ++ 1 file changed, 57 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index 97ca993..7bef1e3 --- a

[PATCH] softdog: make pretimeout available when SOFT_WATCHDOG_PRETIMEOUT enabled

2021-04-06 Thread Wang Qing
defaults available. Signed-off-by: Wang Qing --- drivers/watchdog/softdog.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/watchdog/softdog.c b/drivers/watchdog/softdog.c index 7a10962..79e52791 --- a/drivers/watchdog/softdog.c +++ b/drivers/watchdog/softdog.c @@ -35,6

[PATCH V2 0/4] kernel/watchdog: Modify the explanation and doc related to watchdog thread

2021-03-31 Thread Wang Qing
"watchdog/%u" threads has be replaced by cpu_stop_work. The current description is extremely misleading, so we need to modify the explanation and documentation related to this. Wang Qing (4): kernel: watchdog: Modify the explanation related to watchdog thread doc: watchdog:

[PATCH V2 2/4] doc: watchdog: Delete the explanation about "watchdog/%u".

2021-03-31 Thread Wang Qing
"watchdog/%u" threads has be replaced by cpu_stop_work. The current description is extremely misleading, so delete the explanation about "watchdog/%u". Signed-off-by: Wang Qing --- .../admin-guide/kernel-per-CPU-kthreads.rst | 20 1 file c

[PATCH V2 1/4] kernel: watchdog: Modify the explanation related to watchdog thread

2021-03-31 Thread Wang Qing
The watchdog thread has been replaced by cpu_stop_work, modify the explanation related. Signed-off-by: Wang Qing --- kernel/watchdog.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 7110906..d7fb4fb --- a/kernel

[PATCH V2 4/4] doc: watchdog: Modify the doc related to "watchdog/%u"

2021-03-31 Thread Wang Qing
"watchdog/%u" threads has be replaced by cpu_stop_work. The current description is extremely misleading. --- Documentation/admin-guide/sysctl/kernel.rst | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admi

[PATCH V2 3/4] doc: watchdog: Modify the explanation related to watchdog thread

2021-03-31 Thread Wang Qing
"watchdog/%u" threads has be replaced by cpu_stop_work. The current description is extremely misleading. Signed-off-by: Wang Qing --- Documentation/admin-guide/lockup-watchdogs.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-gu

[PATCH V4] watchdog: mtk: support dual mode when the bark irq is available

2021-04-19 Thread Wang Qing
: Wang Qing --- drivers/watchdog/mtk_wdt.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index 97ca993..a1f34b5 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c

[PATCH] watchdog: mtk: support pre-timeout when the bark irq is available

2021-04-09 Thread Wang Qing
Use the bark interrupt as the pretimeout notifier if available. By default, the pretimeout notification shall occur one second earlier than the timeout. Signed-off-by: Wang Qing --- drivers/watchdog/mtk_wdt.c | 47 +++--- 1 file changed, 44 insertions

[PATCH] lib: fix inconsistent indenting in process_bit1()

2021-02-28 Thread Wang Qing
Smatch gives the warning: lib/decompress_unlzma.c:395 process_bit1() warn: inconsistent indenting Signed-off-by: Wang Qing --- lib/decompress_unlzma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decompress_unlzma.c b/lib/decompress_unlzma.c index 1cf409e

[PATCH] arch: mips: sibyte: Return -EFAULT if copy_to_user() fails

2021-02-28 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- arch/mips/sibyte/common/sb_tbprof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/s

[PATCH] fs: Return -EFAULT if copy_to_user() fails

2021-03-01 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- fs/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/select.c b/fs/select.c index 37

[PATCH] kernel: Return -EFAULT if copy_to_user() fails

2021-03-01 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- kernel/sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sys.c b/kernel/sys.c index 8b

[PATCH] s390: cio: Return -EFAULT if copy_to_user() fails

2021-03-01 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- drivers/s390/cio/vfio_ccw_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s39

[PATCH] arc: kernel: Return -EFAULT if copy_to_user() fails

2021-03-01 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- arch/arc/kernel/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/kernel/signa

[PATCH] s390: crypto: Return -EFAULT if copy_to_user() fails

2021-03-01 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- drivers/s390/crypto/vfio_ap_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/c

[PATCH] mm: Return -EFAULT if copy_to_user() fails

2021-03-01 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- mm/mempolicy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c

[PATCH] mm: delete bool "migrated"

2021-03-01 Thread Wang Qing
Smatch gives the warning: do_numa_page() warn: assigning (-11) to unsigned variable 'migrated' Signed-off-by: Wang Qing --- mm/memory.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 784249f..d8125df --- a/mm/memory.

[PATCH] message: fusion: delete the useless casting value returned

2021-03-11 Thread Wang Qing
Fix the following coccicheck warning: WARNING: casting value returned by memory allocation function is useless. Signed-off-by: Wang Qing --- drivers/message/fusion/mptbase.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/message/fusion/mptbase.c b/drivers

[PATCH] scsi: fnic: delete the useless casting value returned

2021-03-11 Thread Wang Qing
Fix the following coccicheck warning: WARNING: casting value returned by memory allocation function is useless. Signed-off-by: Wang Qing --- drivers/scsi/fnic/fnic_debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/fnic/fnic_debugfs.c b/drivers/scsi

[PATCH] include: fix inconsistent indenting in dma_alloc_coherent()

2021-03-11 Thread Wang Qing
fix inconsistent indenting in dma_alloc_coherent() Signed-off-by: Wang Qing --- include/linux/dma-mapping.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index fbfa3f5..6e4d513 --- a/include/linux/dma-mapping.h +++ b/include/linux

[PATCH] scsi: ibmvscsi: delete the useless casting value returned

2021-03-11 Thread Wang Qing
Fix the following coccicheck warning: WARNING: casting value returned by memory allocation function is useless. Signed-off-by: Wang Qing --- drivers/scsi/ibmvscsi/ibmvscsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi

[PATCH] rdma: delete the useless casting value returned

2021-03-11 Thread Wang Qing
Fix the following coccicheck warning: WARNING: casting value returned by memory allocation function is useless. Signed-off-by: Wang Qing --- include/rdma/ib_verbs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index

[PATCH] scsi: qla2xxx: use dma_pool_zalloc instead

2021-03-12 Thread Wang Qing
use dma_pool_zalloc instead of dma_pool_alloc and memset Signed-off-by: Wang Qing --- drivers/scsi/qla2xxx/qla_os.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 0743925..ac5e954 --- a/drivers/scsi

[PATCH] usb: cdns3: delete repeated clear operations

2021-03-12 Thread Wang Qing
dma_alloc_coherent already zeroes out memory, so memset is not needed. Signed-off-by: Wang Qing --- drivers/usb/cdns3/cdnsp-mem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/cdns3/cdnsp-mem.c b/drivers/usb/cdns3/cdnsp-mem.c index 7a84e92..1d1b9a4 --- a/drivers/usb/cdns3/cdnsp

[PATCH] soc: ti: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-03-12 Thread Wang Qing
Fix the following coccicheck warning: WARNING:pm_sr_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE. Signed-off-by: Wang Qing --- drivers/soc/ti/smartreflex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/ti/smartreflex.c b/drivers/soc/ti

[PATCH] mips: kernel: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2021-03-12 Thread Wang Qing
debugfs_create_file_unsafe does not protect the fops handed to it against file removal. DEFINE_DEBUGFS_ATTRIBUTE makes the fops aware of the file lifetime and thus protects it against removal. Signed-off-by: Wang Qing --- arch/mips/kernel/spinlock_test.c | 8 1 file changed, 4

[PATCH 1/2] ata: delete redundant printing of return value

2021-03-12 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/ata/libahci_platform.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/ata

[PATCH 1/2] ata: delete redundant printing of return value

2021-03-12 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/ata/sata_highbank.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/sata_highbank.c b

[PATCH] char: hw_random: delete redundant printing of return value

2021-03-12 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/char/hw_random/cctrng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random

[PATCH] gpu: drm: mediatek: delete redundant printing of return value

2021-03-12 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/gpu/drm/mediatek/mtk_dpi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek

[PATCH] tty: serial: 8250: delete redundant printing of return value

2021-03-12 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/tty/serial/8250/8250_fsl.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250

[PATCH] mailbox: Remove unnecessary THIS_MODULE

2021-03-13 Thread Wang Qing
As THIS_MODULE has been set in platform_create_bundle(), so remove it. Signed-off-by: Wang Qing --- drivers/mailbox/pcc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index ef9ecd1..4b1a2d2 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox

[PATCH] sound: soc: codecs: Remove unnecessary THIS_MODULE

2021-03-13 Thread Wang Qing
As THIS_MODULE has been set in module_platform_driver(), so remove it. Signed-off-by: Wang Qing --- sound/soc/codecs/lpass-rx-macro.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index c9c21d22..5b9d4e9 --- a/sound/soc

[PATCH] sound: soc: fsl: Remove unnecessary THIS_MODULE

2021-03-13 Thread Wang Qing
As THIS_MODULE has been set in module_platform_driver(), so remove it. Signed-off-by: Wang Qing --- sound/soc/fsl/imx-hdmi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index dbbb761..cd0235a --- a/sound/soc/fsl/imx-hdmi.c +++ b/sound

[PATCH V2] ata: sata_highbank: delete redundant print and fix return value

2021-03-14 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, and should corrected to < 0. Also, thhe return value should return a real error. Signed-off-by: Wang Qing --- drivers/ata/sata_highbank.c | 4 +--- 1 file changed, 1 insertion(+)

[PATCH V3] ata: sata_highbank: delete redundant print and fix return value

2021-03-14 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, and should corrected to < 0. Also, thhe return value should return a real error. Signed-off-by: Wang Qing --- drivers/ata/sata_highbank.c | 6 ++ 1 file changed, 2 insertions(+)

[PATCH] doc: admin-guide: remove explanation of "watchdog/%u"

2021-03-15 Thread Wang Qing
"watchdog/%u" threads has be replaced by cpu_stop_work, which will mislead the reader. Signed-off-by: Wang Qing --- .../admin-guide/kernel-per-CPU-kthreads.rst | 20 1 file changed, 20 deletions(-) diff --git a/Documentation/admin-guide/kern

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/pxa168fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/pxa3xx-gcu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/pxafb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxafb.c b

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/s3c2410fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/vt8500lcdfb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers

Re: [PATCH] [v26,1/4] scsi: ufs: Introduce HPB feature

2021-03-08 Thread Wang Qing

Re: [PATCH] [v26,1/4] scsi: ufs: Introduce HPB feature

2021-03-08 Thread Wang Qing
According to Samsung's iozone test result, HPB is going to boost random performance of rom on mobile, we believe it will help our customers on several occasions.

[Resend]Re: [PATCH] [v26,1/4] scsi: ufs: Introduce HPB feature

2021-03-08 Thread Wang Qing
>The Following is experiment environment: > - kernel version: 4.4.0 > - RAM: 8GB > - UFS 2.1 (64GB) > >Result: >+---+--+--+---+ >| cycle | baseline | with HPB | diff | >+---+--+--+---+ >| 1 | 272.4| 264.9| -7.5 | >| 2 | 250.4| 24

[PATCH] drivers: isdn: mISDN: fix spelling typo of 'wheter'

2021-03-09 Thread Wang Qing
wheter -> whether Signed-off-by: Wang Qing --- drivers/isdn/mISDN/l1oip_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/mISDN/l1oip_core.c b/drivers/isdn/mISDN/l1oip_core.c index b57dcb8..facbd88 --- a/drivers/isdn/mISDN/l1oip_core.c +++ b/drivers/i

[PATCH] drivers: tty: serial: fix spelling typo of 'wheter'

2021-03-09 Thread Wang Qing
wheter -> whether Signed-off-by: Wang Qing --- drivers/tty/serial/sh-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index e1179e7..e3af97a --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sc

[PATCH] net: ethernet: chelsiofix: spelling typo of 'rewriteing'

2021-03-09 Thread Wang Qing
rewriteing -> rewriting Signed-off-by: Wang Qing --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c index 83b4

[PATCH] nfs: Only include nfs42.h when NFS_V4_2 enable

2020-11-20 Thread Wang Qing
Remove duplicate header unnecessary. Only include nfs42.h when NFS_V4_2 enable. Signed-off-by: Wang Qing --- fs/nfs/nfs4proc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 9e0ca9b..a1321a5 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c

[PATCH] drivers\watchdog: Use kobj_to_dev() API

2020-06-12 Thread Wang Qing
Use kobj_to_dev() API instead of container_of(). Signed-off-by: Wang Qing --- drivers/watchdog/watchdog_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 drivers/watchdog/watchdog_dev.c diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watch

[PATCH] drivers\power\supply: use kobj_to_dev

2020-06-12 Thread Wang Qing
Use kobj_to_dev() API instead of container_of(). Signed-off-by: Wang Qing --- drivers/power/supply/power_supply_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 drivers/power/supply/power_supply_sysfs.c diff --git a/drivers/power/sup

[PATCH] drivers\block: Use kobj_to_dev() API

2020-06-12 Thread Wang Qing
Use kobj_to_dev() API instead of container_of(). Signed-off-by: Wang Qing --- drivers/block/virtio_blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 drivers/block/virtio_blk.c diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c in

[PATCH] arm64: smp call when task currently running on other cpu

2020-06-12 Thread Wang Qing
We cannot get FP and PC when the task is running on another CPU, task->thread.cpu_context is the last time the task was switched out, we can use smp call to print backtrace itself. Signed-off-by: Wang Qing --- arch/arm64/kernel/traps.c | 11 +++ 1 file changed, 11 insertions(+) m

[PATCH] drivers\gpio: use kobj_to_dev

2020-06-12 Thread Wang Qing
Use kobj_to_dev() API instead of container_of(). Signed-off-by: Wang Qing --- drivers/gpio/gpiolib-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 drivers/gpio/gpiolib-sysfs.c diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysf

[PATCH] drivers/hwmon/nct6683: Use kobj_to_dev() instead

2020-06-13 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/hwmon/nct6683.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 drivers/hwmon/nct6683.c diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index c022

[PATCH] drivers/video/backlight: Use kobj_to_dev() instead

2020-06-15 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/video/backlight/lm3533_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 drivers/video/backlight/lm3533_bl.c diff --git a/drivers/video/backlight/lm3533_bl.c b/drivers/vi

[PATCH] qlcnic: Use kobj_to_dev() instead

2020-06-15 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c | 34 +++ 1 file changed, 17 insertions(+), 17 deletions(-) mode change 100644 => 100755 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c diff --

[PATCH] drivers/thermal: Use kobj_to_dev() instead

2020-06-15 Thread Wang Qing
Use kobj_to_dev() instead of container_of() Signed-off-by: Wang Qing --- drivers/thermal/thermal_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 drivers/thermal/thermal_sysfs.c diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/ther

[PATCH V2] increase error-prone spell checking

2020-09-25 Thread Wang Qing
Increase direcly,ununsed,manger spelling error check Signed-off-by: Wang Qing --- scripts/spelling.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/spelling.txt b/scripts/spelling.txt index f253681..bd99940 --- a/scripts/spelling.txt +++ b/scripts/spelling.txt @@ -482,6 +482,7

[PATCH] hwmon: fix spelling typo in comments

2020-09-25 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- drivers/hwmon/tmp513.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/tmp513.c b/drivers/hwmon/tmp513.c index 23908dc..c37d321 --- a/drivers/hwmon/tmp51

[PATCH] block: fix a typo for skd_main.c

2020-09-25 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- drivers/block/skd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index ae6454c..e70e764 --- a/drivers

[PATCH V3] doc: zh_CN: add translatation for tmpfs

2020-09-25 Thread Wang Qing
Translate Documentation/filesystems/tmpfs.rst into Chinese. Signed-off-by: Wang Qing --- .../translations/zh_CN/filesystems/index.rst | 1 + .../translations/zh_CN/filesystems/tmpfs.rst | 146 + 2 files changed, 147 insertions(+) create mode 100644

[PATCH] net: wireless: ti: fix a typo in comments

2020-09-25 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- drivers/net/wireless/ti/wl1251/reg.h | 2 +- drivers/net/wireless/ti/wl12xx/reg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ti/wl12

[PATCH] power: supply: fix spelling typo

2020-09-25 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- drivers/power/supply/ds2780_battery.c | 6 +++--- drivers/power/supply/ds2781_battery.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/power/supply/ds27

[PATCH] platform_data: ti: fix a typo

2020-09-25 Thread Wang Qing
Modify the typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- include/linux/platform_data/cros_ec_commands.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_

[PATCH] net: Use kobj_to_dev() API

2020-09-25 Thread Wang Qing
Use kobj_to_dev() instead of container_of(). Signed-off-by: Wang Qing --- drivers/net/phy/spi_ks8995.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index 7475cef..ca49c1a --- a/drivers/net/phy/spi_ks8995.c

[PATCH] nvdimm: Use kobj_to_dev() API

2020-09-25 Thread Wang Qing
Use kobj_to_dev() instead of container_of(). Signed-off-by: Wang Qing --- drivers/nvdimm/namespace_devs.c | 2 +- drivers/nvdimm/region_devs.c| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c index

[PATCH] chrome: Use kobj_to_dev() instead

2020-09-26 Thread Wang Qing
Use kobj_to_dev() instead of container_of(). Signed-off-by: Wang Qing --- drivers/platform/chrome/cros_ec_sysfs.c | 2 +- drivers/platform/chrome/cros_ec_vbc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/chrome/cros_ec_sysfs.c b/drivers/platform

[PATCH V5] doc: zh_CN: add translatation for btrfs

2020-09-28 Thread Wang Qing
Translate Documentation/filesystems/btrfs.rst into Chinese. Signed-off-by: Wang Qing --- Changes in v5: - Fix ref errors in Original. Changes in v4: - Add btrfs index. Changes in v3: - Fix patch format issue. --- .../translations/zh_CN/filesystems/btrfs.rst | 37

[PATCH V4 net-bugfixs] net/ethernet: Update ret when ptp_clock is ERROR

2020-11-11 Thread Wang Qing
We always have to update the value of ret, otherwise the error value may be the previous one. And ptp_clock_register() never return NULL when PTP_1588_CLOCK enable. Signed-off-by: Wang Qing --- drivers/net/ethernet/ti/am65-cpts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH doc] doc: zh_CN: add tmpfs to index tree

2020-11-15 Thread Wang Qing
Add temfs to the index tree while adding tempfs translation. Signed-off-by: Wang Qing --- Documentation/translations/zh_CN/filesystems/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/translations/zh_CN/filesystems/index.rst b/Documentation/translations/zh_CN

[PATCH] arm: Add clk_get_rate input parameter null check

2020-11-05 Thread Wang Qing
The input parameter of clk_get_rate() is checked with IS_ERR(), so here we need to check null on clk. Signed-off-by: Wang Qing --- arch/arm/mach-ep93xx/clock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index 2810eb5

[PATCH V2] sched/rt, powerpc: Prepare for PREEMPT_RT

2020-11-10 Thread Wang Qing
PREEMPT_RT is a separate preemption model, CONFIG_PRTTMPT will be disabled when CONFIG_PREEMPT_RT is enabled, so you need to add CONFIG_PREEMPT_RT judgments to __die(). Signed-off-by: Wang Qing Changes in v2: - Modify as Christophe suggested. --- arch/powerpc/kernel/traps.c | 3 ++- 1 file

[PATCH V3] sched/rt, powerpc: Prepare for PREEMPT_RT

2020-11-10 Thread Wang Qing
PREEMPT_RT is a separate preemption model, CONFIG_PREEMPT will be disabled when CONFIG_PREEMPT_RT is enabled, so we need to add CONFIG_PREEMPT_RT output to __die(). Signed-off-by: Wang Qing Changes in v3: - Fix typo issue. Changes in v2: - Modify as Christophe suggested. --- arch/powerpc

[PATCH] drm: Use IS_ERR() instead of null pointer check

2020-11-05 Thread Wang Qing
a6xx_gmu_get_mmio() never return null in case of error, but ERR_PTR(), so we should use IS_ERR() instead of null pointer check Signed-off-by: Wang Qing --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno

[PATCH] drm: Use IS_ERR() instead of IS_ERR_OR_NULL()

2020-11-05 Thread Wang Qing
dev_pm_opp_find_freq_exact never return null but ERR_PTR(),so we should use IS_ERR() to clarify and avoid compilation warnings. Signed-off-by: Wang Qing --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno

[PATCH] usb: Assign NULL ​​to phy that may be returned

2020-11-05 Thread Wang Qing
Assign initial values ​​to local variables that may be returned Signed-off-by: Wang Qing --- drivers/usb/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index b47285f..de21967 --- a/drivers/usb/phy/phy.c +++ b/drivers

  1   2   >