Re: [PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

2019-03-08 Thread Hsin-Yi Wang
On Fri, Mar 8, 2019 at 10:52 PM Wolfram Sang wrote: > > > > > I just checked this issue again and concluded that both are reasonable, > > > the suggestion from me below with the adapter quirk AND your original > > > patch setting the threshold to 1. With my suggestion the core will > > > prevent

Re: [PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

2019-03-08 Thread Hsin-Yi Wang
On Fri, Mar 8, 2019 at 7:29 PM Wolfram Sang wrote: > > On Fri, Feb 22, 2019 at 02:04:11PM +0800, Hsin-Yi Wang wrote: > > Thanks for the solution. > > Previously we were testing if the driver can handle zero-length > > transfer, but it turns out it will timeout. (Also che

Re: [PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

2019-02-21 Thread Hsin-Yi Wang
Thanks for the solution. Previously we were testing if the driver can handle zero-length transfer, but it turns out it will timeout. (Also checked this from mtk's datasheet) Adding original owner qii.wang to verify that. We'll apply this after verification. On Sat, Feb 16, 2019 at 12:36 AM

Re: [PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

2019-02-15 Thread Hsin-Yi Wang
Ok, I can add a check in another patch. Should we return NULL pointer if msg->len is 0 or print out some warnings? Thanks. On Fri, Feb 15, 2019 at 5:10 PM Wolfram Sang wrote: > > On Fri, Feb 15, 2019 at 05:02:02PM +0800, Hsin-Yi Wang wrote: > > i2c_get_dma_safe_msg_buf() alloca

[PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

2019-02-15 Thread Hsin-Yi Wang
function returns NULL pointer. Fixes: fc66b39fe36a ("i2c: mediatek: Use DMA safe buffers for i2c transactions") Signed-off-by: Hsin-Yi Wang --- drivers/i2c/busses/i2c-mt65xx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/dri

[PATCH] [next] kvm: vmx: fix some -Wmissing-prototypes warnings

2019-01-20 Thread Yi Wang
static to fix this. Signed-off-by: Yi Wang --- arch/x86/kvm/vmx/nested.c | 2 +- arch/x86/kvm/vmx/vmx.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c index 2616bd2..f8af511 100644 --- a/arch/x86/kvm/vmx/nested.c

[PATCH v2] x86/boot/e820: Use kmemdup instead of duplicating its function

2019-01-11 Thread Yi Wang
From: "Huang Zijiang" changes since v1: redo the patch based on suggestions from Boris. v1 link:https://lkml.org/lkml/2019/1/8/30 kmemdup is the same function as kmalloc() + memcpy(). Signed-off-by: Huang Zijiang --- arch/x86/kernel/e820.c | 9 +++-- 1 file changed, 3

[PATCH resend] drm/panel: panel-innolux: set display off in innolux_panel_unprepare

2019-01-08 Thread Hsin-Yi, Wang
()), so we need these functions to be called after the switch to cmd mode happens, i.e. in innolux_panel_unprepare. Signed-off-by: Hsin-Yi, Wang --- Resend for review. --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git

[PATCH] x86:kernel:e820c:kmemdup instead of duplicating its function

2019-01-07 Thread Yi Wang
From: "huang.zijiang" kmemdup has implemented the function that kmalloc() and memcpy(). Signed-off-by: huang.zijiang --- arch/x86/kernel/e820.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 50895c2..a687d10

[PATCH] virtio:linux:kernel:NULL check after kmalloc is needed

2019-01-07 Thread Yi Wang
From: "huang.zijiang" NULL check is needed because kmalloc maybe return NULL. Signed-off-by: huang.zijiang --- tools/virtio/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h index 7ef45a4..2afcad8 100644 ---

[PATCH] fsl/fman: avoid sleeping in atomic context while adding an address

2019-01-03 Thread Yi Wang
From: Junhua Huang dev_set_rx_mode will call function pointer mac_dev->add_hash_mac_addr while holding spin_lock_bh. The function pointer points to memac_add_hash_mac_address when ethernet type is fman-memac, which will kmalloc use GFP_KERNEL flag. / # ifconfig eth2 192.168.1.168 [

[PATCH] panel-innolux: set display off in innolux_panel_unprepare

2018-12-20 Thread Hsin-Yi, Wang
()), so we need these functions to be called after the switch to cmd mode happens, i.e. in innolux_panel_unprepare. Signed-off-by: Hsin-Yi, Wang --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel

Re: [PATCH v4] usb/mtu3: power down device ip at setup

2018-11-28 Thread Hsin-Yi Wang
Thanks! On Thu, Nov 29, 2018 at 2:26 PM Chunfeng Yun wrote: > > hi Hsin-Yi, > > On Thu, 2018-11-29 at 11:16 +0800, Hsin-Yi, Wang wrote: > > Originally, when dr_mode is USB_DR_MODE_HOST, it didn't power down device > > ip, > > so host ip sleep will fail at ssusb_ho

Re: [PATCH v4] usb/mtu3: power down device ip at setup

2018-11-28 Thread Hsin-Yi Wang
Thanks! On Thu, Nov 29, 2018 at 2:26 PM Chunfeng Yun wrote: > > hi Hsin-Yi, > > On Thu, 2018-11-29 at 11:16 +0800, Hsin-Yi, Wang wrote: > > Originally, when dr_mode is USB_DR_MODE_HOST, it didn't power down device > > ip, > > so host ip sleep will fail at ssusb_ho

[tip:x86/cleanups] x86/headers: Fix -Wmissing-prototypes warning

2018-11-22 Thread tip-bot for Yi Wang
Commit-ID: 89f579ce99f7e028e81885d3965f973c0f787611 Gitweb: https://git.kernel.org/tip/89f579ce99f7e028e81885d3965f973c0f787611 Author: Yi Wang AuthorDate: Thu, 22 Nov 2018 10:04:09 +0800 Committer: Ingo Molnar CommitDate: Fri, 23 Nov 2018 07:59:59 +0100 x86/headers: Fix -Wmissing

[tip:x86/cleanups] x86/headers: Fix -Wmissing-prototypes warning

2018-11-22 Thread tip-bot for Yi Wang
Commit-ID: 89f579ce99f7e028e81885d3965f973c0f787611 Gitweb: https://git.kernel.org/tip/89f579ce99f7e028e81885d3965f973c0f787611 Author: Yi Wang AuthorDate: Thu, 22 Nov 2018 10:04:09 +0800 Committer: Ingo Molnar CommitDate: Fri, 23 Nov 2018 07:59:59 +0100 x86/headers: Fix -Wmissing

[tip:x86/cleanups] x86/headers: Fix -Wmissing-prototypes warning

2018-11-22 Thread tip-bot for Yi Wang
Commit-ID: d37904c5b14317a2c76efec6b9e4dbcaa17380e5 Gitweb: https://git.kernel.org/tip/d37904c5b14317a2c76efec6b9e4dbcaa17380e5 Author: Yi Wang AuthorDate: Thu, 22 Nov 2018 10:04:09 +0800 Committer: Ingo Molnar CommitDate: Thu, 22 Nov 2018 09:52:28 +0100 x86/headers: Fix -Wmissing

[tip:x86/cleanups] x86/headers: Fix -Wmissing-prototypes warning

2018-11-22 Thread tip-bot for Yi Wang
Commit-ID: d37904c5b14317a2c76efec6b9e4dbcaa17380e5 Gitweb: https://git.kernel.org/tip/d37904c5b14317a2c76efec6b9e4dbcaa17380e5 Author: Yi Wang AuthorDate: Thu, 22 Nov 2018 10:04:09 +0800 Committer: Ingo Molnar CommitDate: Thu, 22 Nov 2018 09:52:28 +0100 x86/headers: Fix -Wmissing

[PATCH] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-11-21 Thread Yi Wang
From: Wen Yang Currently there are 2 problems with the ucc_of_parse_tdm function: 1,a possible null pointer dereference in ucc_of_parse_tdm, detected by the semantic patch deref_null.cocci, with the following warning: drivers/soc/fsl/qe/qe_tdm.c:177:21-24: ERROR: pdev is NULL but dereferenced.

[PATCH] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-11-21 Thread Yi Wang
From: Wen Yang Currently there are 2 problems with the ucc_of_parse_tdm function: 1,a possible null pointer dereference in ucc_of_parse_tdm, detected by the semantic patch deref_null.cocci, with the following warning: drivers/soc/fsl/qe/qe_tdm.c:177:21-24: ERROR: pdev is NULL but dereferenced.

[PATCH v2] fork: Fix some -Wmissing-prototypes warnings

2018-11-13 Thread Yi Wang
this. Also, remove arch_release_thread_stack() completely because no arch seems to implement it since bb9d81264 (arch: remove tile port). Signed-off-by: Yi Wang --- v2: remove arch_release_thread_stack(). Thanks to Rasmus. --- include/linux/sched/task.h | 2 ++ init/main.c| 1

[PATCH v2] fork: Fix some -Wmissing-prototypes warnings

2018-11-13 Thread Yi Wang
this. Also, remove arch_release_thread_stack() completely because no arch seems to implement it since bb9d81264 (arch: remove tile port). Signed-off-by: Yi Wang --- v2: remove arch_release_thread_stack(). Thanks to Rasmus. --- include/linux/sched/task.h | 2 ++ init/main.c| 1

[PATCH] fork: Fix two -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
to fix this. Signed-off-by: Yi Wang --- arch/x86/include/asm/thread_info.h | 1 + include/linux/sched/task.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 2ff2a30..8621036 100644 --- a/arch/x86/include/asm

[PATCH] fork: Fix two -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
to fix this. Signed-off-by: Yi Wang --- arch/x86/include/asm/thread_info.h | 1 + include/linux/sched/task.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 2ff2a30..8621036 100644 --- a/arch/x86/include/asm

[PATCH] x86/process: Fix some -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
/kernel/process.c:784:6: warning: no previous prototype for ‘do_arch_prctl_common’ [-Wmissing-prototypes] Add the missing including files to fix this. Signed-off-by: Yi Wang --- arch/x86/kernel/process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/process.c b/arch/x86

[PATCH] x86/process: Fix some -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
/kernel/process.c:784:6: warning: no previous prototype for ‘do_arch_prctl_common’ [-Wmissing-prototypes] Add the missing including files to fix this. Signed-off-by: Yi Wang --- arch/x86/kernel/process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/process.c b/arch/x86

[PATCH] x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known()

2018-11-12 Thread Yi Wang
-by: Yi Wang --- arch/x86/include/asm/tsc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/tsc.h b/arch/x86/include/asm/tsc.h index eb5bbfe..8a0c25c 100644 --- a/arch/x86/include/asm/tsc.h +++ b/arch/x86/include/asm/tsc.h @@ -35,6 +35,7 @@ static inline cycles_t get_cycles

[PATCH] x86/tsc: Fix -Wmissing-prototypes warning for calibrate_delay_is_known()

2018-11-12 Thread Yi Wang
-by: Yi Wang --- arch/x86/include/asm/tsc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/tsc.h b/arch/x86/include/asm/tsc.h index eb5bbfe..8a0c25c 100644 --- a/arch/x86/include/asm/tsc.h +++ b/arch/x86/include/asm/tsc.h @@ -35,6 +35,7 @@ static inline cycles_t get_cycles

[PATCH] x86/irq: Fix -Wmissing-prototypes warning for init_IRQ()

2018-11-12 Thread Yi Wang
We get a warning when building kernel with W=1: arch/x86/kernel/irqinit.c:79:13: warning: no previous prototype for ‘init_IRQ’ [-Wmissing-prototypes] void __init init_IRQ(void) ^ Add the missing declaration in head file to fix this. Signed-off-by: Yi Wang --- arch/x86/include

[PATCH] x86/irq: Fix -Wmissing-prototypes warning for init_IRQ()

2018-11-12 Thread Yi Wang
We get a warning when building kernel with W=1: arch/x86/kernel/irqinit.c:79:13: warning: no previous prototype for ‘init_IRQ’ [-Wmissing-prototypes] void __init init_IRQ(void) ^ Add the missing declaration in head file to fix this. Signed-off-by: Yi Wang --- arch/x86/include

[PATCH] sched/rt: Fix -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
We get a warning when building kernel with W=1: kernel/sched/rt.c:626:6: warning: no previous prototype for ‘sched_rt_bandwidth_account’ [-Wmissing-prototypes] bool sched_rt_bandwidth_account(struct rt_rq *rt_rq) Add the missing declaration to fix this. Signed-off-by: Yi Wang --- kernel

[PATCH] sched/rt: Fix -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
We get a warning when building kernel with W=1: kernel/sched/rt.c:626:6: warning: no previous prototype for ‘sched_rt_bandwidth_account’ [-Wmissing-prototypes] bool sched_rt_bandwidth_account(struct rt_rq *rt_rq) Add the missing declaration to fix this. Signed-off-by: Yi Wang --- kernel

[PATCH] KVM: x86: fix empty-body warnings

2018-11-08 Thread Yi Wang
] arch/x86/kvm/lapic.c:1936:65: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1975:44: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Rework the debug helper macro to get rid of these warnings. Signed-off-by: Yi

[PATCH] KVM: x86: fix empty-body warnings

2018-11-08 Thread Yi Wang
] arch/x86/kvm/lapic.c:1936:65: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1975:44: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Rework the debug helper macro to get rid of these warnings. Signed-off-by: Yi

[PATCH] sched/fair: make some function static

2018-11-07 Thread Yi Wang
for ‘task_tick_numa’ [-Wmissing-prototypes] kernel/sched/fair.c:3548:6: warning: no previous prototype for ‘sync_entity_load_avg’ [-Wmissing-prototypes] kernel/sched/fair.c:3561:6: warning: no previous prototype for ‘remove_entity_load_avg’ [-Wmissing-prototypes] Signed-off-by: Yi Wang --- kernel

[PATCH] sched/fair: make some function static

2018-11-07 Thread Yi Wang
for ‘task_tick_numa’ [-Wmissing-prototypes] kernel/sched/fair.c:3548:6: warning: no previous prototype for ‘sync_entity_load_avg’ [-Wmissing-prototypes] kernel/sched/fair.c:3561:6: warning: no previous prototype for ‘remove_entity_load_avg’ [-Wmissing-prototypes] Signed-off-by: Yi Wang --- kernel

[PATCH] x86/kvm/vmx: fix old-style function declaration

2018-11-07 Thread Yi Wang
’ is not at beginning of declaration [-Wold-style-declaration] arch/x86/kvm/vmx.c:5985:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] arch/x86/kvm/vmx.c:6023:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Yi Wang

[PATCH] x86/kvm/vmx: fix old-style function declaration

2018-11-07 Thread Yi Wang
’ is not at beginning of declaration [-Wold-style-declaration] arch/x86/kvm/vmx.c:5985:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] arch/x86/kvm/vmx.c:6023:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: Yi Wang

[PATCH v2] x86/cpu: fix prototype warning

2018-11-07 Thread Yi Wang
/x86/kernel/cpu/topology.c:25:5: warning: no previous prototype for ‘detect_extended_topology_early’ [-Wmissing-prototypes] arch/x86/kernel/cpu/topology.c:57:5: warning: no previous prototype for ‘detect_extended_topology’ [-Wmissing-prototypes] Signed-off-by: Yi Wang --- v2: merge the series

[PATCH v2] x86/cpu: fix prototype warning

2018-11-07 Thread Yi Wang
/x86/kernel/cpu/topology.c:25:5: warning: no previous prototype for ‘detect_extended_topology_early’ [-Wmissing-prototypes] arch/x86/kernel/cpu/topology.c:57:5: warning: no previous prototype for ‘detect_extended_topology’ [-Wmissing-prototypes] Signed-off-by: Yi Wang --- v2: merge the series

[PATCH 1/3] x86/cpu: fix prototype warning in cacheinfo.c

2018-11-07 Thread Yi Wang
-off-by: Yi Wang --- arch/x86/kernel/cpu/cacheinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c index dc1b934..5bafd93 100644 --- a/arch/x86/kernel/cpu/cacheinfo.c +++ b/arch/x86/kernel/cpu/cacheinfo.c @@ -19,6 +19,7

[PATCH 1/3] x86/cpu: fix prototype warning in cacheinfo.c

2018-11-07 Thread Yi Wang
-off-by: Yi Wang --- arch/x86/kernel/cpu/cacheinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c index dc1b934..5bafd93 100644 --- a/arch/x86/kernel/cpu/cacheinfo.c +++ b/arch/x86/kernel/cpu/cacheinfo.c @@ -19,6 +19,7

[PATCH 3/3] x86/cpu: fix prototype warning in topology.c

2018-11-07 Thread Yi Wang
-off-by: Yi Wang --- arch/x86/kernel/cpu/topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c index 71ca064..8f6c784 100644 --- a/arch/x86/kernel/cpu/topology.c +++ b/arch/x86/kernel/cpu/topology.c @@ -10,6 +10,8

[PATCH 2/3] x86/cpu: fix prototype warning in scattered.c

2018-11-07 Thread Yi Wang
-off-by: Yi Wang --- arch/x86/kernel/cpu/scattered.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index 772c219..5b6866f 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -9,6 +9,8

[PATCH 3/3] x86/cpu: fix prototype warning in topology.c

2018-11-07 Thread Yi Wang
-off-by: Yi Wang --- arch/x86/kernel/cpu/topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c index 71ca064..8f6c784 100644 --- a/arch/x86/kernel/cpu/topology.c +++ b/arch/x86/kernel/cpu/topology.c @@ -10,6 +10,8

[PATCH 2/3] x86/cpu: fix prototype warning in scattered.c

2018-11-07 Thread Yi Wang
-off-by: Yi Wang --- arch/x86/kernel/cpu/scattered.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index 772c219..5b6866f 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -9,6 +9,8

[PATCH 0/3] x86/cpu: fix some prototype warning

2018-11-07 Thread Yi Wang
This series of patch fix some prototype warning because of missing include file. Yi Wang (3): x86/cpu: fix prototype warning in cacheinfo.c x86/cpu: fix prototype warning in scattered.c x86/cpu: fix prototype warning in topology.c arch/x86/kernel/cpu/cacheinfo.c | 1 + arch/x86/kernel/cpu

[PATCH 0/3] x86/cpu: fix some prototype warning

2018-11-07 Thread Yi Wang
This series of patch fix some prototype warning because of missing include file. Yi Wang (3): x86/cpu: fix prototype warning in cacheinfo.c x86/cpu: fix prototype warning in scattered.c x86/cpu: fix prototype warning in topology.c arch/x86/kernel/cpu/cacheinfo.c | 1 + arch/x86/kernel/cpu

[PATCH] cpuset: remove set but not used variable 'cs'

2018-11-06 Thread Yi Wang
This fixes the following warning: kernel/cgroup/cpuset.c: In function ‘cpuset_cancel_attach’: kernel/cgroup/cpuset.c:1501:17: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable] struct cpuset *cs; ^ Signed-off-by: Yi Wang --- kernel/cgroup/cpuset.c | 2 -- 1

