[PATCH] irq: fix comment typo on irq_thread_check_affinity

2013-04-02 Thread Kefeng Wang
The CONFIG CPU_MASK_OFFSTACK mentioned should be CPUMASK_OFFSTACK, and fix a misspelling. Signed-off-by: Kefeng Wang --- kernel/irq/manage.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index fa17855..78c6d0f 100644 --- a

[PATCH 3/7] irq: fix checkpatch error

2013-06-06 Thread Kefeng Wang
ERROR: space required before the open parenthesis '(' WARNING: Prefer pr_warn(... to pr_warning(... Just fix above 2 issue. Signed-off-by: Kefeng Wang --- kernel/irq/irqdomain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/irq/irqdomain.c b/

[PATCH 7/7] irq: fix all checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fix following issue, and use pr_foo(). WARNING: line over 80 characters ERROR: spaces required around that '>=' (ctx:WxV) Signed-off-by: Kefeng Wang --- kernel/irq/irqdesc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/kernel/irq/irqdesc.c

[PATCH 4/7] irq: fix all checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fixes following errors and warnings: WARNING: line over 80 characters ERROR: spaces required around that '=' (ctx:WxV) WARNING: Avoid unnecessary line continuations WARNING: Prefer pr_warn(... to pr_warning(... WARNING: suspect code indent for conditional statements (8, 12) Signed-off-

[PATCH 1/7] irq: fix checkpatch warnings

2013-06-06 Thread Kefeng Wang
Fixes line over 80 characters warnings. Signed-off-by: Kefeng Wang --- kernel/irq/chip.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index cbd97ce..f19865a 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -56,7 +56,8

[PATCH 0/7] irq: fix checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fix all the checkpath errors in kernel/irq dir, and some warnings also fixed. Kefeng Wang (7): irq: fix checkpatch warnings irq: fix checkpatch error irq: fix checkpatch error irq: fix all checkpatch errors and warnings irq: fix all checkpatch errors and warnings irq: fix checkpatch

[PATCH RESEND] irq: fix typos around irq_thread_check_affinity

2013-06-06 Thread Kefeng Wang
The CONFIG CPU_MASK_OFFSTACK mentioned should be CPUMASK_OFFSTACK, and fix a misspelling, chasnge -> change. Signed-off-by: Kefeng Wang --- kernel/irq/manage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index fa17

[PATCH 6/7] irq: fix checkpatch warnings

2013-06-06 Thread Kefeng Wang
Fix line over and code indent warning, and use pr_foo(). Signed-off-by: Kefeng Wang --- kernel/irq/spurious.c | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c index 7b5f012..84cf547 100644 --- a

[PATCH 5/7] irq: fix all checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fix following errors and warnings: WARNING: space prohibited before semicolon ERROR: space prohibited before open square bracket '[' WARNING: line over 80 characters Signed-off-by: Kefeng Wang --- kernel/irq/proc.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) di

[PATCH 2/7] irq: fix checkpatch error

2013-06-06 Thread Kefeng Wang
Change printk(KERN_WARNING ... to pr_warn(... Fix ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Kefeng Wang --- kernel/irq/handle.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 131ca17..07a1

[PATCH 2/5] scsi: sun: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Meanwhile, remove unnecessary drvdata set to null due to commint 0998d0631 (device-core: Ensure drvdata = NULL when no driver is bound). Signed-off-by: Kefeng Wang --- drivers/scsi/sun_esp.c | 19 +++ 1 file changed, 3

[PATCH 1/5] scsi: jazz: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang --- drivers/scsi/jazz_esp.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/jazz_esp.c b/drivers/scsi/jazz_esp.c index 69efbf1..08fa257 100644 --- a/drivers

[PATCH 5/5] scsi: sni: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang --- drivers/scsi/sni_53c710.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c index 52d54e7..eff84c4 100644 --- a

[PATCH 3/5] scsi: qlogicpti: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang --- drivers/scsi/qlogicpti.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index 6d48d30..1349374 100644 --- a/drivers

[PATCH 4/5] scsi: sun3x: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang --- drivers/scsi/sun3x_esp.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/sun3x_esp.c b/drivers/scsi/sun3x_esp.c index 534eb96..4c9a2b4 100644 --- a/drivers

[PATCH 0/5] scsi: use platform helper macro and wrapper functions

2013-05-30 Thread Kefeng Wang
use module_platform_driver() and paltform{set,get}_drvdata to simpily code, and patch 2/5 delete unnecessery drvdate set to null. Kefeng Wang (5): scsi: jazz: use module_platform_driver() and platform_{set,get}_drvdata scsi: sun: use module_platform_driver() and platform_{set,get}_drvdata

Re: [PATCH 0/5] scsi: use platform helper macro and wrapper functions

2013-05-30 Thread Kefeng Wang
On 2013-05-30 22:38, James Bottomley wrote: > There doesn't seem to be much point to these patches since either idiom > is fine and easily understood. We also try to touch the ancient drivers > as little as possible since it can be months before anyone actually > tries them out and notices that so

Re: [PATCH 0/7] irq: fix checkpatch errors and warnings

2013-06-07 Thread Kefeng Wang
On 2013-06-08 6:24, Joe Perches wrote: > On Fri, 2013-06-07 at 22:42 +0200, Thomas Gleixner wrote: >> On Thu, 6 Jun 2013, Kefeng Wang wrote: >> >>> Fix all the checkpath errors in kernel/irq dir, and some warnings >>> also fixed. >> >> Sorry, I'm

[PATCH] video: remove unused variable dev

2013-07-27 Thread Kefeng Wang
Due to commit: e21d2170f [video: remove unnecessary platform_set_drvdata()], variable dev is unused, so remove it. Signed-off-by: Kefeng Wang --- drivers/video/vga16fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/vga16fb.c b/drivers/video/vga16fb.c index 830ded4..2827333

Re: [PATCH] video: remove unused variable dev

2013-07-28 Thread Kefeng Wang
On 07/29 8:52, Jingoo Han wrote: > On Saturday, July 27, 2013 7:05 PM, Kefeng Wang wrote: >> >> Due to commit: e21d2170f [video: remove unnecessary platform_set_drvdata()], >> variable dev is unused, so remove it. >> >> Signed-off-by: Kefeng Wang >> ---

[PATCH] sparc:remove unused declaration smp_boot_cpus()

2013-03-27 Thread Kefeng Wang
smp_boot_cpus() was replaced smp_prepare_cpus() long ago, and it no longer needed, so delete it. Signed-off-by: Kefeng Wang --- arch/sparc/include/asm/smp_32.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/sparc/include/asm/smp_32.h b/arch/sparc/include/asm

[PATCH] sparc:cleanup unused code in smp_32.h

2013-03-30 Thread Kefeng Wang
After genirq and generic clockevent support at sparc32, smp4m_irq_rotate(), prof_multiplier() and prof_counter() are no longer used and should be removed. Find more info from commit 6baa9b20 & 62f08283. Signed-off-by: Kefeng Wang --- arch/sparc/include/asm/smp_32.h |4 1 files cha

[PATCH 2/5] Documentation: arm64: Add Hisilicon Hip07 D05 dts binding

2016-09-24 Thread Kefeng Wang
This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon Hip07 D05 board. Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm

[PATCH 0/5] arm64: dts: hisilicon: Hip06 fix and support Hip07 D05 board

2016-09-24 Thread Kefeng Wang
o irq. - Add earlycon support for SBSA UART. Kefeng Wang (5): arm64: dts: hip06: Correct hardware pin number of usb node Documentation: arm64: Add Hisilicon Hip07 D05 dts binding arm64: dts: hisilicon: Add initial dts for Hip07 D05 board tty: amba-pl011: Don't complain on -EPROBE_DEF

[PATCH 1/5] arm64: dts: hip06: Correct hardware pin number of usb node

2016-09-24 Thread Kefeng Wang
The ohci/ehci hardware pin number should be 640/641, correct them. Fixes: commit aa8d3e74f54d ("arm64: dts: Add initial dts for Hisilicon Hip06 D03 board") Signed-off-by: Kefeng Wang --- arch/arm64/boot/dts/hisilicon/hip06.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH 3/5] arm64: dts: hisilicon: Add initial dts for Hip07 D05 board

2016-09-24 Thread Kefeng Wang
four numa nodes(one node with sixteen core) on Hip07 SoC. Signed-off-by: Kefeng Wang --- arch/arm64/boot/dts/hisilicon/Makefile |1 + arch/arm64/boot/dts/hisilicon/hip07-d05.dts | 66 ++ arch/arm64/boot/dts/hisilicon/hip07.dtsi| 1059 +++ 3 files changed

[PATCH 5/5] tty: amba-pl011: Add earlycon support for SBSA UART

2016-09-24 Thread Kefeng Wang
Declare an OF early console for SBSA UART so that the early console device can be specified via the "stdout-path" property in device-tree. Cc: Russell King Cc: Greg Kroah-Hartman Signed-off-by: Kefeng Wang --- drivers/tty/serial/amba-pl011.c | 1 + 1 file changed, 1 insertion(+) di

[PATCH 4/5] tty: amba-pl011: Don't complain on -EPROBE_DEFER when no irq

2016-09-24 Thread Kefeng Wang
Don't complain on -EPROBE_DEFER when attempting to get the irq. the driver probe will be retried later. Cc: Russell King Cc: Greg Kroah-Hartman Signed-off-by: Kefeng Wang --- drivers/tty/serial/amba-pl011.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver

Re: [PATCH 5/5] tty: amba-pl011: Add earlycon support for SBSA UART

2016-09-27 Thread Kefeng Wang
On 2016/9/27 18:57, Greg Kroah-Hartman wrote: > On Sat, Sep 24, 2016 at 05:14:25PM +0800, Kefeng Wang wrote: >> Declare an OF early console for SBSA UART so that the early console device >> can be specified via the "stdout-path" property in device-tree. >> >>

Re: [PATCH] net: hns: declare function as static

2016-09-06 Thread Kefeng Wang
On 2016/9/7 7:20, David Miller wrote: > From: Kefeng Wang > Date: Tue, 6 Sep 2016 19:53:11 +0800 > >> Declare function as static to kill warning about missing-prototypes. >> >> Cc: Yisen Zhuang >> Cc: Kejian Yan >> Signed-off-by: Kefeng Wang &g

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

2016-08-30 Thread Kefeng Wang
Make dw8250_set_termios() handle all cases of dw8250_data->clk properly, then we can safely use dw8250_set_termios() as the default set_termios callback instead of serial8250_do_set_termios(), so do it. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 5 ++--- 1 file chan

[PATCH] serial: 8250_dw: Use an unified new dev variable in probe

2016-08-30 Thread Kefeng Wang
Use an unified new dev variable instead of &pdev->dev and p->dev in probe function. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 45 --- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/drivers/tty/serial/8250/82

[PATCH v4 2/2] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 SoC

2016-08-30 Thread Kefeng Wang
Add ACPI identifier for UART on Hisilicon Hip05 SoC, be careful that it is not 16550 compatible, and "reg-io-width" and "reg-shift" need be set properly by _DSD method in DSDT. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 1 + 1 file changed, 1 insert

[PATCH v4 0/2] serial: 8250_dw: Add ACPI support for uart on Hisilicon Hip05 SoC

2016-08-30 Thread Kefeng Wang
device being probed and not a global search for whole DSDT (pointed by graeme.greg...@linaro.org) [1] http://www.spinics.net/lists/linux-acpi/msg68519.html Kefeng Wang (2): serial: 8250_dw: make dw8250_set_termios as default set_termios callback serial: 8250_dw: add ACPI suppor

[PATCH] serial: 8250_dw: Use an unified new dev variable in probe

2016-08-31 Thread Kefeng Wang
Use an unified new dev variable instead of &pdev->dev and p->dev in probe function. Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 45 --- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/drivers/tty/serial/8250/82

Re: [PATCH] serial: 8250_dw: Use an unified new dev variable in probe

2016-08-31 Thread Kefeng Wang
Sorry, please ignore, send wrong patch. On 2016/9/1 9:34, Kefeng Wang wrote: > Use an unified new dev variable instead of &pdev->dev and p->dev > in probe function. > > Signed-off-by: Kefeng Wang > --- > drivers/tty/serial/8250/8250_dw.c | 45 > +

[PATCH v2] serial: 8250_dw: Use an unified new dev variable in probe

2016-08-31 Thread Kefeng Wang
Use an unified new dev variable instead of &pdev->dev and p->dev in probe function. Reviewed-by: Heikki Krogerus Signed-off-by: Kefeng Wang --- Hi Greg, updated, based on tty-testing branch :) v1->v2: 1) Add Heikki's reviewed-by 2) Rebase on tty-testing branch of git://git.

Re: [PATCH v3 3/3] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

2016-08-07 Thread Kefeng Wang
+ kernel malilist Hi Andriy and all, any comments, thanks. On 2016/7/15 19:01, Kefeng Wang wrote: > Use built-in device properties to set device parameters for the > existing device probed by acpi. > > Add ACPI identifier for UART on Hisilicon Hip05 soc, be careful > that

[PATCH] serial: 8250_dw: Check the data->pclk when get apb_pclk

2016-08-24 Thread Kefeng Wang
It should check the data->pclk, not data->clk when get apb_pclk. Fixes: c8ed99d4f6a8("serial: 8250_dw: Add support for deferred probing") Signed-off-by: Kefeng Wang --- drivers/tty/serial/8250/8250_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re: [PATCH v3 3/3] serial: 8250_dw: add ACPI support for uart on Hisilicon Hip05 soc

2016-08-24 Thread Kefeng Wang
On 2016/8/22 22:05, Heikki Krogerus wrote: > Hi, > > On Mon, Aug 22, 2016 at 02:24:14PM +0300, Andy Shevchenko wrote: >> On Fri, 2016-07-15 at 19:01 +0800, Kefeng Wang wrote: >>> Use built-in device properties to set device parameters for the >>> existing

[PATCH] mtd: nand: convert to unified device property interface

2017-08-16 Thread Kefeng Wang
Changing from of_* to device_* interface, then we can also extract the properties from ACPI tables as well as from DT. Signed-off-by: Kefeng Wang --- - APCI will be supported in hisi504_nand.c, and it will use nand_scan_ident(). drivers/mtd/nand/nand_base.c | 54

Re: [PATCH] mtd: nand: convert to unified device property interface

2017-08-17 Thread Kefeng Wang
On 2017/8/18 5:55, Boris Brezillon wrote: > Le Wed, 16 Aug 2017 15:29:05 +0800, > Kefeng Wang a écrit : > >> Changing from of_* to device_* interface, then we can also extract >> the properties from ACPI tables as well as from DT. >> >> Signed-off-by: Kefeng

[PATCH resend] scsi: fc: drop residual tsk_mgmt_response and it_nexus_response

2017-06-20 Thread Kefeng Wang
After commit 556e26a70b64 ("scsi: remove tsk_mgmt_response and it_nexus_response transport methods"), the target driver support was removed totally. Drop the residua. Signed-off-by: Kefeng Wang --- include/scsi/scsi_transport_fc.h | 4 1 file changed, 4 deletions(-) diff --git

[PATCH] genirq: drop outdated comment in irqdesc.h

2015-09-01 Thread Kefeng Wang
All __do_IRQ are removed after commit 1c77ff22f(genirq: Remove __do_IRQ), update comment accordingly. Signed-off-by: Kefeng Wang --- include/linux/irqdesc.h |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index fcea4e4

[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

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

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

2021-02-03 Thread Kefeng Wang
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

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

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] 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 ("

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

2021-02-26 Thread Kefeng Wang
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

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

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

[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

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

2021-01-13 Thread Kefeng Wang
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

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

[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

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 initrd.h

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

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

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

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

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

[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

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

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

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 fix

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 for

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

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..bc1e3b5a97bd 10

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

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] https://lkml.org/lkml/2020/5/10/

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

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 Dabbe

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 tree

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 us

Re: [PATCH 02/18] net: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Thanks for your reply. On 10/16 0:24, Joe Perches wrote: > On Tue, 2013-10-15 at 19:44 +0800, Kefeng Wang wrote: >> Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() >> are called to simplify code. > [] >> diff --git a/net/bridge/br_fdb

Re: [PATCH 14/18] net: usb: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Thanks for you reply. On 10/16 3:06, Sergei Shtylyov wrote: > Hello. > > On 10/15/2013 03:45 PM, Kefeng Wang wrote: > >> net_ratelimited_function() is called to simplify code. > >> Signed-off-by: Kefeng Wang >> --- >> drivers/net/usb/usbnet.c | 4 ++--

[PATCH 2/3] fs: nfsd: use path_equal() to simply code

2013-10-14 Thread Kefeng Wang
Signed-off-by: Kefeng Wang --- fs/nfsd/export.c | 3 +-- fs/nfsd/nfs4xdr.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 5f38ea3..ca3610d 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -649,8 +649,7 @@ static int

[PATCH 3/3] fs: notify: use path_equal() to simply code

2013-10-14 Thread Kefeng Wang
Signed-off-by: Kefeng Wang --- fs/notify/fanotify/fanotify.c| 3 +-- fs/notify/inotify/inotify_fsnotify.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c index 0c2f912..777af06 100644 --- a/fs/notify

[PATCH 0/3] fs: use helper function path_foo() to simpily code

2013-10-14 Thread Kefeng Wang
Use helper function patch_equal() and path_put() to simpily code. Kefeng Wang (3): fs: use path_equal() and path_put() to simplify code fs: nfsd: use path_equal() to simply code fs: notify: use path_equal() to simply code fs/namei.c | 20 ++-- fs

[PATCH 1/3] fs: use path_equal() and path_put() to simplify code

2013-10-14 Thread Kefeng Wang
Signed-off-by: Kefeng Wang --- fs/namei.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 645268f..1a6c139 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -918,9 +918,8 @@ int follow_up(struct path *path) mntget(&pa

[PATCH 06/18] net: wireless: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang --- drivers/net/wireless/adm8211.c| 5 ++- drivers/net/wireless/ath/carl9170/cmd.c | 15 +++-- drivers/net/wireless/ath/carl9170/phy.c

[PATCH 01/18] netfilter: cleanup: delete Macro PRINTR

2013-10-15 Thread Kefeng Wang
Macro PRINTR is only used once in nfnetlink_log.c, so it can be replaced by helper function net_err_ratelimited(). Signed-off-by: Kefeng Wang --- net/netfilter/nfnetlink_log.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter

[PATCH 18/18] net: wimax: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang --- drivers/net/wimax/i2400m/netdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c index 4889613..678717a 100644

[PATCH 07/18] net: ethernet: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang --- drivers/net/ethernet/aeroflex/greth.c| 16 drivers/net/ethernet/alteon/acenic.c | 3 +- drivers/net/ethernet/arc/emac_main.c

[PATCH 17/18] net: vxlan: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang --- drivers/net/vxlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 2ef5b62..56583ab 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net

[PATCH 16/18] net: virtio: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang --- drivers/net/virtio_net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index defec2b..4f63c12 100644 --- a/drivers/net/virtio_net.c

[PATCH 10/18] net: peak_usb: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang --- drivers/net/can/usb/peak_usb/pcan_usb_core.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_core.c b/drivers/net/can/usb/peak_usb

[PATCH 13/18] net: ppp: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang --- drivers/net/ppp/ppp_generic.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index 72ff14b..53900cd 100644 --- a

[PATCH 03/18] rt18187se: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang --- .../rtl8187se/ieee80211/ieee80211_crypt_ccmp.c | 16 - .../rtl8187se/ieee80211/ieee80211_crypt_tkip.c | 27 ++ drivers

  1   2   3   4   5   6   >