[PATCH 02/10] riscv: stacktrace: Fix undefined reference to `walk_stackframe'

2020-05-10 Thread Kefeng Wang
Drop static declaration to fix following build error if FRAME_POINTER disabled, riscv64-linux-ld: arch/riscv/kernel/perf_callchain.o: in function `.L0': perf_callchain.c:(.text+0x2b8): undefined reference to `walk_stackframe' Reported-by: Hulk Robot Signed-off-by: Kefeng Wang

[PATCH 08/10] riscv: pgtable: Fix __kernel_map_pages build error if NOMMU

2020-05-10 Thread Kefeng Wang
.o: in function `__pageblock_pfn_to_page': page_alloc.c:(.text+0x145e): undefined reference to `__kernel_map_pages' Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/pgtable.h

[PATCH 01/10] riscv: Fix unmet direct dependencies built based on SOC_VIRT

2020-05-10 Thread Kefeng Wang
; (GOLDFISH [=y] || COMPILE_TEST [=n]) Selected by [y]: - SOC_VIRT [=y] Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/Kconfig.socs | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs

[PATCH 04/10] riscv: Fix print_vm_layout build error if NOMMU

2020-05-10 Thread Kefeng Wang
: error: ‘PCI_IO_END’ undeclared arch/riscv/mm/init.c:72:38: error: ‘VMEMMAP_START’ undeclared arch/riscv/mm/init.c:73:20: error: ‘VMEMMAP_END’ undeclared (first use in this function); Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/mm/init.c | 2 +- 1 file changed, 1 insertion

[PATCH 09/10] timer-riscv: Fix undefined riscv_time_val

2020-05-10 Thread Kefeng Wang
ERROR: modpost: "riscv_time_val" [crypto/tcrypt.ko] undefined! Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/clocksource/timer-riscv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/timer-riscv.c b/drivers/clocksource/timer-riscv.c index c4

[PATCH 07/10] riscv: Make SYS_SUPPORTS_HUGETLBFS depends on MMU

2020-05-10 Thread Kefeng Wang
HUGETLBFS only used when MMU enabled, add the dependence. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 494e670520ae..d0010ed8e0f4 100644 --- a/arch/riscv/Kconfig +++ b

[PATCH 06/10] riscv: Disable ARCH_HAS_DEBUG_VIRTUAL if NOMMU

2020-05-10 Thread Kefeng Wang
DEBUG_VIRTUAL should only used when MMU enabled, add the dependence. Signed-off-by: Kefeng Wang --- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 7da0a36a8df0..494e670520ae 100644 --- a/arch/riscv/Kconfig

[PATCH 10/10] riscv: mmiowb: Fix implicit declaration of function 'smp_processor_id'

2020-05-10 Thread Kefeng Wang
() this_cpu_ptr(&__mmiowb_state) ^~~~ ../include/asm-generic/mmiowb.h:37:28: note: in expansion of macro ‘__mmiowb_state’ struct mmiowb_state *ms = __mmiowb_state(); ^~ Reported-by: Hulk Robot Signed-off-by: Kefeng

Re: [PATCH 05/10] riscv: Disable ARCH_HAS_DEBUG_WX if NOMMU

2020-05-14 Thread Kefeng Wang
On 2020/5/14 5:14, Palmer Dabbelt wrote: On Sun, 10 May 2020 19:19:56 PDT (-0700), wangkefeng.w...@huawei.com wrote: DEBUG_WX is only useful when MMU enabled, diable it if nommu and fix the build error. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang ---  arch/riscv/Kconfig | 2 +-  1

Re: [PATCH 04/10] riscv: Fix print_vm_layout build error if NOMMU

2020-05-14 Thread Kefeng Wang
On 2020/5/14 18:10, Alex Ghiti wrote: Hi, On 5/10/20 10:19 PM, Kefeng Wang wrote: arch/riscv/mm/init.c: In function ‘print_vm_layout’: arch/riscv/mm/init.c:68:37: error: ‘FIXADDR_START’ undeclared (first use in this function); arch/riscv/mm/init.c:69:20: error: ‘FIXADDR_TOP’ undeclared