[PATCH] cpuset: remove set but not used variable 'cs'

2018-11-06 Thread Yi Wang
This fixes the following warning: kernel/cgroup/cpuset.c: In function ‘cpuset_cancel_attach’: kernel/cgroup/cpuset.c:1501:17: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable] struct cpuset *cs; ^ Signed-off-by: Yi Wang --- kernel/cgroup/cpuset.c | 2 -- 1

[PATCH] x86/irq: fix build warning in irq.c

2018-11-06 Thread Yi Wang
smp_kvm_posted_intr_wakeup_ipi(struct pt_regs *regs) ^ arch/x86/kernel/irq.c:328:16: warning: no previous prototype for ‘smp_kvm_posted_intr_nested_ipi’ [-Wmissing-prototypes] __visible void smp_kvm_posted_intr_nested_ipi(struct pt_regs *regs) ^ Signed-off-by: Yi Wang --- arch

[PATCH] x86/irq: fix build warning in irq.c

2018-11-06 Thread Yi Wang
smp_kvm_posted_intr_wakeup_ipi(struct pt_regs *regs) ^ arch/x86/kernel/irq.c:328:16: warning: no previous prototype for ‘smp_kvm_posted_intr_nested_ipi’ [-Wmissing-prototypes] __visible void smp_kvm_posted_intr_nested_ipi(struct pt_regs *regs) ^ Signed-off-by: Yi Wang --- arch

