[PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-07 Thread Peng Hao
If plt_max_entries is 0, a warning is triggered. WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plts.c:97 module_emit_plt_entry+0xa4/0x150 Signed-off-by: Peng Hao --- arch/arm64/kernel/module-plts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64

[PATCH] kvm/arm64: Correct incorrect function parameter specification

2020-07-01 Thread Peng Hao
update_vmid() just has one parameter "vmid".The other parameter "kvm" is no longer used. Signed-off-by: Peng Hao --- arch/arm64/kvm/arm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index 90cb90561446..5bf9bf54b22c 100644

[PATCH] kvm/arm64: Correct incorrect function parameter specification

2020-07-01 Thread Peng Hao
update_vmid() just has one parameter "vmid".The other parameter "kvm" is no longer used. Signed-off-by: Peng Hao --- arch/arm64/kvm/arm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index 90cb90561446..5bf9bf54b22c 100644

[PATCH v4] arm/mach-at91/pm : fix possible object reference leak

2019-04-01 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Reviewed-by: Mukesh Ojha Signed-off-by: Peng Hao --- arch/arm/mach-at91/pm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v3] arm/mach-at91/pm : fix possible object reference leak

2019-04-01 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-at91/pm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91

[PATCH V2] arm/mach-at91/pm : fix possible object reference leak

2019-03-31 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-at91/pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91

[PATCH] kvm: fix a function description error

2019-03-25 Thread Peng Hao
The parameter's name of function description is different from definition. Signed-off-by: Peng Hao --- virt/kvm/kvm_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5858452..4e11918 100644 --- a/virt/kvm/kvm_main.c

[tip:x86/urgent] x86/resctrl: Remove unused variable

2019-03-24 Thread tip-bot for Peng Hao
Commit-ID: 7f2daa96759b0700ad28579133aa91bc663632a7 Gitweb: https://git.kernel.org/tip/7f2daa96759b0700ad28579133aa91bc663632a7 Author: Peng Hao AuthorDate: Sun, 10 Mar 2019 01:29:44 +0800 Committer: Thomas Gleixner CommitDate: Sun, 24 Mar 2019 22:09:27 +0100 x86/resctrl: Remove

[tip:x86/urgent] x86/resctrl: Remove unused variable

2019-03-24 Thread tip-bot for Peng Hao
Commit-ID: cec67c6ea58c6cca9234b7b551f3d66296bc1e69 Gitweb: https://git.kernel.org/tip/cec67c6ea58c6cca9234b7b551f3d66296bc1e69 Author: Peng Hao AuthorDate: Sun, 10 Mar 2019 01:29:44 +0800 Committer: Thomas Gleixner CommitDate: Sun, 24 Mar 2019 22:07:46 +0100 x86/resctrl: Remove

[PATCH] x86/resctrl: remove unused variable

2019-03-09 Thread Peng Hao
Variable "struct rdt_resource *r" is set but not used. So remove it. Signed-off-by: Peng Hao --- arch/x86/kernel/cpu/resctrl/monitor.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c index f33f11

[PATCH V6 1/4] misc/pvpanic : preparing for pvpanic driver framework

2019-02-18 Thread Peng Hao
Preparing for pvpanic driver framework. Create a pvpanic driver directory and move current driver file to new directory. Reviewed-by: Andy Shevchenko Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 9 + drivers/misc/Makefile| 2 +- drivers/misc

[PATCH V6 2/4] misc/pvpanic: Add pvpanic driver framework

2019-02-18 Thread Peng Hao
Add pvpanic driver framework and split the original pvpanic acpi/of driver as the two separate files and modify code to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig| 19 drivers/misc/pvpanic/Makefile | 2 + drivers/misc/pvpanic/pvpanic

[PATCH V6 0/4] add pvpanic driver framework

2019-02-18 Thread Peng Hao
modify text infomation. modify "SPDX-License-Identifier: GPL-2.0-or-later" to "SPDX-License-Identifier: GPL-2.0+" Peng Hao (4): misc/pvpanic: preparing for pvpanic driver framework misc/pvpanic: Add pvpanic driver framework misc/pvpanic: Avoid initializing mul