[PATCH v2] riscv: Fix print_vm_layout build error if NOMMU

2020-05-14 Thread Kefeng Wang
: error: ‘PCI_IO_END’ undeclared arch/riscv/mm/init.c:72:38: error: ‘VMEMMAP_START’ undeclared arch/riscv/mm/init.c:73:20: error: ‘VMEMMAP_END’ undeclared (first use in this function); Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- v2: - Should CONFIG_DEBUG_VM instead of DEBUG_VM - Based on

[PATCH] sample-trace-array: Fix sleeping function called from invalid context

2020-06-08 Thread Kefeng Wang
+0x3c/0x58 __ftrace_set_clr_event+0x44/0x88 trace_array_set_clr_event+0x24/0x38 mytimer_handler+0x34/0x40 [sample_trace_array] mutex_lock() will be called in interrupt context, using workqueueu to fix it. Signed-off-by: Kefeng Wang --- samples/ftrace/sample-trace-array.c | 16

[PATCH 2/4] clocksource/drivers/sp804: Use clk_prepare_enable and clk_disable_unprepare

2020-10-29 Thread Kefeng Wang
Directly use clk_prepare_enable and clk_disable_unprepare. Signed-off-by: Kefeng Wang --- drivers/clocksource/timer-sp804.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c index

[PATCH 4/4] clocksource/drivers/sp804: Use pr_fmt

2020-10-29 Thread Kefeng Wang
Add pr_fmt to prefix pr_ output. Signed-off-by: Kefeng Wang --- drivers/clocksource/timer-sp804.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c index e0b48ecf20ab..778ad71a77ac 100644 --- a

[PATCH 0/4] clocksource/drivers/sp804: misc cleanup

2020-10-29 Thread Kefeng Wang
Kefeng Wang (4): clocksource/drivers/sp804: Make some symbol static clocksource/drivers/sp804: Use clk_prepare_enable and clk_disable_unprepare clocksource/drivers/sp804: Correct clk_get_rate handle clocksource/drivers/sp804: Use pr_fmt drivers/clocksource/timer-sp804.c | 41

[PATCH 1/4] clocksource/drivers/sp804: Make some symbol static

2020-10-29 Thread Kefeng Wang
:12: warning: symbol 'sp804_clocksource_and_sched_clock_init' was not declared. Should it be static? drivers/clocksource/timer-sp804.c:219:12: warning: symbol 'sp804_clockevents_init' was not declared. Should it be static? And move __initdata after the variables. Signed-off-by: Kef

[PATCH 3/4] clocksource/drivers/sp804: Correct clk_get_rate handle

2020-10-29 Thread Kefeng Wang
clk_get_rate won't return negative value, correct clk_get_rate handle. Signed-off-by: Kefeng Wang --- drivers/clocksource/timer-sp804.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c

Re: [PATCH] regmap: Properly free allocated name for regmap_config of syscon

2020-11-11 Thread Kefeng Wang
On 2020/11/10 16:47, Marc Zyngier wrote: On 2020-11-10 01:35, Kefeng Wang wrote: On 2020/11/10 1:23, Mark Brown wrote: On Mon, Nov 09, 2020 at 07:58:16PM +0800, Kefeng Wang wrote: Hi Marc,  the regmap debugfs will duplicate a name in regmap_set_name(), and syscon_config.name won'

[PATCH] panic: Avoid dump_stack() twice

2020-11-12 Thread Kefeng Wang
stacktrace will be dumped twice on ARM64 after commit 3f388f28639f ("panic: dump registers on panic_on_warn"), will not dump_stack when no regs as before. Fixes: 3f388f28639f ("panic: dump registers on panic_on_warn") Signed-off-by: Kefeng Wang --- kernel/panic.c | 3 ++

Re: [PATCH] panic: Avoid dump_stack() twice