[tip:x86/urgent] x86/hyper-v: Fix indentation in hv_do_fast_hypercall16()

2018-11-05 Thread tip-bot for Yi Wang
Commit-ID: b42967dcac1d4f5b059ec25568136462bcb051fe Gitweb: https://git.kernel.org/tip/b42967dcac1d4f5b059ec25568136462bcb051fe Author: Yi Wang AuthorDate: Mon, 29 Oct 2018 15:17:31 +0800 Committer: Thomas Gleixner CommitDate: Mon, 5 Nov 2018 16:45:24 +0100 x86/hyper-v: Fix

[tip:x86/urgent] x86/hyper-v: Fix indentation in hv_do_fast_hypercall16()

2018-11-05 Thread tip-bot for Yi Wang
Commit-ID: b42967dcac1d4f5b059ec25568136462bcb051fe Gitweb: https://git.kernel.org/tip/b42967dcac1d4f5b059ec25568136462bcb051fe Author: Yi Wang AuthorDate: Mon, 29 Oct 2018 15:17:31 +0800 Committer: Thomas Gleixner CommitDate: Mon, 5 Nov 2018 16:45:24 +0100 x86/hyper-v: Fix

[tip:x86/urgent] x86/hyper-v: Fix indentation in hv_do_fast_hypercall16()

