[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 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 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] 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] 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 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 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 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 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 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 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 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 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 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] 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 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] 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] 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] 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] 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] 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: 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] 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 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 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] 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] 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] 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] 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] 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 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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/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/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/pxa168fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev

[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] 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

[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

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.

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

2021-03-08 Thread Wang Qing

[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] 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] 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] 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: 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] 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] 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] 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] 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

[tip: core/rcu] locking: Remove duplicate include of percpu-rwsem.h

2021-02-12 Thread tip-bot2 for Wang Qing
The following commit has been merged into the core/rcu branch of tip: Commit-ID: c5586e32dfe258925c5dbb599bea3eadf34e79c1 Gitweb: https://git.kernel.org/tip/c5586e32dfe258925c5dbb599bea3eadf34e79c1 Author:Wang Qing AuthorDate:Sat, 07 Nov 2020 16:24:03 +08:00 Committer

[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

[tip: x86/cleanups] x86/head64: Remove duplicate include

2020-11-20 Thread tip-bot2 for Wang Qing
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 61b39ad9a7d26fe14a2f5f23e5e940e7f9664d41 Gitweb: https://git.kernel.org/tip/61b39ad9a7d26fe14a2f5f23e5e940e7f9664d41 Author:Wang Qing AuthorDate:Mon, 09 Nov 2020 11:45:41 +08:00 Committer

[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 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 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 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] x86: remove duplicate include

2020-11-08 Thread Wang Qing
Remove duplicate header which is included twice. Signed-off-by: Wang Qing --- arch/x86/kernel/head64.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 05e1171..5e9beb7 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c

[PATCH] touchscreen: use kobj_to_dev() API

2020-11-08 Thread Wang Qing
Use kobj_to_dev() instead of container_of(). Signed-off-by: Wang Qing --- drivers/input/touchscreen/ads7846.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 8fd7fc3..ee74da2 --- a/drivers/input

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

2020-11-08 Thread Wang Qing
Add PREEMPT_RT output to die(). Signed-off-by: Wang Qing --- arch/powerpc/kernel/traps.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 5006dcb..6dfe567 --- a/arch/powerpc/kernel/traps.c +++ b/arch

[PATCH] arch: sh: remove duplicate include

2020-11-08 Thread Wang Qing
Remove duplicate header which is included twice. Signed-off-by: Wang Qing --- arch/sh/kernel/cpu/sh3/entry.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/kernel/cpu/sh3/entry.S b/arch/sh/kernel/cpu/sh3/entry.S index 25eb809..e48b3dd --- a/arch/sh/kernel/cpu/sh3/entry.S +++ b/arch

[PATCH] scsi: use kobj_to_dev() instead

2020-11-08 Thread Wang Qing
Use kobj_to_dev() instead of container_of(). Signed-off-by: Wang Qing --- drivers/scsi/3w-sas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index dda6fa8..7cde82e --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c

[PATCH] sh: mach-sh03: remove duplicate include

2020-11-08 Thread Wang Qing
Remove duplicate header which is included twice. Signed-off-by: Wang Qing --- arch/sh/boards/mach-sh03/rtc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/boards/mach-sh03/rtc.c b/arch/sh/boards/mach-sh03/rtc.c index 8b23ed7..7fb4748 100644 --- a/arch/sh/boards/mach-sh03/rtc.c

[PATCH V3 net] net/ethernet: Fix error return when ptp_clock is ERROR

2020-11-08 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 V4 DOC] doc: zh_CN: add translatation for tmpfs

2020-11-08 Thread Wang Qing
Translate Documentation/filesystems/tmpfs.rst into Chinese. Signed-off-by: Wang Qing Changes in v4: - Modify as Alex required. Changes in v3: - Fix patch format issue. --- .../translations/zh_CN/filesystems/tmpfs.rst | 146 + 1 file changed, 146 insertions

[PATCH] arm: mach-sa1100: remove duplicate include

2020-11-07 Thread Wang Qing
Remove duplicate header which is included twice. Signed-off-by: Wang Qing --- arch/arm/mach-sa1100/hackkit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-sa1100/hackkit.c b/arch/arm/mach-sa1100/hackkit.c index 3085f1c..3fe34ee --- a/arch/arm/mach-sa1100/hackkit.c +++ b/arch

[PATCH] tool: selftests: fix spelling typo of 'writting'

2020-11-07 Thread Wang Qing
writting -> writing Signed-off-by: Wang Qing --- tools/testing/selftests/vm/userfaultfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index 9b0912a..9132fae7 --- a/tools/test

[PATCH] arm: mm: remove duplicate include

2020-11-07 Thread Wang Qing
Remove duplicate header which is included twice. Signed-off-by: Wang Qing --- arch/arm/mm/mmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index ab69250..4963e1c --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -33,7 +33,6 @@ #include #include

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