2020-11-12 Thread Kefeng Wang
On 2020/11/13 14:39, Alexey Kardashevskiy wrote: Fixed already https://ozlabs.org/~akpm/mmots/broken-out/panic-dont-dump-stack-twice-on-warn.patch Sorry for breaking this :( OK.

[PATCH] scsi: fnic: Fix error return in fnic_probe

2020-11-15 Thread Kefeng Wang
If mempool_create_slab_pool fails, return -ENOMEM. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/scsi/fnic/fnic_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index 5f8a7ef8f6a8..4f7befb43d60 100644

[PATCH] regmap: Properly free allocated name for regmap_config of syscon

2020-11-09 Thread Kefeng Wang
8a998a90>] device_driver_attach+0x4c/0x50 [<2ea43ad9>] __driver_attach+0x66/0xa0 [<18505756>] bus_for_each_dev+0x5a/0x98 Fixes: 529a1101212a ("mfd: syscon: Don't free allocated name for regmap_config") Signed-off-by: Kefeng Wang --- drivers/ba

Re: [PATCH] regmap: Properly free allocated name for regmap_config of syscon

2020-11-09 Thread Kefeng Wang
On 2020/11/10 1:23, Mark Brown wrote: On Mon, Nov 09, 2020 at 07:58:16PM +0800, Kefeng Wang wrote: syscon_config.name in of_syscon_register is allocated using kasprintf, which should be freed when it is not used after regmap_set_name, fix the following memory leak. unreferenced object

Re: [PATCH -next] arm64: Export __cpu_logical_map

2020-07-24 Thread Kefeng Wang
On 2020/7/24 21:10, Sudeep Holla wrote: On Fri, Jul 24, 2020 at 11:08:03AM +0800, Kefeng Wang wrote: +maillist On 2020/7/24 11:04, Kefeng Wang wrote: ERROR: modpost: "__cpu_logical_map" [drivers/cpufreq/tegra194-cpufreq.ko] undefined! ARM64 tegra194-cpufreq driver use cpu_l

Re: [PATCH -next] arm64: Export __cpu_logical_map

2020-07-23 Thread Kefeng Wang
+maillist On 2020/7/24 11:04, Kefeng Wang wrote: ERROR: modpost: "__cpu_logical_map" [drivers/cpufreq/tegra194-cpufreq.ko] undefined! ARM64 tegra194-cpufreq driver use cpu_logical_map, export __cpu_logical_map to fix build issue. Reported-by: Hulk Robot Signed-off-by: K

Re: [PATCH -next] arm64: Export __cpu_logical_map

2020-07-24 Thread Kefeng Wang
On 2020/7/24 16:16, Anshuman Khandual wrote: On 07/24/2020 08:38 AM, Kefeng Wang wrote: +maillist This does not seem to be a correct method of posting any patch. sorry, forget to cc mailist when git send-email On 2020/7/24 11:04, Kefeng Wang wrote: ERROR: modpost: "__cpu_logica

[PATCH -next] remoteproc: qcom: Add missing slab.h

2020-07-12 Thread Kefeng Wang
); ^~~ vzalloc kzalloc() is declared in linux/slab.h, add include to fix build issue. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/remoteproc/qcom_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_common.c b/drivers/remoteproc/qcom_common.c index

[PATCH] media: pvrusb2: fix null-ptr-deref in class_unregister()

2019-06-05 Thread Kefeng Wang
The class_ptr will be NULL if pvr2_sysfs_class_create() fails in pvr_init(), when call pvr2_sysfs_class_destroy(), it will lead to null-ptr-deref, fix it. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/media/usb/pvrusb2/pvrusb2-sysfs.c | 3 ++- 1 file changed, 2 insertions

