[PATCH] workqueue: Fix comment for unbound workqueue's attrbutes

2017-11-04 Thread Wang Long
Signed-off-by: Wang Long --- kernel/workqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index a2dccfe..ea3c29f 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -5006,9 +5006,10 @@ int workqueue_set_unbound_cpumask

[PATCH] writeback: remove the unused function parameter

2017-11-04 Thread Wang Long
Signed-off-by: Wang Long --- include/linux/backing-dev.h | 2 +- mm/page-writeback.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 1662157..186a2e7 100644 --- a/include/linux/backing-dev.h +++ b

[PATCH v2] writeback: remove the unused function parameter

2017-11-04 Thread Wang Long
The parameter `struct bdi_writeback *wb` is not been used in the function body. so we just remove it. Signed-off-by: Wang Long --- include/linux/backing-dev.h | 2 +- mm/page-writeback.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/backing-dev.h

[PATCH v2] kselftest: add kselftest-clean rule

2015-10-07 Thread Wang Long
iles. Signed-off-by: Wang Long --- Makefile | 4 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 1d341eb..3edd7b3 100644 --- a/Makefile +++ b/Makefile @@ -1075,6 +1075,9 @@ PHONY += kselftest kselftest: $(Q)$(MAKE) -C tools/testing/selftests run_test

[PATCH 0/2] KASAN: fix a type conversion error and add test

2015-09-08 Thread Wang Long
Hi, This patchset fix a type conversion error for KASAN. patch 1: this patch add some out-of-bounds testcases, the current KASAN code can not find these bugs. patch 2: fix the type conversion error, with this patch, KASAN could find these out-of-bounds bugs. Wang Long (2): lib: test_kasan

[PATCH 2/2] kasan: Fix a type conversion error

2015-09-08 Thread Wang Long
The current KASAN code can find the following out-of-bounds bugs: char *ptr; ptr = kmalloc(8, GFP_KERNEL); memset(ptr+7, 0, 2); the cause of the problem is the type conversion error in *memory_is_poisoned_n* function. So this patch fix that. Signed-off-by: Wang Long

[PATCH 1/2] lib: test_kasan: add some testcases

2015-09-08 Thread Wang Long
This patch add some out of bounds testcases to test_kasan module. Signed-off-by: Wang Long --- lib/test_kasan.c | 69 1 file changed, 69 insertions(+) diff --git a/lib/test_kasan.c b/lib/test_kasan.c index c1efb1b..c32f3b0 100644 --- a

[PATCH v2] kasan: Fix a type conversion error

2015-09-09 Thread Wang Long
The current KASAN code can not find the following out-of-bounds bugs: char *ptr; ptr = kmalloc(8, GFP_KERNEL); memset(ptr+7, 0, 2); the cause of the problem is the type conversion error in *memory_is_poisoned_n* function. So this patch fix that. Signed-off-by: Wang Long

Re: [PATCH v3] writeback: safer lock nesting

2018-04-10 Thread Wang Long
done Given the deadlock is not currently possible, it's debatable if there's any reason to modify the kernel. I suggest we should to prevent future surprises. This deadlock occurs three times in our environment, this deadlock occurs three times in our environment. It is better to cc s

Re: [PATCH] writeback: safer lock nesting

2018-04-10 Thread Wang Long
Hi, [This is an automated email] This commit has been processed by the -stable helper bot and determined to be a high probability candidate for -stable trees. (score: 44.5575) The bot has tested the following trees: v4.16.1, v4.15.16, v4.14.33, v4.9.93, v4.4.127. v4.16.1: Build OK! v4.15.16

[PATCH] irq: irq-hip04: initialize hip04_cpu_map to 0xffff

2014-12-11 Thread Wang Long
HiP04 GIC extends to support 16 cores, so we should initialize the hip04_cpu_map to 0x. Signed-off-by: Wang Long --- drivers/irqchip/irq-hip04.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-hip04.c b/drivers/irqchip/irq-hip04.c index 9c8f8335

[PATCH 2/7] ARM: hisi: enable HiP01 SoC

2014-12-23 Thread Wang Long
Enable Hisilicon HiP01 SoC. This HiP01 SoC series support both one core or dual cores and quad cores. The core is Cortex A9. Signed-off-by: Wang Long --- arch/arm/mach-hisi/Kconfig | 8 arch/arm/mach-hisi/hisilicon.c | 10 ++ 2 files changed, 18 insertions(+) diff --git a

[PATCH 5/7] ARM: hisi: add a common smp_prepares_cpus function