2018-11-05 Thread tip-bot for Yi Wang
Commit-ID: eb8fde6217d6229155c7ec6bdf6b31e4717fb3da Gitweb: https://git.kernel.org/tip/eb8fde6217d6229155c7ec6bdf6b31e4717fb3da Author: Yi Wang AuthorDate: Mon, 29 Oct 2018 15:17:31 +0800 Committer: Thomas Gleixner CommitDate: Mon, 5 Nov 2018 12:35:03 +0100 x86/hyper-v: Fix

[tip:x86/urgent] x86/hyper-v: Fix indentation in hv_do_fast_hypercall16()

2018-11-05 Thread tip-bot for Yi Wang
Commit-ID: eb8fde6217d6229155c7ec6bdf6b31e4717fb3da Gitweb: https://git.kernel.org/tip/eb8fde6217d6229155c7ec6bdf6b31e4717fb3da Author: Yi Wang AuthorDate: Mon, 29 Oct 2018 15:17:31 +0800 Committer: Thomas Gleixner CommitDate: Mon, 5 Nov 2018 12:35:03 +0100 x86/hyper-v: Fix

[tip:sched/urgent] sched/fair: Fix a comment in task_numa_fault()

2018-11-04 Thread tip-bot for Yi Wang
Commit-ID: e1ff516a56ad56c476b47795d3811eef79d25fbe Gitweb: https://git.kernel.org/tip/e1ff516a56ad56c476b47795d3811eef79d25fbe Author: Yi Wang AuthorDate: Mon, 5 Nov 2018 08:50:13 +0800 Committer: Ingo Molnar CommitDate: Mon, 5 Nov 2018 07:03:59 +0100 sched/fair: Fix a comment