[PATCH net-next] net: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Kefeng Wang
rnel.org Cc: linux-s...@vger.kernel.org Signed-off-by: Kefeng Wang --- include/net/udp.h | 2 +- net/ipv4/fib_semantics.c| 2 +- net/ipv4/inet_hashtables.c | 2 +- net/ipv4/udp.c | 2 +- net/ipv4/udp_offload.c | 2 +- net/ipv6/inet6_hashtables.c | 2 +- net/ipv6/udp.c

[PATCH] Input: alps: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Kefeng Wang
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, so no need to do that again from its callers. Drop it. Cc: "Pali Rohár" Cc: Dmitry Torokhov Cc: linux-in...@vger.kernel.org Signed-off-by: Kefeng Wang --- drivers/input/mouse/alps.c | 2 +- 1 file change

[PATCH] fs: cifs: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Kefeng Wang
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, so no need to do that again from its callers. Drop it. Cc: Steve French Cc: linux-c...@vger.kernel.org Signed-off-by: Kefeng Wang --- fs/cifs/dfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] Input: alps: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Kefeng Wang
On 2019/6/5 22:42, Pali Rohár wrote: > On Wednesday 05 June 2019 22:24:28 Kefeng Wang wrote: >> IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, >> so no need to do that again from its callers. Drop it. > Hi! I already reviewed this patch a