2014-12-23 Thread Wang Long
As hix5hd2 and hip01 has the same .smp_prepare_cpus in struct smp_operations, so rename hix5hd2_smp_prepare_cpus to hisi_common_smp_prepare_cpus. the hip01 will use hisi_common_smp_prepare_cpus in its struct smp_operations. Signed-off-by: Wang Long --- arch/arm/mach-hisi/platsmp.c | 4 ++-- 1

[PATCH 6/7] ARM: hisi: rename secondary_startup function

2014-12-23 Thread Wang Long
As hix5hd2 and hip01 has the same secondary_startup so rename hix5hd2_secondary_startup to to hisi_secondary_startup. the hip01 will use hisi_secondary_startup for the secondary core boot. Signed-off-by: Wang Long --- arch/arm/mach-hisi/core.h| 2 +- arch/arm/mach-hisi/headsmp.S | 2

[PATCH 3/7] ARM: dts: Add hip01-ca9x2 dts file

2014-12-23 Thread Wang Long
Add dts file for Hisilicon hip01 ca9x2 board Signed-off-by: Wang Long --- .../bindings/arm/hisilicon/hisilicon.txt | 25 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/hip01-ca9x2.dts | 50 ++ arch/arm/boot/dts/hip01.dtsi

[PATCH 7/7] ARM: hisi: enable smp for HiP01

2014-12-23 Thread Wang Long
enable smp for HiP01 board. Signed-off-by: Wang Long --- arch/arm/boot/dts/hip01-ca9x2.dts | 1 + arch/arm/mach-hisi/core.h | 3 +++ arch/arm/mach-hisi/hotplug.c | 31 arch/arm/mach-hisi/platsmp.c | 50 +++ 4 files

[PATCH 4/7] ARM: config: enable ARCH_HIP01

2014-12-23 Thread Wang Long
Make hip01 share the hisi_defconfig. And add it into multi_v7_defconfig too. Signed-off-by: Wang Long --- arch/arm/configs/hisi_defconfig | 1 + arch/arm/configs/multi_v7_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/configs/hisi_defconfig b/arch/arm/configs

[PATCH 0/7] ARM: hisi: enable HiP01 SoC

2014-12-23 Thread Wang Long
rebased on Linux 3.19-rc1. Best Regards Wang Long (7): ARM: debug: add HiP01 debug uart ARM: hisi: enable HiP01 SoC ARM: dts: Add hip01-ca9x2 dts file ARM: config: enable ARCH_HIP01 ARM: hisi: add a common smp_prepares_cpus function ARM: hisi: rename secondary_startup function ARM

[PATCH 1/7] ARM: debug: add HiP01 debug uart

2014-12-23 Thread Wang Long
Add the support of Hisilicon HiP01 debug uart. The uart of hip01 is 8250 compatible. Signed-off-by: Wang Long --- arch/arm/Kconfig.debug | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 5ddd490..e0cf6ce 100644 --- a/arch/arm

[PATCH] ARM: multi_v7_defconfig: Enable Hip01 platform

2015-01-13 Thread Wang Long
Enable Hip01 platform support for multi_v7_defconfig. Signed-off-by: Wang Long --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index bc393b7..e5e0172 100644 --- a/arch/arm

[PATCH] mm: Fix NULL pointer dereference in madvise(MADV_WILLNEED) support

2015-03-20 Thread Wang Long
From: "Kirill A. Shutemov" commit ee53664bda169f519ce3c6a22d378f0b946c8178 upstream. Sasha Levin found a NULL pointer dereference that is due to a missing page table lock, which in turn is due to the pmd entry in question being a transparent huge-table entry. The code - introduced in commit 199

[request for stable inclusion 3.10 and 3.12] Fix CVE-2014-8173

2015-03-20 Thread Wang Long
Hi Greg and Jiri, The following patch commit ee53664bda169f519ce3c6a22d378f0b946c8178 mm: Fix NULL pointer dereference in madvise(MADV_WILLNEED) support fix CVE-2014-8173. I wish you could merge this fix into stable 3.10 and 3.12, because the linux kernel before 3.13 on NUMA systems is affected

[PATCH] kasan: Remove duplicate definition of the macro KASAN_FREE_PAGE

2015-04-21 Thread Wang Long
This patch just remove duplicate definition of the macro KASAN_FREE_PAGE in mm/kasan/kasan.h Signed-off-by: Wang Long --- mm/kasan/kasan.h | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/kasan/kasan.h b/mm/kasan/kasan.h index 4986b0a..c242adf 100644 --- a/mm/kasan/kasan.h +++ b/mm/kasan