[PATCH V6 4/4] misc/pvpanic: add new pvpanic pci driver

2019-02-18 Thread Peng Hao
Add new pvpanic pci driver to pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 10 ++- drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-pci.c | 56 ++ 3 files changed, 66 insertions(+), 1

[PATCH V6 3/4] misc/pvpanic: Avoid initializing multiple pvpanic devices

2019-02-18 Thread Peng Hao
Avoid initializing multiple pvpanic devices when configure multiple pvpanic device driver type. Make sure that only one pvpanic device is working. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git

[PATCH V5 3/4] misc/pvpanic: Avoid initializing multiple pvpanic devices

2019-02-16 Thread Peng Hao
Avoid initializing multiple pvpanic devices when configure multiple pvpanic device driver type. Make sure that only one pvpanic device is working. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH V5 2/4] misc/pvpanic: Add pvpanic driver framework

2019-02-16 Thread Peng Hao
Add pvpanic driver framework and split the original pvpanic acpi/of driver as the two separate files and modify code to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig| 19 drivers/misc/pvpanic/Makefile | 2 + drivers/misc/pvpanic/pvpanic

[PATCH V5 1/4] misc/pvpanic : preparing for pvpanic driver framework

2019-02-16 Thread Peng Hao
Preparing for pvpanic driver framework. Create a pvpanic driver directory and move current driver file to new directory. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 9 + drivers/misc/Makefile| 2 +- drivers/misc/pvpanic/Kconfig | 7

[PATCH V5 4/4] misc/pvpanic: add new pvpanic pci driver

2019-02-16 Thread Peng Hao
Add new pvpanic pci driver to pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 10 ++- drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-pci.c | 56 ++ 3 files changed, 66 insertions(+), 1

[PATCH V5 0/4] add pvpanic driver framework

2019-02-16 Thread Peng Hao
dentifier: GPL-2.0-or-later" to "SPDX-License-Identifier: GPL-2.0+" Peng Hao (4): misc/pvpanic: preparing for pvpanic driver framework misc/pvpanic: Add pvpanic driver framework misc/pvpanic: Avoid initializing multiple pvpanic devices misc/pvpanic: add new

[PATCH] arm/mach-socfpga/pm: fix possible object reference leak

2019-02-12 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-socfpga/pm.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach

[PATCH] arm/mach-omap2/display: fix possible object reference leak

2019-02-12 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device.When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-omap2/display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/display.c b/arch

[PATCH] arm/mach-at91/pm : fix possible object reference leak

2019-02-12 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-at91/pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach

[PATCH] thermal/qcom/tsens-common : fix possible object reference leak

2019-02-12 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. We also should make sure to drop the reference to the device taken by of_find_device_by_node() when returning error. Signed-off-by: Peng Hao --- drivers/thermal/qcom/tsens-common.c | 33

[PATCH V4 2/6] misc/pvpanic: Add pvpanic driver framework

2019-01-24 Thread Peng Hao
Add pvpanic driver framework. Follow-up patches will split the original pvpanic acpi/of driver as the two separate files and modify code to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 158 +++-- 1 file changed, 27

[PATCH V4 6/6] misc/pvpanic: add new pvpanic pci driver

2019-01-24 Thread Peng Hao
Add new pvpanic pci driver to pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 10 ++- drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-pci.c | 56 ++ 3 files changed, 66 insertions(+), 1

[PATCH V4 0/6] add pvpanic driver framework

2019-01-24 Thread Peng Hao
ot; to "SPDX-License-Identifier: GPL-2.0+" Peng Hao (6): misc/pvpanic: preparing for pvpanic driver framework misc/pvpanic: Add pvpanic driver framework misc/pvpanic: add API for pvpanic driver framework misc/pvpanic: add pvpanic acpi driver misc/pvpanic: add

[PATCH V4 3/6] misc/pvpanic: add API for pvpanic driver framework

2019-01-24 Thread Peng Hao
Add pvpanic_add/remove_device API. Follow-up patches will use them to add/remove specific drivers into framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 47 ++ drivers/misc/pvpanic/pvpanic.h | 15 ++ 2 files changed, 58

