[PATCH] mm: Move HOLES_IN_ZONE into mm

2021-04-17 Thread Kefeng Wang
commit a55749639dc1 ("ia64: drop marked broken DISCONTIGMEM and VIRTUAL_MEM_MAP") drop VIRTUAL_MEM_MAP, so there is no need HOLES_IN_ZONE on ia64. Also move HOLES_IN_ZONE into mm/Kconfig, select it if architecture needs this feature. Signed-off-by: Kefeng Wang --- arch/arm64/K

Re: [PATCH v6] RISC-V: enable XIP

2021-03-31 Thread Kefeng Wang
Hi,some error when enable XIP_KERNEL config,ARCH_HAS_STRICT_KERNEL_RWX should disable when enable XIP_KERNEL, but there riscv64-linux-ld: section .data LMA [0080,008cd37f] overlaps section .rodata LMA [00706bc0,0085dd67] riscv64-linux-ld: section .pci_fixup

Re: [PATCH v2] mm: Move mem_init_print_info() into mm_init()

2021-03-30 Thread Kefeng Wang
Hi Andrew, kindly ping On 2021/3/17 9:52, Kefeng Wang wrote: mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, so using void argument and move it into mm_init(). Acked-by: Dave Hansen Signed-off-by: Kefeng Wang --- v2: - Cleanup 'str' line suggested

Re: [PATCH -next] sched/fair: Move update_nohz_stats() under CONFIG_NO_HZ_COMMON

2021-03-30 Thread Kefeng Wang
On 2021/3/30 20:22, Vincent Guittot wrote: On Tue, 30 Mar 2021 at 14:06, Kefeng Wang wrote: update_nohz_stats() only call _nohz_idle_balance() under CONFIG_NO_HZ_COMMON. a similar patch has already been sent and reviewed : 20210329144029.29200-1-yuehaib...@huawei.com ok please ignore it.

[PATCH -next] sched/fair: Move update_nohz_stats() under CONFIG_NO_HZ_COMMON

2021-03-30 Thread Kefeng Wang
update_nohz_stats() only call _nohz_idle_balance() under CONFIG_NO_HZ_COMMON. Signed-off-by: Kefeng Wang --- kernel/sched/fair.c | 40 ++-- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

Re: [syzbot] KASAN: slab-out-of-bounds Read in riscv_intc_irq

2021-03-18 Thread Kefeng Wang
On 2021/3/18 22:11, Dmitry Vyukov wrote: On Thu, Mar 18, 2021 at 1:21 PM Kefeng Wang wrote: On 2021/3/14 18:47, Dmitry Vyukov wrote: On Sun, Mar 14, 2021 at 11:14 AM syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:0d7588ab riscv: process: Fix no prototype

Re: [syzbot] KASAN: slab-out-of-bounds Read in riscv_intc_irq

2021-03-18 Thread Kefeng Wang
On 2021/3/14 18:47, Dmitry Vyukov wrote: On Sun, Mar 14, 2021 at 11:14 AM syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:0d7588ab riscv: process: Fix no prototype for arch_dup_tas.. git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git

Re: [PATCH v2] mm: Move mem_init_print_info() into mm_init()

2021-03-17 Thread Kefeng Wang
On 2021/3/18 2:48, Dave Hansen wrote: On 3/16/21 6:52 PM, Kefeng Wang wrote: mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, so using void argument and move it into mm_init(). Acked-by: Dave Hansen It's not a big deal but you might want to say

Re: [PATCH v2] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
On 2021/3/17 13:48, Christophe Leroy wrote: Le 17/03/2021 à 02:52, Kefeng Wang a écrit : mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, so using void argument and move it into mm_init(). Acked-by: Dave Hansen Signed-off-by: Kefeng Wang

Re: [PATCH] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
sparc/master sparc-next/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Kefeng-Wang/mm-Move

[PATCH v2] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, so using void argument and move it into mm_init(). Acked-by: Dave Hansen Signed-off-by: Kefeng Wang --- v2: - Cleanup 'str' line suggested by Christophe and ACK arch/alpha/mm/init.c | 1

Re: [PATCH] net: bridge: Fix jump_label config