[PATCH] Documentation: kasan: fix a typo

2015-04-22 Thread Wang Long
This patch just fix a typo (s/witch/which) Signed-off-by: Wang Long --- Documentation/kasan.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kasan.txt b/Documentation/kasan.txt index 092fc10..38feb38 100644 --- a/Documentation/kasan.txt +++ b/Documentation

[PATCH v2] Documentation: kasan: fix a typo

2015-04-22 Thread Wang Long
This patch just fix a typo (s/witch/which) Signed-off-by: Wang Long --- Documentation/kasan.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kasan.txt b/Documentation/kasan.txt index 092fc10..063095a 100644 --- a/Documentation/kasan.txt +++ b/Documentation

[PATCH v2] ramoops: make it possible to change mem_type param.

2015-03-30 Thread Wang Long
If we set ramoops.mem_type=1 in command line, the current code can not change mem_type to 1, because it is assigned to 0 in function ramoops_register_dummy. This patch make it possible to change mem_type parameter in command line. Signed-off-by: Wang Long Acked-by: Tony Lindgren --- fs/pstore

[PATCH] OOM: print points as unsigned int

2015-05-28 Thread Wang Long
In oom_kill_process(), the variable 'points' is unsigned int. Print it as such. Signed-off-by: Wang Long --- mm/oom_kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 2b665da..056002c 100644 --- a/mm/oom_kill.c +++ b/mm/

[PATCH] netevent: remove automatic variable in register_netevent_notifier()

2015-05-28 Thread Wang Long
Remove automatic variable 'err' in register_netevent_notifier() and return the return value of atomic_notifier_chain_register() directly. Signed-off-by: Wang Long --- net/core/netevent.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/core/netevent.c

[PATCH v2] netevent: remove automatic variable in register_netevent_notifier()

2015-05-28 Thread Wang Long
Remove automatic variable 'err' in register_netevent_notifier() and return the result of atomic_notifier_chain_register() directly. Signed-off-by: Wang Long --- net/core/netevent.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/core/netevent.c b/net/core/

[PATCH 2/2] apei/erst-dbg: Define pr_fmt macro to avoid the duplication of ERST_DBG_PFX

2015-06-15 Thread Wang Long
Define pr_fmt macro with {ERST DBG: } prefix, then remove all use of ERST_DBG_PFXin the pr_* functions. Signed-off-by: Wang Long --- drivers/acpi/apei/erst-dbg.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei/erst