[PATCH V4 1/6] misc/pvpanic: preparing for pvpanic driver framework

2019-01-24 Thread Peng Hao
Preparing for pvpanic driver framework. Create a pvpanic driver directory and move current driver file to new directory. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 9 + drivers/misc/Makefile| 2 +- drivers/misc/pvpanic/Kconfig | 7

[PATCH V4 5/6] misc/pvpanic: add pvpanic mmio driver

2019-01-24 Thread Peng Hao
Make pvpanic mmio driver as separate file and modify code in order to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 7 ++ drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-of.c | 53 +++ 3 files

[PATCH V4 4/6] misc/pvpanic: add pvpanic acpi driver

2019-01-24 Thread Peng Hao
Make pvpanic acpi driver as separate file and modify code in order to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig| 13 +++ drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-acpi.c | 77 + 3

[PATCH V3 2/6] misc/pvpanic: Add pvpanic driver framework

2019-01-22 Thread Peng Hao
Add pvpanic driver framework. Follow-up patches will split the original pvpanic acpi/of driver as the two seperate files and modify code to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 171 ++--- 1 file changed, 39

[PATCH V3 1/6] misc/pvpanic: preparing for pvpanic driver framework

2019-01-22 Thread Peng Hao
Preparing for pvpanic driver framework. Create a pvpanic driver directory and move current driver file to new directory. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 9 + drivers/misc/Makefile| 2 +- drivers/misc/pvpanic/Kconfig | 7

[PATCH V3 3/6] misc/pvpanic: add API for pvpanic driver framework

2019-01-22 Thread Peng Hao
Add pvpanic_add/remove_device API. Follow-up patches will use them to add/remove specific drivers into framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 32 drivers/misc/pvpanic/pvpanic.h | 14 ++ 2 files changed, 46 insertions

[PATCH V3 5/6] misc/pvpanic: add pvpanic mmio driver

2019-01-22 Thread Peng Hao
Make pvpanic mmio driver as seperate file and modify code in order to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 4 +++ drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-of.c | 53 +++ 3 files

[PATCH V3 4/6] misc/pvpanic: add pvpanic acpi driver

2019-01-22 Thread Peng Hao
Make pvpanic acpi driver as seperate file and modify code in order to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig| 9 + drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-acpi.c | 77 + 3

[PATCH V3 6/6] misc/pvpanic: add new pvpanic pci driver

2019-01-22 Thread Peng Hao
Add new pvpanic pci driver to pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 5 drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-pci.c | 56 ++ 3 files changed, 62 insertions(+) create

[PATCH V3 0/6] add pvpanic driver framework

2019-01-22 Thread Peng Hao
text infomation from patch_0002 to patch_0006. modify "SPDX-License-Identifier: GPL-2.0-or-later" to "SPDX-License-Identifier: GPL-2.0+" Peng Hao (6): misc/pvpanic: preparing for pvpanic driver framework misc/pvpanic: Add pvpanic driv

[PATCH V2 4/6] misc/pvpanic: add pvpanic acpi driver

2019-01-22 Thread Peng Hao
Make pvpanic acpi driver as seperate file and modify code in order to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig| 9 + drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-acpi.c | 77 + 3

[PATCH V2 1/6] misc/pvpanic: preparing for pvpanic driver framework

2019-01-22 Thread Peng Hao
Preparing for pvpanic driver framework. Create a pvpanic driver directory and move current driver file to new directory. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 9 + drivers/misc/Makefile| 2 +- drivers/misc/pvpanic/Kconfig | 7

[PATCH V2 5/6] misc/pvpanic: add pvpanic mmio driver

2019-01-22 Thread Peng Hao
Make pvpanic mmioi driver as seperate file and modify code in order to adapt the framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 4 +++ drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-of.c | 53 +++ 3 files

[PATCH V2 0/6] add pvpanic driver framework

2019-01-22 Thread Peng Hao
Andy Shevchenko suggests: "I would recommend to split it in a way how it's done for ChipIdea USB driver, for example. (drivers/usb/chipidea if I'm not mistaken)". Peng Hao (6): misc/pvpanic: preparing for pvpanic driver framework misc/pvpanic: Add pvpanic driver framework misc/pv