2021-03-16 Thread Kefeng Wang
On 2021/2/27 4:19, Cong Wang wrote: On Thu, Feb 25, 2021 at 5:39 PM Kefeng Wang wrote: On 2021/2/26 5:22, Cong Wang wrote: On Wed, Feb 24, 2021 at 8:03 AM Kefeng Wang wrote: HAVE_JUMP_LABLE is removed by commit e9666d10a567 ("jump_label: move 'asm goto' support test to Kconfig&q

[PATCH RESEND] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, so using void argument and move it into mm_init(). Signed-off-by: Kefeng Wang --- Resend with 'str' line cleanup, and only test on ARM64 qemu. arch/alpha/mm/init.c | 1 - arch/arc/mm/init.c

Re: [PATCH] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
On 2021/3/16 22:47, Christophe Leroy wrote: Le 16/03/2021 à 15:26, Kefeng Wang a écrit : mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, cleanup it by using void argument and move it into mm_init(). Signed-off-by: Kefeng Wang ---   arch/alpha/mm

[PATCH] mm: Move mem_init_print_info() into mm_init()

2021-03-16 Thread Kefeng Wang
mem_init_print_info() is called in mem_init() on each architecture, and pass NULL argument, cleanup it by using void argument and move it into mm_init(). Signed-off-by: Kefeng Wang --- arch/alpha/mm/init.c | 1 - arch/arc/mm/init.c | 1 - arch/arm/mm/init.c

Re: [PATCH] net: bridge: Fix jump_label config

2021-02-26 Thread Kefeng Wang
On 2021/2/27 4:19, Cong Wang wrote: On Thu, Feb 25, 2021 at 5:39 PM Kefeng Wang wrote: On 2021/2/26 5:22, Cong Wang wrote: On Wed, Feb 24, 2021 at 8:03 AM Kefeng Wang wrote: HAVE_JUMP_LABLE is removed by commit e9666d10a567 ("jump_label: move 'asm goto' support test to Kconfig&q

Re: [PATCH] RISC-V: Make NUMA depend on SMP

2021-02-26 Thread Kefeng Wang
("riscv: Add numa support for riscv64 platform") Suggested-by: Andrew Morton Suggested-by: Atish Patra Signed-off-by: Palmer Dabbelt Reported-and-Tested-by:  Kefeng Wang --- This is on fixes. --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ri

Re: [PATCH] net: bridge: Fix jump_label config

2021-02-25 Thread Kefeng Wang
On 2021/2/26 5:22, Cong Wang wrote: On Wed, Feb 24, 2021 at 8:03 AM Kefeng Wang wrote: HAVE_JUMP_LABLE is removed by commit e9666d10a567 ("jump_label: move 'asm goto' support test to Kconfig"), use CONFIG_JUMP_LABLE instead of HAVE_JUMP_LABLE. Fixes: 971502d77faa ("bridge: ne

Re: [PATCH] net: bridge: Fix jump_label config

2021-02-24 Thread Kefeng Wang
On 2021/2/25 2:54, Jakub Kicinski wrote: On Wed, 24 Feb 2021 23:38:03 +0800 Kefeng Wang wrote: HAVE_JUMP_LABLE is removed by commit e9666d10a567 ("jump_label: move 'asm goto' support test to Kconfig"), use CONFIG_JUMP_LABLE instead of HAVE_JUMP_LABLE. Fixes: 971502d77faa ("br

[PATCH] net: bridge: Fix jump_label config

2021-02-24 Thread Kefeng Wang
HAVE_JUMP_LABLE is removed by commit e9666d10a567 ("jump_label: move 'asm goto' support test to Kconfig"), use CONFIG_JUMP_LABLE instead of HAVE_JUMP_LABLE. Fixes: 971502d77faa ("bridge: netfilter: unroll NF_HOOK helper in bridge input path") Signed-off-by: Kefeng W

Re: [PATCH -next] RISCV: Add some depends for NUMA

2021-02-04 Thread Kefeng Wang
On 2021/2/5 14:58, Palmer Dabbelt wrote: On Wed, 03 Feb 2021 06:23:43 PST (-0800), wangkefeng.w...@huawei.com wrote: The numa feature is useless for riscv32 platform(MAXPHYSMEM_1GB if 32bit), I'm not convinced of that.  There's no reason NUMA shouldn't work on 32-bit, it doesn't depend on

Re: [PATCH -next] RISCV: Add some depends for NUMA

2021-02-04 Thread Kefeng Wang
On 2021/2/4 3:59, Atish Patra wrote: On Wed, Feb 3, 2021 at 6:20 AM Kefeng Wang wrote: The numa feature is useless for riscv32 platform(MAXPHYSMEM_1GB if 32bit), and it should depends on SMP feature, this also fix the build error, riscv64-buildroot-linux-gnu-ld: mm/page_alloc.o

[PATCH -next] RISCV: Add some depends for NUMA

2021-02-03 Thread Kefeng Wang
' Fixes: 4f0e8eef772e ("riscv: Add numa support for riscv64 platform") Signed-off-by: Kefeng Wang --- arch/riscv/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 22fa17898d29..ac7f5801bd82 100644 --- a/arch/riscv/Kconfig +++ b/

Re: [PATCH v3 0/4] initrd: Use unified initrd reserve function in ARM/RISCV

2021-01-21 Thread Kefeng Wang
On 2021/1/18 17:17, Russell King - ARM Linux admin wrote: On Mon, Jan 18, 2021 at 09:01:40AM +0800, Kefeng Wang wrote: On 2021/1/17 18:09, Russell King - ARM Linux admin wrote: On Sun, Jan 17, 2021 at 12:57:55PM +0800, Kefeng Wang wrote: Correct Russell's mail address (from li

Re: [PATCH v3 0/4] initrd: Use unified initrd reserve function in ARM/RISCV

2021-01-16 Thread Kefeng Wang
Correct Russell's mail address (from li...@armlinux.org.uk to rmk+ker...@armlinux.org.uk, should update the MAINTAINERS) On 2021/1/15 13:46, Kefeng Wang wrote: Use the same implementation of initrd reserve to avoid duplication. v3: - split into four patches, suggested-by Palmer Dabbelt v2

Re: [PATCH v3 3/4] ARM: Covert to reserve_initrd_mem()

2021-01-16 Thread Kefeng Wang
update Russell's mail address. On 2021/1/15 13:46, Kefeng Wang wrote: Covert to the generic reserve_initrd_mem() function. Signed-off-by: Kefeng Wang --- arch/arm/mm/init.c | 43 +-- 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/arch

Re: drivers/scsi/myrs.c:2449:13: sparse: sparse: incorrect type in assignment (different base types)

2021-01-15 Thread Kefeng Wang
On 2021/1/15 16:50, kernel test robot wrote: Hi Kefeng, First bad commit (maybe != root cause): Hi, the commit in patchset[1], which make riscv random build happier, won't lead to the following problem. I think the driver should fix the sparse error. [1]

Re: [PATCH v2] initramfs: Provide a common initrd reserve function

2021-01-14 Thread Kefeng Wang
On 2021/1/15 10:33, Palmer Dabbelt wrote: On Wed, 13 Jan 2021 18:33:58 PST (-0800), wangkefeng.w...@huawei.com wrote: The ARM and riscv have same logic to check and reserve the memory of initrd, let's provide a common function to reduce duplicated code. Add __LINUX_INITRD_H define in

[PATCH v3 2/4] initramfs: Provide a common initrd reserve function

2021-01-14 Thread Kefeng Wang
Some architectures(eg, ARM and riscv) have similar logic to check and reserve the memory of initrd, let's provide a common function reserve_initrd_mem() to reduce duplicated code. Signed-off-by: Kefeng Wang --- include/linux/initrd.h | 6 ++ init/initramfs.c | 45

[PATCH v3 4/4] riscv: Covert to reserve_initrd_mem()

2021-01-14 Thread Kefeng Wang
Covert to the generic reserve_initrd_mem() function. Signed-off-by: Kefeng Wang --- arch/riscv/mm/init.c | 54 +--- 1 file changed, 1 insertion(+), 53 deletions(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index bf5379135e39..1eaae54c8ea1

[PATCH v3 3/4] ARM: Covert to reserve_initrd_mem()

2021-01-14 Thread Kefeng Wang
Covert to the generic reserve_initrd_mem() function. Signed-off-by: Kefeng Wang --- arch/arm/mm/init.c | 43 +-- 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 828a2561b229..a29e14cd626c 100644

[PATCH v3 1/4] initrd: Add the preprocessor guard in initrd.h

2021-01-14 Thread Kefeng Wang
Add the preprocessor guard in initrd.h to prevent possible build error from the multiple inclusion of same header file multiple time. Signed-off-by: Kefeng Wang --- include/linux/initrd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/initrd.h b/include/linux/initrd.h

[PATCH v3 0/4] initrd: Use unified initrd reserve function in ARM/RISCV

2021-01-14 Thread Kefeng Wang
Use the same implementation of initrd reserve to avoid duplication. v3: - split into four patches, suggested-by Palmer Dabbelt v2: - fix build error found by kernel test robot Kefeng Wang (4): initrd: Add the preprocessor guard in initrd.h initramfs: Provide a common initrd reserve function

[PATCH v2] initramfs: Provide a common initrd reserve function

2021-01-13 Thread Kefeng Wang
. Signed-off-by: Kefeng Wang --- v2: fix build err arch/arm/mm/init.c | 43 +- arch/riscv/mm/init.c | 53 +- include/linux/initrd.h | 11 + init/initramfs.c | 45 +++ 4 files

[PATCH] initramfs: Provide a common initrd reserve function

2021-01-13 Thread Kefeng Wang
The arm and riscv have same logic to check and reserve the memory of initrd, let's provide a common function to reduce duplicated code. Signed-off-by: Kefeng Wang --- PS: - Other architecture may use this function too, eg, csky, could guoren check it? thanks. arch/arm/mm/init.c | 43

Re: linux-next: manual merge of the akpm-current tree with the risc-v tree

2020-12-16 Thread Kefeng Wang
On 2020/12/17 9:26, Stephen Rothwell wrote: Hi all, On Fri, 27 Nov 2020 18:34:41 +1100 Stephen Rothwell wrote: Today's linux-next merge of the akpm-current tree got a conflict in: arch/riscv/Kconfig between commit: 5cb0080f1bfd ("riscv: Enable ARCH_STACKWALK") from the risc-v

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

Re: [PATCH] riscv/stacktrace: fix stackframe without ra on the top

2020-11-27 Thread Kefeng Wang
On 2020/11/27 16:45, Chen Huang wrote: When a function doesn't have a callee, then it will not push ra into the stack, such as lkdtm_BUG() function: addisp,sp,-16 sd s0,8(sp) addis0,sp,16 ebreak Then we use pt_regs as a parameter to walk_stackframe(), for the struct stackframe

Re: [PATCH] printk: finalize records with trailing newlines

2020-11-26 Thread Kefeng Wang
anish when concatenating continuous with trailing newlines. Thanks for you quick fix. Reported-and-tested-by:  Kefeng Wang kernel/printk/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index fe64a49344bf..bc1e3b5a9

Re: [PATCH] drivers: clocksource: timer-riscv: Depend on the SBI

2020-11-25 Thread Kefeng Wang
Hi Palmer,  I send a same patch and have been acked from you : ) https://patchwork.kernel.org/project/linux-riscv/patch/20201028131230.72907-1-wangkefeng.w...@huawei.com/ On 2020/11/26 3:58, Palmer Dabbelt wrote: From: Palmer Dabbelt Fundamentally this is an SBI timer driver, so it cannot be

[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

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] 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] 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't

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

[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/base/re

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

2020-10-29 Thread Kefeng Wang
'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: Kefeng Wang --- drivers/clocksource/timer

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

[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

[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 -next] mm/vmscan: Drop duplicated code in drop_slab_node

2020-09-29 Thread Kefeng Wang
The following patches fix same issue and both add fatal signal check in drop_slab_node, kill a duplicated check. "mm/vmscan: add a fatal signals check in drop_slab_node" "mm/vmscan: fix infinite loop in drop_slab_node" Cc: Chunxin Zang Signed-off-by: Kefeng Wang --- mm

[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

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

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

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

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] 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/sample-trace

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

[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

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

2020-05-19 Thread Kefeng Wang
On 2020/5/20 9:14, Anup Patel wrote: On Tue, May 19, 2020 at 7:21 PM Daniel Lezcano wrote: On 19/05/2020 14:39, Kefeng Wang wrote: On 2020/5/19 4:23, Daniel Lezcano wrote: Hi Kefeng, On 18/05/2020 17:40, Kefeng Wang wrote: On 2020/5/18 22:09, Daniel Lezcano wrote: On 13/05/2020 23:14

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

2020-05-19 Thread Kefeng Wang
On 2020/5/19 4:23, Daniel Lezcano wrote: Hi Kefeng, On 18/05/2020 17:40, Kefeng Wang wrote: 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_tim

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

[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

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

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

[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

[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 00/10] riscv: make riscv build happier

2020-05-10 Thread Kefeng Wang
When add RISCV arch to huawei build test, there are some build issue, let's fix them to make riscv build happier :) Those patches is rebased on next-20200508. Kefeng Wang (10): riscv: Fix unmet direct dependencies built based on SOC_VIRT riscv: stacktrace: Fix undefined reference

[PATCH 03/10] riscv: Add pgprot_writecombine/device and PAGE_SHARED defination if NOMMU

2020-05-10 Thread Kefeng Wang
Some drivers use PAGE_SHARED, pgprot_writecombine()/pgprot_device(), add the defination to fix build error if NOMMU. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- arch/riscv/include/asm/mmio.h| 2 ++ arch/riscv/include/asm/pgtable.h | 1 + 2 files changed, 3 insertions(+) diff

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

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

2020-05-10 Thread Kefeng Wang
`__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 b/arch/riscv/include/asm

[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 05/10] riscv: Disable ARCH_HAS_DEBUG_WX if NOMMU

2020-05-10 Thread Kefeng Wang
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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 78f30f2fdd51

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

2020-05-10 Thread Kefeng Wang
se_pmc_hardware(void)   ^~~~ ../arch/riscv/kernel/perf_event.c:467:12: warning: no previous prototype for ‘init_hw_perf_events’ [-Wmissing-prototypes]  int __init init_hw_perf_events(void)     ^~~ Cc: Alan Kao Signed-off-by: Kefeng Wang ---  arch/riscv/kernel/perf_eve

[PATCH 2/3] mm: vmstat: Convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-05-09 Thread Kefeng Wang
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Kefeng Wang --- mm/vmstat.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/mm/vmstat.c b/mm/vmstat.c index 7f2e87cb7049..35219271796f 100644 --- a/mm/vmstat.c +++ b/mm

[PATCH 0/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro

2020-05-09 Thread Kefeng Wang
As discussion in https://lore.kernel.org/lkml/20191129222310.ga3712...@kroah.com/, we could introduce a new helper macro to reduce losts of boilerplate code, vmstat and kprobes is the example which covert to use it, if this is accepted, I will send out more clean ups. Kefeng Wang (3): seq_file

[PATCH 3/3] kernel: kprobes: Convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-05-09 Thread Kefeng Wang
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Cc: Anil S Keshavamurthy Cc: "David S. Miller" Cc: Masami Hiramatsu Signed-off-by: Kefeng Wang --- kernel/kprobes.c | 33 ++--- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/kernel/k

[PATCH 1/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro

2020-05-09 Thread Kefeng Wang
Introduce DEFINE_SEQ_ATTRIBUTE() helper macro to decrease code duplication. Signed-off-by: Kefeng Wang --- include/linux/seq_file.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 1672cf6f7614..c77869cf7d10

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

2020-05-07 Thread Kefeng Wang
E_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.h index 02

[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

[bpf-next] tools lib bpf: Renaming pr_warning to pr_warn

2019-10-20 Thread Kefeng Wang
: Yonghong Song Cc: b...@vger.kernel.org Acked-by: Andrii Nakryiko Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- Based on git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git tools/lib/bpf/btf.c | 56 +-- tools/lib/bpf/btf_dump.c| 18 +- tools/lib

[PATCH v2 22/33] sh/intc: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Yoshinori Sato Cc: Rich Felker Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/sh/intc/

[PATCH v2 11/33] clocksource: samsung_pwm_timer: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Daniel Lezcano Acked-by: Daniel Lezcano Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/c

[PATCH v2 17/33] oprofile: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Robert Richter Acked-by: Robert Richter Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- driver

[PATCH v2 21/33] scsi: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Reviewed-by: Sergey Senozhatsky Signed-off

[PATCH v2 04/33] riscv: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
Signed-off-by: Kefeng Wang --- arch/riscv/kernel/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index 70bb94ae61c5..b7401858d872 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/module.c @@ -315,8 +31

[PATCH v2 06/33] sparc: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: "David S. Miller" Cc: Andrew Morton Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --

[PATCH v2 05/33] sh: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Stephen Rothwell Cc: Yoshinori Sato Cc: Rich Felker Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang

[PATCH v2 31/33] tools lib bpf: Renaming pr_warning to pr_warn

2019-10-17 Thread Kefeng Wang
: Yonghong Song Cc: b...@vger.kernel.org Acked-by: Andrii Nakryiko Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- tools/lib/bpf/btf.c | 56 +-- tools/lib/bpf/btf_dump.c| 18 +- tools/lib/bpf/libbpf.c | 679 tools/lib/bpf

  1   2   3   4   5   6   7   8   9   >