[PATCH 1/2] apei/*.c: use pr_warn instead of pr_warning

2015-06-15 Thread Wang Long
This patch can avoid the following WARNING when run checkpatch.pl: WARNING: Prefer pr_warn(... to pr_warning(... #21: FILE: drivers/acpi/apei/erst-dbg.c:134: + pr_warning("Record (ID: 0x%llx) length is too long: %zd\n", Signed-off-by: Wang Long --

[PATCH v2 1/2] apei/*.c: use pr_warn instead of pr_warning

2015-06-16 Thread Wang Long
This patch can avoid the following WARNING when run checkpatch.pl: WARNING: Prefer pr_warn(... to pr_warning(... #21: FILE: drivers/acpi/apei/erst-dbg.c:134: + pr_warning("Record (ID: 0x%llx) length is too long: %zd\n", Signed-off-by: Wang Long --

[PATCH v2 2/2] apei/erst-dbg: Define pr_fmt macro to avoid the duplication of ERST_DBG_PFX

2015-06-16 Thread Wang Long
Define pr_fmt macro with {ERST DBG: } prefix, then remove all use of ERST_DBG_PFX in the pr_* functions. Signed-off-by: Wang Long --- drivers/acpi/apei/erst-dbg.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei

[PATCH] pstore/ram: delete the redundant persistent_ram_zap call

2015-06-09 Thread Wang Long
In ramoops_init_prz function, we have already call persistent_ram_zap in persistent_ram_new, so just delete it. Signed-off-by: Wang Long --- fs/pstore/ram.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 44a549b..fc8db9d 100644 --- a/fs/pstore/ram.c

[PATCH] ring-buffer-benchmark: Fix the wrong param in module_param

2015-06-10 Thread Wang Long
sumer_fifo 4294967295 With this patch: # cat /sys/module/ring_buffer_benchmark/parameters/consumer_fifo -1 Signed-off-by: Wang Long --- kernel/trace/ring_buffer_benchmark.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ke

[PATCH] ring-buffer-benchmark: Fix the wrong type

2015-06-10 Thread Wang Long
The macro 'module_param' shows that the type of the variable disable_reader and write_iteration is unsigned integer. so, we change their type form int to unsigned int. Signed-off-by: Wang Long --- kernel/trace/ring_buffer_benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer

2015-06-10 Thread Wang Long
The producer should be used producer_fifo as its sched_priority, so correct it. Signed-off-by: Wang Long --- kernel/trace/ring_buffer_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c

Re: [RFC] Is it correctly that the usage for spin_{lock|unlock}_irq in clear_page_dirty_for_io

2018-04-03 Thread Wang Long
On 4/4/2018 7:12 AM, Greg Thelen wrote: On Tue, Apr 3, 2018 at 5:03 AM Michal Hocko wrote: On Mon 02-04-18 19:50:50, Wang Long wrote: Hi, Johannes Weiner and Tejun Heo I use linux-4.4.y to test the new cgroup controller io and the current stable kernel linux-4.4.y has the follow logic

[PATCH] timer: use raw_spin_unlock_irqrestore and raw_spin_lock_irqsave instead of raw_spin_{lock|unlock}

2020-08-19 Thread Wang Long
raw_spin_unlock_irqrestore(&base->lock, flags); (5) The flags save from CPU0, and restore to CPU1. Is this wrong? we encountered a kernel panic, and we suspect that it is the problem. How about the following patch to fix. Signed-off-by: Wang Long --- kernel/time/time

[PATCH] ARM: avoid corrupts register in mcaro kputc kphex etc.

2014-08-20 Thread Wang Long
when use macro 'kputc' kphex' to print the content of register r0-r3, they will corrupts these registers. the same as the macro 'debug_reloc_start' and 'debug_reloc_end'. so using 'push' when enter the macro and 'pop' when leave the macro t

[SMP BUG?] the return value of is_smp() is bug?

2014-08-31 Thread Wang Long
, Whether the CONFIG_SMP_ON_UP is set yes or no ,the secondary core can boot. Does the meaning of CONFIG_SMP_ON_UP changed or this is a bug in kernel 3.17-rc2 ? I write the following patch to test the return value of is_smp(). Signed-off-by: Wang Long

[SMP BUG?] the return value of is_smp() is bug?

2014-08-31 Thread Wang Long
, Whether the CONFIG_SMP_ON_UP is set yes or no ,the secondary core can boot. Does the meaning of CONFIG_SMP_ON_UP changed or this is a bug in kernel 3.17-rc2 ? I write the following patch to test the return value of is_smp(). Signed-off-by: Wang Long

[SMP BUG?] the return value of is_smp() is bug?

2014-08-31 Thread Wang Long
, Whether the CONFIG_SMP_ON_UP is set yes or no ,the secondary core can boot. Does the meaning of CONFIG_SMP_ON_UP changed or this is a bug in kernel 3.17-rc2 ? I write the following patch to test the return value of is_smp(). Signed-off-by: Wang Long

[PATCH v2] drivers/of/fdt.c: replace pr_warning by pr_warn

2015-07-26 Thread Wang Long
uot;End of tree marker overwritten: %08x\n", So,we should convert pr_warning to pr_warn. Signed-off-by: Wang Long --- drivers/of/fdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 0749656..e1f61b8 100644 --- a/dr

[PATCH] arm: mm: add __init section marker to free_initrd_mem

2015-07-26 Thread Wang Long
It is not needed after booting, this patch moves the free_initrd_mem() function to the __init section. This patch also make keep_initrd __initdata, to reduce kernel size. Signed-off-by: Wang Long --- arch/arm/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH] arm64: mm: add __init section marker to free_initrd_mem

2015-07-26 Thread Wang Long
It is not needed after booting, this patch moves the free_initrd_mem() function to the __init section. This patch also make keep_initrd __initdata, to reduce kernel size. Signed-off-by: Wang Long --- arch/arm64/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH] kprobes: Use debugfs_remove_recursive instead debugfs_remove

2015-07-15 Thread Wang Long
remove_recursive instead. Signed-off-by: Wang Long --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kprobes.c b/kernel/kprobes.c index c90e417..8cd82a5 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -2459,7 +2459,7 @@ static int __init de

[PATCH] Documentation: Update filesystems/debugfs.txt

2015-07-15 Thread Wang Long
This patch update the Documentation/filesystems/debugfs.txt file. The main work is to add the description of the following functions: debugfs_create_atomic_t debugfs_create_u32_array debugfs_create_devm_seqfile debugfs_create_file_size Signed-off-by: Wang Long --- Documentation

[PATCH] drivers/of/fdt.c: replace pr_warning by pr_warn

2015-07-21 Thread Wang Long
Update the last pr_warning callsite in drivers/of. Signed-off-by: Wang Long --- drivers/of/fdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 0749656..e1f61b8 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c

[PATCH] drivers/irqchip: replace pr_warning by pr_warn

2015-07-21 Thread Wang Long
Update the last pr_warning callsite in drivers/irqchip. Signed-off-by: Wang Long --- drivers/irqchip/exynos-combiner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/exynos-combiner.c b/drivers/irqchip/exynos-combiner.c index 5c82e3b..80104f9 100644

[PATCH 1/7] ARM: debug: add HiP01 debug uart

2014-11-27 Thread Wang Long
Add the support of Hisilicon HiP01 debug uart. The uart of hip01 is 8250 compatible. Signed-off-by: Wang Long --- arch/arm/Kconfig.debug | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index d8f6a2e..ab65e58 100644 --- a/arch/arm

[PATCH 3/7] ARM: dts: Add hip01-ca9x2 dts file

2014-11-27 Thread Wang Long
Add dts file for Hisilicon hip01 ca9x2 board Signed-off-by: Wang Long --- .../bindings/arm/hisilicon/hisilicon.txt | 25 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/hip01-ca9x2.dts | 51 ++ arch/arm/boot/dts/hip01.dtsi

[PATCH 2/7] ARM: hisi: enable HiP01 SoC

2014-11-27 Thread Wang Long
Enable Hisilicon HiP01 SoC. This HiP01 SoC series support both one core or dual cores and quad cores. The core is Cortex A9. Signed-off-by: Wang Long --- arch/arm/mach-hisi/Kconfig | 8 arch/arm/mach-hisi/hisilicon.c | 10 ++ 2 files changed, 18 insertions(+) diff --git a

[PATCH 7/7] ARM: hisi: enable smp for HiP01

2014-11-27 Thread Wang Long
enable smp for HiP01 board. Signed-off-by: Wang Long --- arch/arm/boot/dts/hip01-ca9x2.dts | 1 + arch/arm/mach-hisi/core.h | 3 +++ arch/arm/mach-hisi/hotplug.c | 31 arch/arm/mach-hisi/platsmp.c | 50 +++ 4 files

[PATCH 6/7] ARM: hisi: rename secondary_startup function

2014-11-27 Thread Wang Long
As hix5hd2 and hip01 has the same secondary_startup so rename hix5hd2_secondary_startup to to hisi_secondary_startup. the hip01 will use hisi_secondary_startup for the secondary core boot. Signed-off-by: Wang Long --- arch/arm/mach-hisi/core.h| 2 +- arch/arm/mach-hisi/headsmp.S | 2

[PATCH 4/7] ARM: config: enable ARCH_HIP01

2014-11-27 Thread Wang Long
Make hip01 share the hisi_defconfig. And add it into multi_v7_defconfig too. Signed-off-by: Wang Long --- arch/arm/configs/hisi_defconfig | 1 + arch/arm/configs/multi_v7_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/configs/hisi_defconfig b/arch/arm/configs

[PATCH 0/7] ARM: hisi: enable HiP01 SoC

2014-11-27 Thread Wang Long
This series patch enable Hisilicon HiP01 SoC. The HiP01 SoC series chip is designed for networking product, it integrates a rich peripheral interfaces to support network applications and supports both one core or dual cores and quad cores. The core is Cortex A9. Wang Long (7): ARM: debug: add

[PATCH 5/7] ARM: hisi: add a common smp_prepares_cpus function

2014-11-27 Thread Wang Long
As hix5hd2 and hip01 has the same .smp_prepare_cpus in struct smp_operations, so rename hix5hd2_smp_prepare_cpus to hisi_common_smp_prepare_cpus. the hip01 will use hisi_common_smp_prepare_cpus in its struct smp_operations. Signed-off-by: Wang Long --- arch/arm/mach-hisi/platsmp.c | 4 ++-- 1

[PATCH] Documentation: cpu-freq: delete duplicate description of sysfs interface 'scaling_driver'

2015-05-04 Thread Wang Long
cond] scaling_driver :Hardware driver for cpufreq. Although this does not affect anything, I think we should only have one. so delete the second one because the first one is described in more detail. Signed-off-by: Wang Long --- Documentation/cpu-freq/user-guide.txt | 2 -- 1 file changed,

[PATCH v2 03/17] tracing: Convert seq_buf fields to be like seq_file fields

2015-05-19 Thread Wang Long
d-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/seq_buf.h b/inc

[PATCH v2 02/17] tracing: Convert seq_buf_path() to be like seq_path()

2015-05-19 Thread Wang Long
able - only backport seq_buf related ] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 2 +- kernel/trace/seq_buf.c | 28 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/include/linux/seq_buf.h b/include/linux/seq

[PATCH v2 04/17] tracing: Add a seq_buf_clear() helper and clear len and readpos in init

2015-05-19 Thread Wang Long
ode. Link: http://lkml.kernel.org/r/20141104160222.352309...@goodmis.org Tested-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 9 +++-- 1 file changed, 7

[PATCH v2 01/17] tracing: Create seq_buf layer in trace_seq

2015-05-19 Thread Wang Long
ned-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 81 kernel/trace/Makefile | 1 + kernel/trace/seq_buf.c | 341 3 files changed, 423 insertions(+) create mode 100644 include/linux/seq_buf.h create m

[PATCH v2 05/17] seq_buf: Create seq_buf_used() to find out how much was written

2015-05-19 Thread Wang Long
rnel.org/r/20141114011412.170377...@goodmis.org Link: http://lkml.kernel.org/r/20141114011413.321654...@goodmis.org Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 6 ++ kernel/trace/seq_buf.c | 5 +---

[PATCH v2 07/17] seq_buf: Add seq_buf_can_fit() helper function

2015-05-19 Thread Wang Long
1118164025.gl23...@pathway.suse.cz Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- kernel/trace/seq_buf.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/kernel/trace/seq_buf.

[PATCH v2 12/17] seq_buf: Fix seq_buf_vprintf() truncation

2015-05-19 Thread Wang Long
remaining in the seq_buf buffer, and not if it is less than or equal to as it currently does. Then seq_buf_vprintf() will know if the write from vsnpritnf() was truncated or not. Cc: sta...@vger.kernel.org [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Ro

[PATCH v2 09/17] tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions

2015-05-19 Thread Wang Long
le] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 41 + kernel/trace/seq_buf.c | 7 +++ 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h ind

[PATCH v2 10/17] seq-buf: Make seq_buf_bprintf() conditional on CONFIG_BINARY_PRINTF

2015-05-19 Thread Wang Long
oo is only used by the tracing infrastructure and is still encapsulated by the CONFIG_BINARY_PRINTF. Link: http://lkml.kernel.org/r/20141104160222.969013...@goodmis.org Tested-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Lo

[PATCH v2 13/17] seq_buf: Fix seq_buf_bprintf() truncation

2015-05-19 Thread Wang Long
.org Reported-by: Joe Perches [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- lib/seq_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/seq_buf.c b/lib/seq_buf.c index 795dd94..f25c33b 100644 --- a/lib/seq_buf.c +++

[PATCH v2 17/17] x86/nmi: Fix use of unallocated cpumask_var_t

2015-05-19 Thread Wang Long
RIP __memcpy (arch/x86/lib/memcpy_64.S:151) [ 1110.296763] RSP [ 1110.296765] CR2: Link: http://lkml.kernel.org/r/1416931560-10603-1-git-send-email-sasha.le...@oracle.com Signed-off-by: Sasha Levin [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang

[PATCH v2 11/17] seq_buf: Move the seq_buf code to lib/

2015-05-19 Thread Wang Long
d-by: Petr Mladek [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- kernel/trace/Makefile | 1 - kernel/trace/seq_buf.c | 359 - lib/Makefile | 2 +- lib/seq_buf.c

[PATCH v2 14/17] printk: Add per_cpu printk func to allow printk to be diverted

2015-05-19 Thread Wang Long
d-by: Petr Mladek [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/percpu.h | 3 +++ include/linux/printk.h | 2 ++ kernel/printk.c| 38 +- 3 files changed, 34 insert

[PATCH v2 15/17] printk/percpu: Define printk_func when printk is not defined

2015-05-19 Thread Wang Long
eeds to be defined even if CONFIG_PRINTK is not. Also add a printk.h include in percpu.h just to be safe. Link: http://lkml.kernel.org/r/20141121183215.01ba5...@canb.auug.org.au Reported-by: Stephen Rothwell [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-

[PATCH v2 16/17] x86/nmi: Perform a safe NMI stack trace on all CPUs

2015-05-19 Thread Wang Long
rnel.org/p/20140619213952.360076...@goodmis.org Link: http://lkml.kernel.org/r/20141115050605.055232...@goodmis.org Tested-by: Jiri Kosina Acked-by: Jiri Kosina Acked-by: Paul E. McKenney Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-

[PATCH v2 08/17] tracing: Have seq_buf use full buffer

2015-05-19 Thread Wang Long
d-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 6 +++--- kernel/trace/seq_buf.c | 9 ++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git

[PATCH v2 00/17] [request for stable 3.10 inclusion] x86/nmi: Print all cpu stacks from NMI safely

2015-05-19 Thread Wang Long
This is my backport patch series to Fix the problem(backport to 3.10): " When trigger_all_cpu_backtrace() is called on x86, it will trigger an NMI on each CPU and call show_regs(). But this can lead to a hard lock up if the NMI comes in on another printk(). " The solution is described in commit "a9

[PATCH v2 06/17] tracing: Use trace_seq_used() and seq_buf_used() instead of len

2015-05-19 Thread Wang Long
es if just the len of the seq_buf descriptor is used to copy memory. Link: http://lkml.kernel.org/r/20141114121911.09ba3...@gandalf.local.home Reported-by: Petr Mladek [wanglong: backport to 3.10 stable - only backport seq_buf related ] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt

[RFC PATCH 08/17] tracing: Have seq_buf use full buffer

2015-05-14 Thread Wang Long
d-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 6 +++--- kernel/trace/seq_buf.c | 9 ++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git

[RFC PATCH 10/17] seq-buf: Make seq_buf_bprintf() conditional on CONFIG_BINARY_PRINTF

2015-05-14 Thread Wang Long
oo is only used by the tracing infrastructure and is still encapsulated by the CONFIG_BINARY_PRINTF. Link: http://lkml.kernel.org/r/20141104160222.969013...@goodmis.org Tested-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Lo

[RFC PATCH 17/17] x86/nmi: Fix use of unallocated cpumask_var_t

2015-05-14 Thread Wang Long
RIP __memcpy (arch/x86/lib/memcpy_64.S:151) [ 1110.296763] RSP [ 1110.296765] CR2: Link: http://lkml.kernel.org/r/1416931560-10603-1-git-send-email-sasha.le...@oracle.com Signed-off-by: Sasha Levin [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang

[RFC PATCH 03/17] tracing: Convert seq_buf fields to be like seq_file fields

2015-05-14 Thread Wang Long
d-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/seq_buf.h b/inc

[RFC PATCH 07/17] seq_buf: Add seq_buf_can_fit() helper function

2015-05-14 Thread Wang Long
1118164025.gl23...@pathway.suse.cz Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- kernel/trace/seq_buf.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/kernel/trace/seq_buf.

[RFC PATCH 13/17] seq_buf: Fix seq_buf_bprintf() truncation

2015-05-14 Thread Wang Long
.org Reported-by: Joe Perches [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- lib/seq_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/seq_buf.c b/lib/seq_buf.c index 795dd94..f25c33b 100644 --- a/lib/seq_buf.c +++

[RFC PATCH 05/17] seq_buf: Create seq_buf_used() to find out how much was written

2015-05-14 Thread Wang Long
rnel.org/r/20141114011412.170377...@goodmis.org Link: http://lkml.kernel.org/r/20141114011413.321654...@goodmis.org Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 6 ++ kernel/trace/seq_buf.c | 5 +---

[RFC PATCH 06/17] tracing: Use trace_seq_used() and seq_buf_used() instead of len

2015-05-14 Thread Wang Long
es if just the len of the seq_buf descriptor is used to copy memory. Link: http://lkml.kernel.org/r/20141114121911.09ba3...@gandalf.local.home Reported-by: Petr Mladek [wanglong: backport to 3.10 stable - only backport seq_buf related ] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt

[RFC PATCH 14/17] printk: Add per_cpu printk func to allow printk to be diverted

2015-05-14 Thread Wang Long
d-by: Petr Mladek [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/percpu.h | 3 +++ include/linux/printk.h | 2 ++ kernel/printk.c| 38 +- 3 files changed, 34 insert

[RFC PATCH 02/17] tracing: Convert seq_buf_path() to be like seq_path()

2015-05-14 Thread Wang Long
able - only backport seq_buf related ] Singed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 2 +- kernel/trace/seq_buf.c | 28 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/include/linux/seq_buf.h b/include/linux/seq

[RFC PATCH 15/17] printk/percpu: Define printk_func when printk is not defined

2015-05-14 Thread Wang Long
eeds to be defined even if CONFIG_PRINTK is not. Also add a printk.h include in percpu.h just to be safe. Link: http://lkml.kernel.org/r/20141121183215.01ba5...@canb.auug.org.au Reported-by: Stephen Rothwell [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-

[RFC PATCH 04/17] tracing: Add a seq_buf_clear() helper and clear len and readpos in init

2015-05-14 Thread Wang Long
ode. Link: http://lkml.kernel.org/r/20141104160222.352309...@goodmis.org Tested-by: Jiri Kosina Acked-by: Jiri Kosina Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 9 +++-- 1 file changed, 7

[RFC PATCH 01/17] tracing: Create seq_buf layer in trace_seq

2015-05-14 Thread Wang Long
ged-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 81 kernel/trace/Makefile | 1 + kernel/trace/seq_buf.c | 341 3 files changed, 423 insertions(+) create mode 100644 include/linux/seq_buf.h create m

[RFC PATCH 11/17] seq_buf: Move the seq_buf code to lib/

2015-05-14 Thread Wang Long
d-by: Petr Mladek [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- kernel/trace/Makefile | 1 - lib/Makefile| 2 +- {kernel/trace => lib}/seq_buf.c | 0 3 files changed, 1 insertion(+), 2 deletions(-) r

[RFC PATCH 09/17] tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions

2015-05-14 Thread Wang Long
le] Signed-off-by: Wang Long Signed-off-by: Steven Rostedt --- include/linux/seq_buf.h | 41 + kernel/trace/seq_buf.c | 7 +++ 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h ind

[RFC PATCH 12/17] seq_buf: Fix seq_buf_vprintf() truncation

2015-05-14 Thread Wang Long
remaining in the seq_buf buffer, and not if it is less than or equal to as it currently does. Then seq_buf_vprintf() will know if the write from vsnpritnf() was truncated or not. Cc: sta...@vger.kernel.org [wanglong: backport to 3.10 stable] Signed-off-by: Wang Long Signed-off-by: Steven Ro

[RFC PATCH 00/17][request for stable 3.10 inclusion] x86/nmi: Print all cpu stacks from NMI safely

2015-05-14 Thread Wang Long
This is my backport patch series to Fix the problem(backport to 3.10): " When trigger_all_cpu_backtrace() is called on x86, it will trigger an NMI on each CPU and call show_regs(). But this can lead to a hard lock up if the NMI comes in on another printk(). " The solution is described in commit "a9

[RFC PATCH 16/17] x86/nmi: Perform a safe NMI stack trace on all CPUs

2015-05-14 Thread Wang Long
rnel.org/p/20140619213952.360076...@goodmis.org Link: http://lkml.kernel.org/r/20141115050605.055232...@goodmis.org Tested-by: Jiri Kosina Acked-by: Jiri Kosina Acked-by: Paul E. McKenney Reviewed-by: Petr Mladek [wanglong: backport to 3.10 stable - adjust context ] Signed-off-by: Wang Long Signed-off-

[PATCH] Documentation: cpu-freq: delete duplicate description of sysfs interface 'scaling_driver'

2015-05-04 Thread Wang Long
cond] scaling_driver :Hardware driver for cpufreq. Although this does not affect anything, I think we should only have one. so delete the second one because the first one is described in more detail. Signed-off-by: Wang Long --- Documentation/cpu-freq/user-guide.txt | 2 -- 1 file changed,

[PATCH] Documentation: add print bitmap description

2015-02-25 Thread Wang Long
as the commit: "lib/vsprintf: implement bitmap printing through '%*pb[l]'" add an easy way to print bitmaps. so printk-formats.txt should reflect it. Signed-off-by: Wang Long --- Documentation/printk-formats.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/

[PATCH v2 2/2] Documentation: rename of_selftest.txt to of_unittest.txt

2015-03-08 Thread Wang Long
Since the test of the devicetree's OF api use unittest as its name. so we should rename of_selftest.txt to of_unittest.txt. Signed-off-by: Wang Long --- Documentation/devicetree/of_selftest.txt | 197 --- Documentation/devicetree/of_unittest.txt

[PATCH v2 1/2] Documentation: update the of_selftest.txt

2015-03-08 Thread Wang Long
testcases/). Signed-off-by: Wang Long --- Documentation/devicetree/of_selftest.txt | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/of_selftest.txt b/Documentation/devicetree/of_selftest.txt index 57a808b..3e4e7d4 100644

[PATCH] serial: 8250: remove the redundant include

2015-03-08 Thread Wang Long
The serial_core.h file have been included in header file serial_8250.h. so remove the "#include " in some 8250 serial drivers, because they have included the header file serial_8250.h. Signed-off-by: Wang Long --- drivers/tty/serial/8250/8250_core.c | 1 - drivers/tty/serial/8250/82

  1   2   >