[PATCH V2 6/6] misc/pvpanic: add new pvpanic pci driver

2019-01-22 Thread Peng Hao
Add new pvpanic pci driver to pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 5 drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-pci.c | 56 ++ 3 files changed, 62 insertions(+) create

[PATCH V2 2/6] misc/pvpanic: Add pvpanic driver framework

2019-01-22 Thread Peng Hao
Add pvpanic driver framework. Split the original pvpanic acpi/of driver as the two seperate files and modify code for adaptation framework in follow-up patches. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 171 ++--- 1 file changed, 39

[PATCH V2 3/6] misc/pvpanic: add API for pvpanic driver framework

2019-01-22 Thread Peng Hao
Add pvpanic_add/remove_device API. Follow-up patches will use them to add/remove specific drivers into framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 32 drivers/misc/pvpanic/pvpanic.h | 14 ++ 2 files changed, 46 insertions

[PATCH 6/6] misc/pvpanic : add pvpanic pci driver

2019-01-21 Thread Peng Hao
Add pvpanic pci driver to pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 5 drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-pci.c | 56 ++ 3 files changed, 62 insertions(+) create mode

[PATCH 3/6] misc/pvpanic: add API for pvpanic driver framework

2019-01-21 Thread Peng Hao
Add pvpanic_add/remove_device API. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 32 drivers/misc/pvpanic/pvpanic.h | 14 ++ 2 files changed, 46 insertions(+) create mode 100644 drivers/misc/pvpanic/pvpanic.h diff --git a/drivers

[PATCH 1/6] misc/pvpanic : preparing for pvpanic driver framework

2019-01-21 Thread Peng Hao
Preparing for pvpanic driver framework. Create a pvpanic driver directory and move current driver file to new directory. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 9 + drivers/misc/Makefile| 2 +- drivers/misc/pvpanic/Kconfig | 7

[PATCH 4/6] misc/pvpanic : add pvpanic acpi driver

2019-01-21 Thread Peng Hao
Add pvpanic acpi driver in pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig| 9 + drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-acpi.c | 77 + 3 files changed, 87 insertions(+) create

[PATCH 5/6] misc/pvpanic: add pvpanic mmio driver

2019-01-21 Thread Peng Hao
Add pvpanic mmio driver to pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/Kconfig | 4 +++ drivers/misc/pvpanic/Makefile | 1 + drivers/misc/pvpanic/pvpanic-of.c | 53 +++ 3 files changed, 58 insertions(+) create mode

[PATCH 2/6] misc/pvpanic: Add pvpanic driver framework

2019-01-21 Thread Peng Hao
Add pvpanic driver framework. Signed-off-by: Peng Hao --- drivers/misc/pvpanic/pvpanic.c | 171 ++--- 1 file changed, 39 insertions(+), 132 deletions(-) diff --git a/drivers/misc/pvpanic/pvpanic.c b/drivers/misc/pvpanic/pvpanic.c index 595ac06..6380540

[tip:x86/urgent] x86/mm/mem_encrypt: Fix erroneous sizeof()

2019-01-15 Thread tip-bot for Peng Hao
Commit-ID: bf7d28c53453ea904584960de55e33e03b9d93b1 Gitweb: https://git.kernel.org/tip/bf7d28c53453ea904584960de55e33e03b9d93b1 Author: Peng Hao AuthorDate: Sat, 29 Dec 2018 14:34:12 +0800 Committer: Thomas Gleixner CommitDate: Tue, 15 Jan 2019 11:41:58 +0100 x86/mm/mem_encrypt: Fix

[PATCH] rcu: Remove rcu_*_state declaration

2019-01-08 Thread Peng Hao
Because of just only one set of rcu_state, the declaration of rcu_sched_state/rcu_bh_state/rcu_preempt_state is unnecessary. Signed-off-by: Peng Hao --- kernel/rcu/tree.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 703e19f..9ea704c

[PATCH] x86/kvm: convert to DEFINE_DEBUGFS_ATTRIBUTE