Re: [PATCH net-next] net: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Kefeng Wang
On 2019/6/6 0:13, Jesse Brandeburg wrote: > On Wed, 5 Jun 2019 22:24:26 +0800 Kefeng wrote: >> IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, >> so no need to do that again from its callers. Drop it. >> > > >> segs = __skb_gso_segment(skb, features, false); >> -if (unlike

[PATCH next] of/fdt: Fix defined but not used compiler warning

2019-06-11 Thread Kefeng Wang
CONFIG_OF_EARLY_FLATTREE to fix it. Cc: Stephen Boyd Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Kefeng Wang --- drivers/of/fdt.c | 106 +++ 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index

[PATCH] sh: configs: remove CONFIG_LOGFS from defconfig

2019-05-29 Thread Kefeng Wang
After commit 1d0fd57a50aa ("logfs: remove from tree"), logfs was removed, drop CONFIG_LOGFS from all defconfigs. Signed-off-by: Kefeng Wang --- arch/sh/configs/sdk7786_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/configs/sdk7786_defconfig b/arch/

[PATCH] kernel: fork: make max_threads symbol static

2019-05-15 Thread Kefeng Wang
Fix build warning, kernel/fork.c:125:5: warning: symbol 'max_threads' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- kernel/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/fork.c b/kernel/fo

[PATCH] vfio-mdev/samples: make some symbols static

2019-05-15 Thread Kefeng Wang
lose' was not declared. Should it be static? samples/vfio-mdev/mtty.c:1305:30: warning: symbol 'mtty_dev_groups' was not declared. Should it be static? Cc: Andy Shevchenko Cc: Alex Williamson Cc: Kirti Wankhede Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- samples/vfio-mdev/mtty.c

[PATCH next v2] of/fdt: Fix defined but not used compiler warning

2019-06-14 Thread Kefeng Wang
(), let's move the body of of_fdt_match() into of_flat_dt_match() and eliminate of_fdt_match(). Meanwhile, move of_fdt_is_compatible() under CONFIG_OF_EARLY_FLATTREE, as all callers are over there. Cc: Stephen Boyd Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Kefeng Wang --- v2: -Move the

Re: [PATCH next] of/fdt: Fix defined but not used compiler warning

2019-06-14 Thread Kefeng Wang
On 2019/6/14 21:53, Rob Herring wrote: > On Wed, Jun 12, 2019 at 12:29 PM Frank Rowand wrote: >> >> On 6/12/19 10:00 AM, Rob Herring wrote: >>> On Wed, Jun 12, 2019 at 10:45 AM Frank Rowand >>> wrote: Hi Kefeng, If Rob agrees, I'd like to see one more change in this patch.

[PATCH] media: wl128x: Fix some error handling in fm_v4l2_init_video_device()

2019-05-30 Thread Kefeng Wang
Verkuil Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/media/radio/wl128x/fmdrv_v4l2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/radio/wl128x/fmdrv_v4l2.c b/drivers/media/radio/wl128x/fmdrv_v4l2.c index e25fd4d4d280..a1eaea19a81c 100644 --- a/drivers/media

[PATCH] tty/serial: digicolor: Fix digicolor-usart already registered warning

2019-05-31 Thread Kefeng Wang
ver() when platform_driver_register() fails. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/tty/serial/digicolor-usart.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/digicolor-usart.c b/drivers/tty/serial/digicolor-usart.c index f4

[PATCH] misc: mic: scif: fix double free of scif_dev

2019-05-31 Thread Kefeng Wang
Dixit Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/misc/mic/scif/scif_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/mic/scif/scif_main.c b/drivers/misc/mic/scif/scif_main.c index 36d847af1209..7f9ce0fe1e24

[PATCH v2] crypto: pcrypt: Fix possible deadlock in padata_sysfs_release

2019-06-01 Thread Kefeng Wang
-by: Kefeng Wang --- crypto/pcrypt.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c index 0e9ce329fd47..f3dacb714cd4 100644 --- a/crypto/pcrypt.c +++ b/crypto/pcrypt.c @@ -407,16 +407,19 @@ static int pcrypt_init_padata(struct

[PATCH] driver core: show the error number when driver_sysfs_add() fails

2019-06-03 Thread Kefeng Wang
If driver_sysfs_add() fails, kernel shows following message, really_probe: driver_sysfs_add(portman.0) failed ppdev: probe of portman.0 failed with error 0 It's better to show the error number like other probe_failed path. Signed-off-by: Kefeng Wang --- drivers/base/dd.c | 3 ++- 1

Re: [PATCH] driver core: show the error number when driver_sysfs_add() fails

2019-06-03 Thread Kefeng Wang
On 2019/6/4 13:33, Greg Kroah-Hartman wrote: > On Tue, Jun 04, 2019 at 12:15:46PM +0800, Kefeng Wang wrote: >> If driver_sysfs_add() fails, kernel shows following message, >> >> really_probe: driver_sysfs_add(portman.0) failed >> ppdev: probe of portman.0 fai

[PATCH v2] sample-trace-array: Fix sleeping function called from invalid context

2020-06-09 Thread Kefeng Wang
+0x3c/0x58 __ftrace_set_clr_event+0x44/0x88 trace_array_set_clr_event+0x24/0x38 mytimer_handler+0x34/0x40 [sample_trace_array] mutex_lock() will be called in interrupt context, using workqueue to fix it. Signed-off-by: Kefeng Wang --- v2: - add include of linux/workqueue.h - add missing

[PATCH] sample-trace-array: Remove trace_array 'sample-instance'

2020-06-09 Thread Kefeng Wang
Remove trace_array 'sample-instance' if kthread_run fails in sample_trace_array_init(). Signed-off-by: Kefeng Wang --- samples/ftrace/sample-trace-array.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/samples/ftrace/sample-trace-array.c b/samples/ftrace/sa

Re: [PATCH v2] sample-trace-array: Fix sleeping function called from invalid context

2020-06-09 Thread Kefeng Wang
On 2020/6/10 0:29, Divya Indi wrote: On 6/9/20 6:51 AM, Kefeng Wang wrote: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/5 1 lock held by swapper/5/0: #0: 80001002bd90

[PATCH v3] sample-trace-array: Fix sleeping function called from invalid context

2020-06-09 Thread Kefeng Wang
trace instances.") Signed-off-by: Kefeng Wang Reviewed-by: Divya Indi --- V3: - add Fixes and RB v2: - add include of linux/workqueue.h - add missing cancel_work_sync() suggested by Divya Indi samples/ftrace/sample-trace-array.c | 18 +- 1 file changed, 13 insertions(+), 5

[PATCH -next] riscv: perf_event: Make some funciton static

2020-05-07 Thread Kefeng Wang
Signed-off-by: Kefeng Wang --- arch/riscv/kernel/perf_event.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/riscv/kernel/perf_event.c b/arch/riscv/kernel/perf_event.c index 91626d9ae5f2..c835f0362d94 100644 --- a/arch/riscv/kernel/perf_event.c +++ b/arch/riscv

[PATCH -next] riscv: perf: RISCV_BASE_PMU should be closeable

2020-05-07 Thread Kefeng Wang
RISCV_BASE_PMU. Cc: Alan Kao Signed-off-by: Kefeng Wang --- arch/riscv/include/asm/perf_event.h | 8 ++-- arch/riscv/kernel/Makefile | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/riscv/include/asm/perf_event.h b/arch/riscv/include/asm/perf_event.

Re: [PATCH 09/10] timer-riscv: Fix undefined riscv_time_val

2020-05-18 Thread Kefeng Wang
On 2020/5/18 22:09, Daniel Lezcano wrote: On 13/05/2020 23:14, Palmer Dabbelt wrote: On Sun, 10 May 2020 19:20:00 PDT (-0700), wangkefeng.w...@huawei.com wrote: ERROR: modpost: "riscv_time_val" [crypto/tcrypt.ko] undefined! Reported-by: Hulk Robot Signed-off-by: Kefeng Wang ---

Re: [Question] Mlocked count will not be decreased

2017-05-24 Thread Kefeng Wang
n_failed in race > condition, and we do not count these page into delta_munlocked, which cause > mlock > counter incorrect for we had Clear the PageMlock and cannot count down > the number in the feture. > > Fix it by count the number of page whoes PageMlock flag is cleared. >

[PATCH] bpf: fix return in bpf_skb_adjust_net

2017-07-12 Thread Kefeng Wang
The bpf_skb_adjust_net() ignores the return value of bpf_skb_net_shrink/grow, and always return 0, fix it by return 'ret'. Signed-off-by: Kefeng Wang --- net/core/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/filter.c b/net/core/filter.c ind

[PATCH] kernel/watchdog: use better pr_fmt prefix

2017-07-12 Thread Kefeng Wang
After commit 73ce0511c436("kernel/watchdog.c: move hardlockup detector to separate file"), 'NMI watchdog' is inappropriate in kernel/watchdog.c, using 'watchdog' only. Signed-off-by: Kefeng Wang --- kernel/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH] rbd: Fix uninitialized variable use in rbd_acquire_lock

2017-07-13 Thread Kefeng Wang
drivers/block/rbd.c: In function 'rbd_acquire_lock': drivers/block/rbd.c:3602:44: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] Silence the warning, found it when built old kernel(3.10) with OBS(opensuse build service). Signed

