[PATCH] mm: remove the redundancy code

2020-06-29 Thread Su Hui
remove the redundancy code, the zone_start_pfn is assigned from zone->zone_start_pfn Signed-off-by: Su Hui --- mm/page_alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3c4eb750a199..3372a8c9fbc4 100644 --- a/mm/page_alloc.c +++ b

[PATCH 2/4] selftests: ntsync: avoid possible overflow in 32-bit machine

2025-03-14 Thread Su Hui
ip:0 error:0 There is an overflow about 'timeout'. 'timespec->tv_sec' is 4 bytes in 32-bit machine. And 'timeout.tv_sec * 10' causing the overflow problem, adding a cast to avoid this problem. Signed-off-by: Su Hui --- tools/testing/selftests/drivers/

[PATCH 1/4] selftests: ntsync: fix the wrong condition in wake_all

2025-03-14 Thread Su Hui
When 'manual=false' and 'signaled=true', then expected value when using NTSYNC_IOC_CREATE_EVENT should be greater than zero. Fix this typo error. Signed-off-by: Su Hui --- tools/testing/selftests/drivers/ntsync/ntsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 3/4] selftests: ntsync: update config

2025-03-14 Thread Su Hui
ntsync should be tested when CONFIG_NTSYNC is setting rather than CONFIG_WINESYNC, correct this. Signed-off-by: Su Hui --- tools/testing/selftests/drivers/ntsync/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/drivers/ntsync/config b/tools

Re: [PATCH 1/4] selftests: ntsync: fix the wrong condition in wake_all

2025-03-14 Thread Su Hui
On 2025/3/14 18:14, Su Hui wrote: On 2025/3/14 17:21, Dan Carpenter wrote: On Fri, Mar 14, 2025 at 03:14:51PM +0800, Su Hui wrote: When 'manual=false' and 'signaled=true', then expected value when using NTSYNC_IOC_CREATE_EVENT should be greater than zero. Fix this typo e

Re: [PATCH 1/4] selftests: ntsync: fix the wrong condition in wake_all

2025-03-16 Thread Su Hui
On 2025/3/16 04:29, Elizabeth Figura wrote: On Saturday, 15 March 2025 04:39:46 CDT Dan Carpenter wrote: On Fri, Mar 14, 2025 at 05:13:50PM -0500, Elizabeth Figura wrote: On Friday, 14 March 2025 05:14:30 CDT Su Hui wrote: On 2025/3/14 17:21, Dan Carpenter wrote: On Fri, Mar 14, 2025 at 03