2019-01-07 Thread Peng Hao
From: Peng Hao The preferred strategy to define debugfs attributes is to use the DEFINE_DEBUGFS_ATTRIBUTE() macro and to use debugfs_create_file_unsafe(). Signed-off-by: Peng Hao --- arch/x86/kvm/debugfs.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git

[PATCH] security/selinux/hooks: remove unneeded semicolon

2019-01-03 Thread Peng Hao
Remove unneeded semicolon. Signed-off-by: Peng Hao --- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index a67459e..73c679e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c

[PATCH] security/apparmor/domain: use PTR_ERR_OR_ZERO

2019-01-03 Thread Peng Hao
The variable 'new' may be NULL, so use PTR_ERR_OR_ZERO instead of PTR_ERR. Signed-off-by: Peng Hao --- security/apparmor/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index 08c88de..7663589 100644

[RESEND PATCH v5] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2019-01-02 Thread Peng Hao
) with these devices won't provide a cleanup path for these resources when the caller fails. This patch fixes them. Suggested-by: Li Yang Suggested-by: Christophe LEROY Signed-off-by: Wen Yang Reviewed-by: Peng Hao CC: Julia Lawall CC: Zhao Qiang CC: David S. Miller CC: net...@vger.ker

[PATCH v5] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2019-01-02 Thread Peng Hao
) with these devices won't provide a cleanup path for these resources when the caller fails. This patch fixes them. Suggested-by: Li Yang Suggested-by: Christophe LEROY Signed-off-by: Wen Yang Reviewed-by: Peng Hao CC: Julia Lawall CC: Zhao Qiang CC: David S. Miller CC: net...@vger.ker

[PATCH] misc/mic/vop/vop_main : remove unneeded semicolon

2019-01-01 Thread Peng Hao
From: Peng Hao Remove unnecessary semicolon in two functions. Signed-off-by: Peng Hao --- drivers/misc/mic/vop/vop_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c index 3633202..70d4b4d 100644

[PATCH] misc/sgi-gru/grufault: fix a style error

2019-01-01 Thread Peng Hao
From: Peng Hao Fix a style error. Remove redundant space. Signed-off-by: Peng Hao --- drivers/misc/sgi-gru/grufault.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c index 93be82f..2ec5808 100644

[PATCH v4] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-12-29 Thread Peng Hao
) with these devices won't provide a cleanup path for these resources when the caller fails. This patch fixes them. Suggested-by: Li Yang Suggested-by: Christophe LEROY Signed-off-by: Wen Yang Reviewed-by: Peng Hao CC: Julia Lawall CC: Zhao Qiang CC: David S. Miller CC: net...@vger.ker

[PATCH] x86/mm/mem_encrypt_identity : fix error useage to sizeof

2018-12-28 Thread Peng Hao
Fix error usage to sizeof. It should not use sizeof to pointer. Signed-off-by: Peng Hao --- arch/x86/mm/mem_encrypt_identity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/mem_encrypt_identity.c b/arch/x86/mm/mem_encrypt_identity.c index a19ef1a..4aa9b14

[PATCH 2/2] arm/plat-pxa/ssp : unneeded to free devm_ allocated data

2018-12-28 Thread Peng Hao
devm_ allocated data will be automatically freed. The free of devm_ allocated data is invalid. Signed-off-by: Peng Hao --- arch/arm/plat-pxa/ssp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index ed36dca..f519199 100644 --- a/arch/arm

[PATCH 1/2] arm/common/dmabounce : NULL check before dma_pool_destroy

2018-12-28 Thread Peng Hao
NULL check before dma_pool_destroy is unnecessary because there is a NULL check in dma_pool_destroy. Signed-off-by: Peng Hao --- arch/arm/common/dmabounce.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index

[PATCH] arm/mach-lpc32xx/pm : use kmemdup instead of duplicating

2018-12-27 Thread Peng Hao
kmemdup has implemented the function that kmalloc() + memcpy(). Prefer to kmemdup rather than code opened implementation. Signed-off-by: Peng Hao --- arch/arm/mach-lpc32xx/pm.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-lpc32xx/pm.c b/arch/arm

