回复: 回复: [PATCH v4] selftests/landlock:Fix two build issues

2024-01-23 Thread Huyadi
>On Tue, Jan 23, 2024 at 12:04:17PM +, Huyadi wrote: >> >> >> Changes v3 -> v2: >> >> - add helper of gettid instead of __NR_gettid >> >> - add gcc/glibc version info in comments Changes v1 -> v2: >> >> - fix whitespace error >> >> - replace SYS_gettid with _NR_gettid >> >> >> >> tools/

Re: 回复: [PATCH v4] selftests/landlock:Fix two build issues

2024-01-23 Thread Mickaël Salaün
On Tue, Jan 23, 2024 at 12:04:17PM +, Huyadi wrote: > > >> Changes v3 -> v2: > >> - add helper of gettid instead of __NR_gettid > >> - add gcc/glibc version info in comments Changes v1 -> v2: > >> - fix whitespace error > >> - replace SYS_gettid with _NR_gettid > >> > >> tools/testing/se

回复: [PATCH v4] selftests/landlock:Fix two build issues

2024-01-23 Thread Huyadi
>> Changes v3 -> v2: >> - add helper of gettid instead of __NR_gettid >> - add gcc/glibc version info in comments Changes v1 -> v2: >> - fix whitespace error >> - replace SYS_gettid with _NR_gettid >> >> tools/testing/selftests/landlock/fs_test.c | 5 - >> tools/testing/selftests/landl

回复: [PATCH v4] selftests/landlock:Fix two build issues

2024-01-21 Thread Huyadi
> On Mon, Jan 15, 2024 at 06:24:09PM +0800, Hu Yadi wrote: >> From: "Hu.Yadi" >> >> Two issues comes up while building selftest/landlock on my side (gcc >> 7.3/glibc-2.28/kernel-4.19) >> >> the first one is as to gettid >> >> net_test.c: In function ‘set_service’: >> net_test.c:91:45: warning

Re: [PATCH v4] selftests/landlock:Fix two build issues

2024-01-19 Thread Mickaël Salaün
On Mon, Jan 15, 2024 at 06:24:09PM +0800, Hu Yadi wrote: > From: "Hu.Yadi" > > Two issues comes up while building selftest/landlock on my side > (gcc 7.3/glibc-2.28/kernel-4.19) > > the first one is as to gettid > > net_test.c: In function ‘set_service’: > net_test.c:91:45: warning: implicit de

[PATCH v4] selftests/landlock:Fix two build issues

2024-01-15 Thread Hu Yadi
From: "Hu.Yadi" Two issues comes up while building selftest/landlock on my side (gcc 7.3/glibc-2.28/kernel-4.19) the first one is as to gettid net_test.c: In function ‘set_service’: net_test.c:91:45: warning: implicit declaration of function ‘gettid’; [-Wimplicit-function-declaration] "_se