[PATCH 1/1] Documentation/x86/boot: Correct algorithm for runtime start address

2021-03-07 Thread Adrian Huang
From: Adrian Huang Commit 8ab3820fd5b2 ("x86, kaslr: Return location from decompress_kernel") enforces CONFIG_PHYSICAL_START as the minimum relocation address when the kernel option CONFIG_RELOCATABLE is enabled. This change should be included accordingly. Signed-off-by: Adrian Huang

[tip: x86/cleanups] x86/mm: Refine mmap syscall implementation

2021-01-05 Thread tip-bot2 for Adrian Huang
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 91a8f6cb06b33adc79fbf5f7381d907485767c00 Gitweb: https://git.kernel.org/tip/91a8f6cb06b33adc79fbf5f7381d907485767c00 Author:Adrian Huang AuthorDate:Thu, 17 Dec 2020 13:26:48 +08:00

[PATCH 1/1] mm: mmap: Remove unnecessary local variable

2020-12-22 Thread Adrian Huang
From: Adrian Huang The local variable 'retval' is assigned just for once in __do_sys_brk(), and the function returns the value of the local variable right after the assignment. Remove unnecessary assignment and local variable declaration. Signed-off-by: Adrian Huang --- mm/mmap.c |

[PATCH 1/1] x86/mm: Refine mmap syscall implementation

2020-12-16 Thread Adrian Huang
From: Adrian Huang It is unnecessary to use the local variable 'error' in the mmap syscall implementation function, so use the return statement instead of it. Signed-off-by: Adrian Huang --- arch/x86/kernel/sys_x86_64.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-)

[PATCH 1/1] workqueue: Remove redundant assignment

2020-11-01 Thread Adrian Huang
From: Adrian Huang The member 'node' of worker_pool struct (per_cpu worker_pool) is assigned in workqueue_init_early() and workqueue_init(). Commit 2186d9f940b6 ("workqueue: move wq_numa_init() to workqueue_init()") fixes an issue by moving wq_numa_init() to workqueue_init()

[PATCH 1/1] ACPI/APEI: Fix the returned value in erst_dbg_read

2012-12-14 Thread Adrian Huang
If the persistent store is empty initially, the function 'erst_dbg_read' returns a nonzero value. The better way is to return a zero indicating the read operation reaches EOF. Tested on two different servers. Signed-off-by: Adrian Huang --- drivers/acpi/apei/erst-dbg.c | 11