[PATCH] arm/mm/pmsa-v8 : remove unneeded semicolon

2018-12-26 Thread Peng Hao
Remove unneeded semicolon. Signed-off-by: Peng Hao --- arch/arm/mm/pmsa-v8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/pmsa-v8.c b/arch/arm/mm/pmsa-v8.c index 617a83d..0d7d5fb 100644 --- a/arch/arm/mm/pmsa-v8.c +++ b/arch/arm/mm/pmsa-v8.c @@ -165,7

[PATCH] arm/mach-iop13xx: remove duplicated argument in define

2018-12-26 Thread Peng Hao
Remove duplicated PCI_STATUS_REC_TARGET_ABORT. Signed-off-by: Peng Hao --- arch/arm/mach-iop13xx/pci.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-iop13xx/pci.h b/arch/arm/mach-iop13xx/pci.h index 736168d..c6a0678 100644 --- a/arch/arm/mach-iop13xx/pci.h +++ b/arch/arm/mach

[PATCH] kvm/eventfd : unnecessory conversion to bool

2018-12-26 Thread Peng Hao
Conversion to bool is not needed in ioeventfd_in_range. Signed-off-by: Peng Hao --- virt/kvm/eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index b20b751..d4cdc9c 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c

[PATCH] kvm:arm/arm64: vgic: remove unnecessary semicolon

2018-12-26 Thread Peng Hao
Remove unnecessary semicolon in vgic_put_irq. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic.c b/virt/kvm/arm/vgic/vgic.c index 7cfdfbc..f9ff5c7 100644 --- a/virt/kvm/arm/vgic/vgic.c +++ b/virt/kvm

[PATCH] kvm: arm/arm64 : vgic: remove unneeded semicolon

2018-12-26 Thread Peng Hao
Remove unneeded semicolon in kvm_vgic_hyp_init. Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/kvm/arm/vgic/vgic-init.c index c0c0b88..3496155 100644 --- a/virt/kvm/arm/vgic/vgic

[PATCH] net/wan/fsl_ucc_hdlc: Avoid double free in ucc_hdlc_probe()

2018-12-26 Thread Peng Hao
From: Wen Yang This patch fixes potential double frees if register_hdlc_device() fails. Signed-off-by: Wen Yang Reviewed-by: Peng Hao CC: Zhao Qiang CC: "David S. Miller" CC: net...@vger.kernel.org CC: linuxppc-...@lists.ozlabs.org CC: linux-kernel@vger.kernel.org --- drive

[PATCH v3] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-12-26 Thread Peng Hao
) with these devices won't provide a cleanup path for these resources when the caller fails. This patch fixes them. Suggested-by: Li Yang Suggested-by: Christophe LEROY Signed-off-by: Wen Yang Reviewed-by: Peng Hao CC: Julia Lawall CC: Zhao Qiang CC: net...@vger.kernel.org CC: linuxppc-...@lists.

[PATCH] kvm/arm : remove unnecessary local variable

2018-12-24 Thread Peng Hao
Remove unnecessary local variable in vgic_set_common_attr Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-kvm-device.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/virt/kvm/arm/vgic/vgic-kvm-device.c b/virt/kvm/arm/vgic/vgic-kvm-device.c index 114dce9..53e5df7

[RESEND PATCH] kvm/x86: propagate fetch fault into guest

2018-12-24 Thread Peng Hao
CR0=80050033 CR2=b757d000 CR3=35d31000 CR4=001406d0 Signed-off-by: Peng Hao --- arch/x86/kvm/emulate.c | 5 - arch/x86/kvm/x86.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 78e430f..dd132cf 100644

[PATCH] kvm/arm64 : reduce the size of kvm_vcpu

2018-12-24 Thread Peng Hao
According to adjust the position of variables in kvm_vcpu_arch, the size of kvm_vcpu can reduce 16 bytes. before: cat /proc/slabinfo | grep kvm kvm_vcpu 252252 9120 28 ... after: cat /proc/slabinfo | grep kvm kvm_vcpu 28 28 9104 28 ... Signed-off-by: Peng Hao --- arch

