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
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
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
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.
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
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 for
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
fix
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 t
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
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-Wa
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
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
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
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
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
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
0e8eef772e ("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
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 ("
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
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
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
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: in
tance'
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/Kcon
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 (fr
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 Dabbe
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
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] https://lkml.org/lkml/2020/5/10/
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 initrd.h
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
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
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
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
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
time.
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
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
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 tree
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
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
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
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
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
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 us
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..bc1e3b5a97bd 10
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
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
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.
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 ++
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'
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
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
: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
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
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
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
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
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
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
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
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
+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
);
^~~
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
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
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
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
+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
+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
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
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
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
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
---
: 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
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
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
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
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
() 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
: 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
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
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 referen
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
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
.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
; (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
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
void release_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/kerne
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
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
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
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
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.
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
: 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
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/
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
---
driv
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
---
d
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
Signe
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,
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 Wan
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
: 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 - 100 of 576 matches
Mail list logo