[tip:sched/urgent] sched/fair: Fix a comment in task_numa_fault()

2018-11-04 Thread tip-bot for Yi Wang
Commit-ID: e1ff516a56ad56c476b47795d3811eef79d25fbe Gitweb: https://git.kernel.org/tip/e1ff516a56ad56c476b47795d3811eef79d25fbe Author: Yi Wang AuthorDate: Mon, 5 Nov 2018 08:50:13 +0800 Committer: Ingo Molnar CommitDate: Mon, 5 Nov 2018 07:03:59 +0100 sched/fair: Fix a comment

[RESEND PATCH] sched/fair: fix a comment in task_numa_fault()

2018-11-04 Thread Yi Wang
Fix the comment in task_numa_fault() to avoid confusing. Signed-off-by: Yi Wang Reviewed-by: Xi Xu --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 908c9cd..6430c0a 100644 --- a/kernel/sched/fair.c

[RESEND PATCH] sched/fair: fix a comment in task_numa_fault()

2018-11-04 Thread Yi Wang
Fix the comment in task_numa_fault() to avoid confusing. Signed-off-by: Yi Wang Reviewed-by: Xi Xu --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 908c9cd..6430c0a 100644 --- a/kernel/sched/fair.c

[PATCH v3 2/2] clk: boston: unregister clks on failure in clk_boston_setup()