[PATCH RESEND V5 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-19 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- v4 --> v5 : resolve kbuild issue: handle all typo "drvier/driver" in funtion name. v3 --> v4 : use pcim* function instead of pci* function. handle typo "drvier/driver&q

[PATCH RESEND V5 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-19 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Suggested-by: Andy Shevchenko [Use pcim_* API. - Andy] Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 72 -- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/misc

[PATCH RESEND V5 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-19 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig

[PATCH V5 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-18 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig

[PATCH V5 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-18 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- v4 --> v5 : handle all typo "drvier/driver" in funtion name. v3 --> v4 : use pcim* function instead of pci* function. handle typo "drvier/driver" in funtion name. v2 -->

[PATCH V5 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-18 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 72 -- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f84ed30..c30bf62

[PATCH V4 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-18 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig

[PATCH V4 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-18 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 72 -- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f84ed30..c30bf62

[PATCH V4 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-18 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- QEMU community requires additional PCI devices to simulate PVPANIC devices so that some architectures can not occupy precious less than 4G of memory space. drivers/misc/pvpanic.c | 2 +- 1 file changed, 1

[PATCH V3 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-17 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 82 -- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f84ed30..b8d8dba

[PATCH V3 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-17 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 3150dc2..f84ed30 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers

[PATCH V3 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-17 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig

[PATCH V2 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-16 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 82 -- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f84ed30..b8d8dba

[PATCH V2 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-16 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 3150dc2..f84ed30 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers

[PATCH V2 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-16 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig

[PATCH 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-14 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 3150dc2..f84ed30 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers

[PATCH 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-14 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 67 -- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f84ed30..1fae67e

[PATCH 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-14 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig

[RESEND PATCH] kvm: svm: remove unused struct definition

2018-12-13 Thread Peng Hao
structure svm_init_data is never used. So remove it. Signed-off-by: Peng Hao --- arch/x86/kvm/svm.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 61ccfb1..5c7dc8b 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -675,11 +675,6

[PATCH V3] kvm:x86 :remove unnecessary recalculate_apic_map

2018-12-03 Thread Peng Hao
In the previous code, the variable apic_sw_disabled influences recalculate_apic_map. But in "KVM: x86: simplify kvm_apic_map" (commit:3b5a5ffa928a3f875b0d5dd284eeb7c322e1688a), the access to apic_sw_disabled in recalculate_apic_map has been deleted. Signed-off-by: Peng Hao --- ar

[PATCH V3] kvm:x86 :remove unnecessary recalculate_apic_map

2018-12-03 Thread Peng Hao
In the previous code, the variable apic_sw_disabled influences recalculate_apic_map. But in "KVM: x86: simplify kvm_apic_map" (commit:3b5a5ffa928a3f875b0d5dd284eeb7c322e1688a), the access to apic_sw_disabled in recalculate_apic_map has been deleted. Signed-off-by: Peng Hao --- ar

[PATCH] tick/broadcast: beautify code for removing redundancy statement

2018-12-03 Thread Peng Hao
Remove redundant "ret = 0" statment which was previously initialized to 0. Signed-off-by: Peng Hao --- kernel/time/tick-broadcast.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index aa2094d..311ee7c 100644 --- a/kernel

[PATCH] tick/broadcast: beautify code for removing redundancy statement

2018-12-03 Thread Peng Hao
Remove redundant "ret = 0" statment which was previously initialized to 0. Signed-off-by: Peng Hao --- kernel/time/tick-broadcast.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index aa2094d..311ee7c 100644 --- a/kernel

[PATCH] misc/pvpanic: resolve compile errors for arch=um

2018-11-15 Thread Peng Hao
Resolve compile error for arch=um pvpanic.c:(.text+0xb6): undefined reference to `devm_ioremap_resource' Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 642626a..f417b06 100644

[PATCH] misc/pvpanic: resolve compile errors for arch=um

2018-11-15 Thread Peng Hao
Resolve compile error for arch=um pvpanic.c:(.text+0xb6): undefined reference to `devm_ioremap_resource' Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 642626a..f417b06 100644

  1   2   3   >