2020-11-07 Thread Wang Qing
Translate Documentation/filesystems/tmpfs.rst into Chinese. Signed-off-by: Wang Qing Changes in v3: - Fix patch format issue. --- .../translations/zh_CN/filesystems/tmpfs.rst | 146 + 1 file changed, 146 insertions(+) create mode 100644 Documentation/translations

[PATCH] wireless: realtek: fix spelling typo of workaround

2020-11-07 Thread Wang Qing
workarould -> workaround Signed-off-by: Wang Qing --- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c in

[PATCH] sched: remove duplicate include unnecessary

2020-11-07 Thread Wang Qing
Remove duplicate header include which is unnecessary. Signed-off-by: Wang Qing --- kernel/sched/sched.h | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index df80bfc..dd91a8b --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -351,7 +351,6

[PATCH] locking: remove duplicate include of percpu-rwsem.h

2020-11-07 Thread Wang Qing
Remove duplicate header include which is unnecessary. Signed-off-by: Wang Qing --- kernel/locking/locktorture.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c index 62d215b..af99e9c 100644 --- a/kernel/locking/locktorture.c +++ b

[PATCH] firmware: fix spelling typo of 'wtih'

2020-11-07 Thread Wang Qing
wtih -> with Signed-off-by: Wang Qing --- drivers/firmware/raspberrypi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c index 2371d08..30259dc --- a/drivers/firmware/raspberrypi.c +++ b/drivers/firmw

[PATCH] bpf: remove duplicate include

2020-11-07 Thread Wang Qing
Remove duplicate header which is included twice. Signed-off-by: Wang Qing --- kernel/bpf/btf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index ed7d02e..6324de8 --- a/kernel/bpf/btf.c +++ b/kernel/bpf/btf.c @@ -22,7 +22,6 @@ #include #include

[PATCH v3 bpf] trace: bpf: Fix passing zero to PTR_ERR()

2020-11-06 Thread Wang Qing
There is a bug when passing zero to PTR_ERR() and return. Fix smatch err. Signed-off-by: Wang Qing --- kernel/trace/bpf_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 4517c8b..5113fd4 --- a/kernel/trace

[V2] trace: Fix passing zero to PTR_ERR()

2020-11-06 Thread Wang Qing
There is a bug when passing zero to PTR_ERR() and return. Fix smatch err. Signed-off-by: Wang Qing --- kernel/trace/bpf_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 4517c8b..5113fd4 --- a/kernel/trace

[V2] [PATCH] net/ethernet: update ret when ptp_clock is ERROR

2020-11-06 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, so we use IS_ERR here. Signed-off-by: Wang Qing --- drivers/net/ethernet/ti/am65-cpts.c | 5 ++--- 1 file changed, 2 insertions

[PATCH] pcp_clock: return EOPNOTSUPP if !CONFIG_PTP_1588_CLOCK

2020-11-06 Thread Wang Qing
pcp_clock_register() is checked with IS_ERR(), and will crash if !PTP, change return value to ERR_PTR(-EOPNOTSUPP) for the !CONFIG_PTP_1588_CLOCK and so question resolved. Signed-off-by: Wang Qing --- include/linux/ptp_clock_kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[V2] drm: msm: adreno: use IS_ERR() instead of null pointer check

2020-11-06 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 and IS_ERR_OR_NULL(). Signed-off-by: Wang Qing --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH] ntb: idt: fix error check in ntb_hw_idt.c

2020-11-06 Thread Wang Qing
idt_create_dev never return NULL and fix smatch warning. Signed-off-by: Wang Qing --- drivers/ntb/hw/idt/ntb_hw_idt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ntb/hw/idt/ntb_hw_idt.c b/drivers/ntb/hw/idt/ntb_hw_idt.c index d54261f..e7a4c2a --- a/drivers

[PATCH] arm: fix a typo

2020-11-06 Thread Wang Qing
withing should be within. Signed-off-by: Wang Qing --- arch/c6x/platforms/megamod-pic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/c6x/platforms/megamod-pic.c b/arch/c6x/platforms/megamod-pic.c index 56189e5..adac7ac --- a/arch/c6x/platforms/megamod-pic.c +++ b

[PATCH] crypto: Fix return value check in aead_crypt()

2020-11-06 Thread Wang Qing
Fix passing zero to 'PTR_ERR' warning Signed-off-by: Wang Qing --- drivers/crypto/caam/caamalg_qi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam/caamalg_qi.c b/drivers/crypto/caam/caamalg_qi.c index 66f60d7..add60e8 --- a/drivers/c

[PATCH] trace: Fix passing zero to 'PTR_ERR' warning

2020-11-06 Thread Wang Qing
Fix smatch warning. Signed-off-by: Wang Qing --- kernel/trace/bpf_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 4517c8b..2cb9c45 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -1198,7

  1   2   >