2018-10-31 Thread Yi Wang
The registered clks should unregister when something wrong happens before going out in function clk_boston_setup(). Signed-off-by: Yi Wang --- drivers/clk/imgtec/clk-boston.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/clk/imgtec/clk-boston.c

[PATCH v3 2/2] clk: boston: unregister clks on failure in clk_boston_setup()

2018-10-31 Thread Yi Wang
The registered clks should unregister when something wrong happens before going out in function clk_boston_setup(). Signed-off-by: Yi Wang --- drivers/clk/imgtec/clk-boston.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/clk/imgtec/clk-boston.c

[PATCH v3 1/2] clk: boston: fix possible memory leak in clk_boston_setup()

2018-10-31 Thread Yi Wang
of 'onecell' 'onecell' is malloced in clk_boston_setup(), but not be freed before leaving from the error handling cases. Signed-off-by: Yi Wang --- drivers/clk/imgtec/clk-boston.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imgtec/clk-boston.c b

[PATCH v3 1/2] clk: boston: fix possible memory leak in clk_boston_setup()

2018-10-31 Thread Yi Wang
of 'onecell' 'onecell' is malloced in clk_boston_setup(), but not be freed before leaving from the error handling cases. Signed-off-by: Yi Wang --- drivers/clk/imgtec/clk-boston.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imgtec/clk-boston.c b

[PATCH v3 0/2] fix memory leak and unregister issue in clk_boston_setup()

2018-10-31 Thread Yi Wang
This fix two issues in clk_boston_setup() function: - possible memory leak of 'onecell' - registered clks not unregister when error happens Changes from v2: - include smatch to the commit - unregister clks which registered before going out Yi Wang (2): clk: boston: fix possible memory leak

[PATCH v3 0/2] fix memory leak and unregister issue in clk_boston_setup()

2018-10-31 Thread Yi Wang
This fix two issues in clk_boston_setup() function: - possible memory leak of 'onecell' - registered clks not unregister when error happens Changes from v2: - include smatch to the commit - unregister clks which registered before going out Yi Wang (2): clk: boston: fix possible memory leak

[PATCH v2] clk: boston: fix possible memory leak in clk_boston_setup()

2018-10-29 Thread Yi Wang
'onecell' is malloced in clk_boston_setup(), but is not freed before leaving from the error handling cases. Signed-off-by: Yi Wang --- v2: fix syntax issue in comment, thanks to Sergei. drivers/clk/imgtec/clk-boston.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff

[PATCH v2] clk: boston: fix possible memory leak in clk_boston_setup()

2018-10-29 Thread Yi Wang
'onecell' is malloced in clk_boston_setup(), but is not freed before leaving from the error handling cases. Signed-off-by: Yi Wang --- v2: fix syntax issue in comment, thanks to Sergei. drivers/clk/imgtec/clk-boston.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff

[PATCH] clk: boston: fix possible memory leak in clk_boston_setup()

2018-10-29 Thread Yi Wang
'onecell' is malloced in clk_boston_setup(), but not be freed before leaving from the error handling cases. Signed-off-by: Yi Wang --- drivers/clk/imgtec/clk-boston.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imgtec/clk-boston.c b/drivers/clk

[PATCH] clk: boston: fix possible memory leak in clk_boston_setup()

2018-10-29 Thread Yi Wang
'onecell' is malloced in clk_boston_setup(), but not be freed before leaving from the error handling cases. Signed-off-by: Yi Wang --- drivers/clk/imgtec/clk-boston.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imgtec/clk-boston.c b/drivers/clk

[PATCH] x86/hyper-v: Fix indent in hv_do_fast_hypercall16()

2018-10-29 Thread Yi Wang
Remove the surplus TAB in hv_do_fast_hypercall16(). Signed-off-by: Yi Wang --- arch/x86/include/asm/mshyperv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 0d6271c..1d0a777 100644 --- a/arch/x86

[PATCH] x86/hyper-v: Fix indent in hv_do_fast_hypercall16()

2018-10-29 Thread Yi Wang
Remove the surplus TAB in hv_do_fast_hypercall16(). Signed-off-by: Yi Wang --- arch/x86/include/asm/mshyperv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 0d6271c..1d0a777 100644 --- a/arch/x86

[PATCH] sched/fair: fix a comment in task_numa_fault()

2018-10-23 Thread Yi Wang
Fix the comment in task_numa_fault() to avoid confusing. Signed-off-by: Yi Wang Reviewed-by: Xi Xu --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 908c9cd..6430c0a 100644 --- a/kernel/sched/fair.c

[PATCH] sched/fair: fix a comment in task_numa_fault()

2018-10-23 Thread Yi Wang
Fix the comment in task_numa_fault() to avoid confusing. Signed-off-by: Yi Wang Reviewed-by: Xi Xu --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 908c9cd..6430c0a 100644 --- a/kernel/sched/fair.c

[PATCH] sched/numa: fix choosing isolated CPUs when task_numa_migrate()

2018-10-21 Thread Yi Wang
by checking the load_balance_mask. Signed-off-by: Yi Wang Reviewed-by: Yi Liu --- kernel/sched/fair.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 908c9cd..0fa0cee 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1709,6

[PATCH] sched/numa: fix choosing isolated CPUs when task_numa_migrate()

2018-10-21 Thread Yi Wang
by checking the load_balance_mask. Signed-off-by: Yi Wang Reviewed-by: Yi Liu --- kernel/sched/fair.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 908c9cd..0fa0cee 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1709,6

[PATCH] KVM: x86: fix failure of injecting exceptions in x86_emulate_instruction

2018-09-06 Thread Yi Wang
n(), which won't be called before invoking inject_emulated_exception() in the 6ea6e84309ca. This patch fix this issue. Signed-off-by: Yi Wang Reviewed-by: Xi Xu --- arch/x86/kvm/emulate.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm

[PATCH] KVM: x86: fix failure of injecting exceptions in x86_emulate_instruction

2018-09-06 Thread Yi Wang
n(), which won't be called before invoking inject_emulated_exception() in the 6ea6e84309ca. This patch fix this issue. Signed-off-by: Yi Wang Reviewed-by: Xi Xu --- arch/x86/kvm/emulate.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm

[PATCH] x86/kvm/vmx: Fix coding style in vmx_setup_l1d_flush()

2018-08-15 Thread Yi Wang
Substitute spaces with tab. No functional changes. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- arch/x86/kvm/vmx.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 46b428c0..ef712b2 100644 --- a/arch/x86

[PATCH] x86/kvm/vmx: Fix coding style in vmx_setup_l1d_flush()

2018-08-15 Thread Yi Wang
Substitute spaces with tab. No functional changes. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- arch/x86/kvm/vmx.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 46b428c0..ef712b2 100644 --- a/arch/x86

[PATCH] sched/deadline: Fix indent in pick_next_task_dl()

2018-08-15 Thread Yi Wang
Substitute spaces with tab before the call of function dequeue_pushable_dl_task(). Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 997ea7b

[PATCH] sched/deadline: Fix indent in pick_next_task_dl()

2018-08-15 Thread Yi Wang
Substitute spaces with tab before the call of function dequeue_pushable_dl_task(). Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 997ea7b

[PATCH] workqueue: fix memory leak in wq_numa_init()

2018-08-05 Thread Yi Wang
The 'tbl' variable may leak when return in function wq_numa_init(), and this patch fixes this. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/workqueue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 78b1920..9321a05 100644

[PATCH] workqueue: fix memory leak in wq_numa_init()