[PATCH] libata: remove unused rc in ata_eh_handle_port_resume

2017-07-13 Thread Kefeng Wang
Remove unused variable ‘rc’. Signed-off-by: Kefeng Wang --- drivers/ata/libata-eh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index b70bcf6..7d79d20 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c

[PATCH] pci: remove unused res in pci_resource_io

2017-07-13 Thread Kefeng Wang
After commit dca40b186b75 ("PCI: Use BAR index in sysfs attr->private instead of resource pointer"), no need res variable, kill it. Signed-off-by: Kefeng Wang --- drivers/pci/pci-sysfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pci/pci-sysfs.c b/drivers/pc

[PATCH] nbd: kill unused ret in recv_work

2017-07-13 Thread Kefeng Wang
No need to return value in queue work, kill ret variable. Signed-off-by: Kefeng Wang --- drivers/block/nbd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index dea7d85..87a0a29 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -626,7

Re: [PATCH] rbd: Fix uninitialized variable use in rbd_acquire_lock

2017-07-14 Thread Kefeng Wang
On 2017/7/14 18:06, Ilya Dryomov wrote: > On Thu, Jul 13, 2017 at 9:46 AM, Kefeng Wang > wrote: >> drivers/block/rbd.c: In function 'rbd_acquire_lock': >> drivers/block/rbd.c:3602:44: error: 'ret' may be used uninitialized in this >> function [-W

[PATCH] pid: kill pidhash_size in pidhash_init

2017-07-18 Thread Kefeng Wang
After commit 3d375d78593c ("mm: update callers to use HASH_ZERO flag"), drop unused pidhash_size in pidhash_init(). Signed-off-by: Kefeng Wang --- kernel/pid.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/pid.c b/kernel/pid.c index 731c4e5..c69c30d 100644 --- a/ke

[Question] Race between pcie hot plug and pcie aer report?

2017-08-22 Thread Kefeng Wang
Hi Bjorn and all, Is there some mechanism to prevent the race between pcie hot plug and pcie aer report, I am unfamiliar with them, so correct me if I am wrong. We met a Null pointer dereference, when inject a uncorrect error[UNCOR_STATUS RX_OVER] to a mlx , see the detail in attachment. ae

[Question] Mlocked count will not be decreased

2017-05-23 Thread Kefeng Wang
Hi All, Mlocked in meminfo will be increasing with an small testcase, and never be released in mainline, here is a testcase[1] to reproduce the issue, but the centos7.2/7.3 will not increase. Is it normal? Thanks, Kefeng [1] testcase linux:~ # cat test_mlockall.sh grep Mlocked /proc/meminf

kernel BUG at arch/x86/kernel/traps.c:643! when run Redhat7(v3.10) in kvm guest

2016-10-13 Thread Kefeng Wang
Hi all, We met BUG_ON in do_device_not_available(fpu exception handler) when run redhat7 in kvm guest, and there is no special test on this guest, only some network packet receipt and transmission. I checked the new kernel version, found this commit 4ecd16ec7059390b430af34bd8bc3ca2b5dcef9a Aut

Re: kernel BUG at arch/x86/kernel/traps.c:643! when run Redhat7(v3.10) in kvm guest

2016-10-17 Thread Kefeng Wang
On 2016/10/15 2:36, Andy Lutomirski wrote: > On Thu, Oct 13, 2016 at 11:14 PM, Kefeng Wang > wrote: >> Hi all, >> >> We met BUG_ON in do_device_not_available(fpu exception handler) when run >> redhat7 in kvm guest, >> and there is no special test on this gue

Re: [PATCH v4 1/2] serial: 8250_dw: make dw8250_set_termios as default set_termios callback

2016-09-04 Thread Kefeng Wang
On 2016/9/2 19:21, Heikki Krogerus wrote: > On Wed, Aug 31, 2016 at 03:07:56PM +0300, Heikki Krogerus wrote: >> Hi, >> >> On Wed, Aug 31, 2016 at 11:29:11AM +0800, Kefeng Wang wrote: >>> Make dw8250_set_termios() handle all cases of dw8250_data->clk pro

[PATCH] net: hns: declare function as static

2016-09-06 Thread Kefeng Wang
Declare function as static to kill warning about missing-prototypes. Cc: Yisen Zhuang Cc: Kejian Yan Signed-off-by: Kefeng Wang --- The warning is shown when make with W=1. drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 22 +++--- drivers/net/ethernet/hisilicon/hns

[tip: timers/core] clocksource/drivers/riscv: Make RISCV_TIMER depends on RISCV_SBI

2020-12-03 Thread tip-bot2 for Kefeng Wang
The following commit has been merged into the timers/core branch of tip: Commit-ID: ab3105446f1ec4e98fadfc998ee24feec271c16c Gitweb: https://git.kernel.org/tip/ab3105446f1ec4e98fadfc998ee24feec271c16c Author:Kefeng Wang AuthorDate:Wed, 28 Oct 2020 21:12:30 +08:00

[tip: timers/core] clocksource/drivers/sp804: Use pr_fmt

2020-12-03 Thread tip-bot2 for Kefeng Wang
The following commit has been merged into the timers/core branch of tip: Commit-ID: 19f7ce8e36c09f4a2491b065dabd9162018309b6 Gitweb: https://git.kernel.org/tip/19f7ce8e36c09f4a2491b065dabd9162018309b6 Author:Kefeng Wang AuthorDate:Thu, 29 Oct 2020 20:33:17 +08:00

[tip: timers/core] clocksource/drivers/sp804: Correct clk_get_rate handle

2020-12-03 Thread tip-bot2 for Kefeng Wang
The following commit has been merged into the timers/core branch of tip: Commit-ID: dca54f8ce1c3c979caf06cfdcdf8eab05a00f5ff Gitweb: https://git.kernel.org/tip/dca54f8ce1c3c979caf06cfdcdf8eab05a00f5ff Author:Kefeng Wang AuthorDate:Thu, 29 Oct 2020 20:33:16 +08:00

[tip: timers/core] clocksource/drivers/sp804: Make some symbol static

2020-12-03 Thread tip-bot2 for Kefeng Wang
The following commit has been merged into the timers/core branch of tip: Commit-ID: 3c07bf0fc3558f680374f8ac6d148b0082aa08c6 Gitweb: https://git.kernel.org/tip/3c07bf0fc3558f680374f8ac6d148b0082aa08c6 Author:Kefeng Wang AuthorDate:Thu, 29 Oct 2020 20:33:14 +08:00

[tip: timers/core] clocksource/drivers/sp804: Use clk_prepare_enable and clk_disable_unprepare

2020-12-03 Thread tip-bot2 for Kefeng Wang
The following commit has been merged into the timers/core branch of tip: Commit-ID: 9d4965eb438f0c9f93e91ce6bfec72bbb8def988 Gitweb: https://git.kernel.org/tip/9d4965eb438f0c9f93e91ce6bfec72bbb8def988 Author:Kefeng Wang AuthorDate:Thu, 29 Oct 2020 20:33:15 +08:00

[tip:irq/urgent] genirq: Initialize request_mutex if CONFIG_SPARSE_IRQ=n

2019-04-05 Thread tip-bot for Kefeng Wang
Commit-ID: e8458e7afa855317b14915d7b86ab3caceea7eb6 Gitweb: https://git.kernel.org/tip/e8458e7afa855317b14915d7b86ab3caceea7eb6 Author: Kefeng Wang AuthorDate: Thu, 4 Apr 2019 15:45:12 +0800 Committer: Thomas Gleixner CommitDate: Fri, 5 Apr 2019 14:37:56 +0200 genirq: Initialize

[tip:perf/core] perf probe: Return errno when not hitting any event

2017-03-24 Thread tip-bot for Kefeng Wang
Commit-ID: 70946723eeb859466f026274b29c6196e39149c4 Gitweb: http://git.kernel.org/tip/70946723eeb859466f026274b29c6196e39149c4 Author: Kefeng Wang AuthorDate: Fri, 17 Mar 2017 16:16:32 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 21 Mar 2017 10:45:02 -0300 perf probe

[tip: timers/core] clocksource/drivers/sp804: Cleanup clk_get_sys()

2020-09-27 Thread tip-bot2 for Kefeng Wang
The following commit has been merged into the timers/core branch of tip: Commit-ID: 7d19d521a034a8c58586814e0320463d1299a3a9 Gitweb: https://git.kernel.org/tip/7d19d521a034a8c58586814e0320463d1299a3a9 Author:Kefeng Wang AuthorDate:Fri, 18 Sep 2020 21:22:29 +08:00

[tip: core/urgent] rcuperf: Fix printk format warning

2020-06-03 Thread tip-bot2 for Kefeng Wang
The following commit has been merged into the core/urgent branch of tip: Commit-ID: b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61 Gitweb: https://git.kernel.org/tip/b3e2d20973db3ec87a6dd2fee0c88d3c2e7c2f61 Author:Kefeng Wang AuthorDate:Fri, 17 Apr 2020 12:02:45 +08:00

<    1   2   3   4   5   6