2018-08-05 Thread Yi Wang
The 'tbl' variable may leak when return in function wq_numa_init(), and this patch fixes this. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/workqueue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 78b1920..9321a05 100644

[tip:x86/apic] x86/apic: Trivial coding style fixes

2018-07-30 Thread tip-bot for Yi Wang
Commit-ID: 843c408905010fbc44a564d2de6a3cd68d986abf Gitweb: https://git.kernel.org/tip/843c408905010fbc44a564d2de6a3cd68d986abf Author: Yi Wang AuthorDate: Fri, 27 Jul 2018 14:15:03 +0800 Committer: Thomas Gleixner CommitDate: Mon, 30 Jul 2018 19:56:30 +0200 x86/apic: Trivial coding

[tip:x86/apic] x86/apic: Trivial coding style fixes

2018-07-30 Thread tip-bot for Yi Wang
Commit-ID: 843c408905010fbc44a564d2de6a3cd68d986abf Gitweb: https://git.kernel.org/tip/843c408905010fbc44a564d2de6a3cd68d986abf Author: Yi Wang AuthorDate: Fri, 27 Jul 2018 14:15:03 +0800 Committer: Thomas Gleixner CommitDate: Mon, 30 Jul 2018 19:56:30 +0200 x86/apic: Trivial coding

[PATCH] x86/apic: fix two slight indenting

2018-07-27 Thread Yi Wang
There are two inconsistent indenting in calibrate_APIC_clock() and activate_managed(). Remove the surplus TAB. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/apic/vector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] x86/apic: fix two slight indenting

2018-07-27 Thread Yi Wang
There are two inconsistent indenting in calibrate_APIC_clock() and activate_managed(). Remove the surplus TAB. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/apic/vector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[tip:sched/core] sched/topology: Check variable group before dereferencing it

2018-07-25 Thread tip-bot for Yi Wang
Commit-ID: 6cd0c583b04b2bd9415e07b51b63ab799949dd66 Gitweb: https://git.kernel.org/tip/6cd0c583b04b2bd9415e07b51b63ab799949dd66 Author: Yi Wang AuthorDate: Mon, 23 Jul 2018 12:19:07 +0800 Committer: Ingo Molnar CommitDate: Wed, 25 Jul 2018 11:25:07 +0200 sched/topology: Check variable

[tip:sched/core] sched/topology: Check variable group before dereferencing it

2018-07-25 Thread tip-bot for Yi Wang
Commit-ID: 6cd0c583b04b2bd9415e07b51b63ab799949dd66 Gitweb: https://git.kernel.org/tip/6cd0c583b04b2bd9415e07b51b63ab799949dd66 Author: Yi Wang AuthorDate: Mon, 23 Jul 2018 12:19:07 +0800 Committer: Ingo Molnar CommitDate: Wed, 25 Jul 2018 11:25:07 +0200 sched/topology: Check variable

[PATCH] sched/topology: check variable group before dereferenced

2018-07-22 Thread Yi Wang
dereference. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/sched/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 5ac724b..c7cf87c 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c

[PATCH] sched/topology: check variable group before dereferenced

2018-07-22 Thread Yi Wang
dereference. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/sched/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 5ac724b..c7cf87c 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c

[tip:timers/core] timer: Fix coding style

2018-07-19 Thread tip-bot for Yi Wang
Commit-ID: 30587589251a00974115e0815ac316980f48dbb5 Gitweb: https://git.kernel.org/tip/30587589251a00974115e0815ac316980f48dbb5 Author: Yi Wang AuthorDate: Mon, 16 Jul 2018 14:08:57 +0800 Committer: Thomas Gleixner CommitDate: Thu, 19 Jul 2018 16:52:40 +0200 timer: Fix coding style

[tip:timers/core] timer: Fix coding style

2018-07-19 Thread tip-bot for Yi Wang
Commit-ID: 30587589251a00974115e0815ac316980f48dbb5 Gitweb: https://git.kernel.org/tip/30587589251a00974115e0815ac316980f48dbb5 Author: Yi Wang AuthorDate: Mon, 16 Jul 2018 14:08:57 +0800 Committer: Thomas Gleixner CommitDate: Thu, 19 Jul 2018 16:52:40 +0200 timer: Fix coding style

[PATCH] timer: Fix coding style

2018-07-16 Thread Yi Wang
From: Yi Wang There are two tab at the end of function trigger_dyntick_cpu(), so remove one and correct indentation. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time

[PATCH] timer: Fix coding style

2018-07-16 Thread Yi Wang
From: Yi Wang There are two tab at the end of function trigger_dyntick_cpu(), so remove one and correct indentation. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time

<    1   2   3   4   5