* [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch
@ 2022-08-30 3:27 Tiezhu Yang
2022-10-09 4:33 ` Tiezhu Yang
0 siblings, 1 reply; 5+ messages in thread
From: Tiezhu Yang @ 2022-08-30 3:27 UTC (permalink / raw)
To: Huacai Chen, WANG Xuerui, Arnd Bergmann; +Cc: loongarch, linux-kernel
fstat is replaced by statx on the new architecture, so an exception
is added to the checksyscalls script to silence the following build
warning on LoongArch:
CALL scripts/checksyscalls.sh
<stdin>:569:2: warning: #warning syscall fstat not implemented [-Wcpp]
Suggested-by: WANG Xuerui <kernel@xen0n.name>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
Hi Xuerui and Arnd,
Thank you for your reviews and suggestions.
v3:
-- Move the definition to its own block with some explanation
v2:
-- Change scripts/checksyscalls.sh
-- Modify patch subject and commit message
scripts/checksyscalls.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
index f33e61a..1e5d2ee 100755
--- a/scripts/checksyscalls.sh
+++ b/scripts/checksyscalls.sh
@@ -114,7 +114,6 @@ cat << EOF
#define __IGNORE_truncate
#define __IGNORE_stat
#define __IGNORE_lstat
-#define __IGNORE_fstat
#define __IGNORE_fcntl
#define __IGNORE_fadvise64
#define __IGNORE_newfstatat
@@ -255,6 +254,9 @@ cat << EOF
/* 64-bit ports never needed these, and new 32-bit ports can use statx */
#define __IGNORE_fstat64
#define __IGNORE_fstatat64
+
+/* Newer ports are not required to provide fstat in favor of statx */
+#define __IGNORE_fstat
EOF
}
--
2.1.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch
2022-08-30 3:27 [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch Tiezhu Yang
@ 2022-10-09 4:33 ` Tiezhu Yang
2022-10-09 14:01 ` Xi Ruoyao
0 siblings, 1 reply; 5+ messages in thread
From: Tiezhu Yang @ 2022-10-09 4:33 UTC (permalink / raw)
To: Huacai Chen, WANG Xuerui, Arnd Bergmann
Cc: loongarch, linux-kernel, Andrew Morton
On 08/30/2022 11:27 AM, Tiezhu Yang wrote:
> fstat is replaced by statx on the new architecture, so an exception
> is added to the checksyscalls script to silence the following build
> warning on LoongArch:
>
> CALL scripts/checksyscalls.sh
> <stdin>:569:2: warning: #warning syscall fstat not implemented [-Wcpp]
Hi all,
The above warning still exists when build the latest loongarch-next.
Do you know which tree this patch will go through?
Could you please pick it up via your tree in this merge window?
https://lore.kernel.org/lkml/1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn/
Thanks,
Tiezhu
>
> Suggested-by: WANG Xuerui <kernel@xen0n.name>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
> ---
>
> Hi Xuerui and Arnd,
>
> Thank you for your reviews and suggestions.
>
> v3:
> -- Move the definition to its own block with some explanation
>
> v2:
> -- Change scripts/checksyscalls.sh
> -- Modify patch subject and commit message
>
> scripts/checksyscalls.sh | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
> index f33e61a..1e5d2ee 100755
> --- a/scripts/checksyscalls.sh
> +++ b/scripts/checksyscalls.sh
> @@ -114,7 +114,6 @@ cat << EOF
> #define __IGNORE_truncate
> #define __IGNORE_stat
> #define __IGNORE_lstat
> -#define __IGNORE_fstat
> #define __IGNORE_fcntl
> #define __IGNORE_fadvise64
> #define __IGNORE_newfstatat
> @@ -255,6 +254,9 @@ cat << EOF
> /* 64-bit ports never needed these, and new 32-bit ports can use statx */
> #define __IGNORE_fstat64
> #define __IGNORE_fstatat64
> +
> +/* Newer ports are not required to provide fstat in favor of statx */
> +#define __IGNORE_fstat
> EOF
> }
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch
2022-10-09 4:33 ` Tiezhu Yang
@ 2022-10-09 14:01 ` Xi Ruoyao
2022-10-12 6:19 ` Tiezhu Yang
0 siblings, 1 reply; 5+ messages in thread
From: Xi Ruoyao @ 2022-10-09 14:01 UTC (permalink / raw)
To: Tiezhu Yang, Huacai Chen, WANG Xuerui, Arnd Bergmann
Cc: loongarch, linux-kernel, Andrew Morton
On Sun, 2022-10-09 at 12:33 +0800, Tiezhu Yang wrote:
>
>
> On 08/30/2022 11:27 AM, Tiezhu Yang wrote:
> > fstat is replaced by statx on the new architecture, so an exception
> > is added to the checksyscalls script to silence the following build
> > warning on LoongArch:
> >
> > CALL scripts/checksyscalls.sh
> > <stdin>:569:2: warning: #warning syscall fstat not implemented [-
> > Wcpp]
>
> Hi all,
>
> The above warning still exists when build the latest loongarch-next.
>
> Do you know which tree this patch will go through?
>
> Could you please pick it up via your tree in this merge window?
A similar change 3ef6ca4f354c ("checksyscalls: Unconditionally ignore
fstat{,at}64") was merged through RISC-V tree, so it should be OK to
merge this from loongarch-next.
Not sure if we need to get an Ack from someone first though.
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch
2022-10-09 14:01 ` Xi Ruoyao
@ 2022-10-12 6:19 ` Tiezhu Yang
2022-11-03 13:24 ` Tiezhu Yang
0 siblings, 1 reply; 5+ messages in thread
From: Tiezhu Yang @ 2022-10-12 6:19 UTC (permalink / raw)
To: Xi Ruoyao, Huacai Chen, WANG Xuerui, Arnd Bergmann
Cc: loongarch, linux-kernel, Andrew Morton, Masahiro Yamada,
Michal Marek, Nick Desaulniers
Cc KERNEL BUILD maintainers:
Masahiro Yamada <masahiroy@kernel.org>
Michal Marek <michal.lkml@markovi.net>
Nick Desaulniers <ndesaulniers@google.com>
On 10/09/2022 10:01 PM, Xi Ruoyao wrote:
> On Sun, 2022-10-09 at 12:33 +0800, Tiezhu Yang wrote:
>>
>>
>> On 08/30/2022 11:27 AM, Tiezhu Yang wrote:
>>> fstat is replaced by statx on the new architecture, so an exception
>>> is added to the checksyscalls script to silence the following build
>>> warning on LoongArch:
>>>
>>> CALL scripts/checksyscalls.sh
>>> <stdin>:569:2: warning: #warning syscall fstat not implemented [-
>>> Wcpp]
>>
>> Hi all,
>>
>> The above warning still exists when build the latest loongarch-next.
>>
>> Do you know which tree this patch will go through?
>>
>> Could you please pick it up via your tree in this merge window?
>
> A similar change 3ef6ca4f354c ("checksyscalls: Unconditionally ignore
> fstat{,at}64") was merged through RISC-V tree, so it should be OK to
> merge this from loongarch-next.
>
> Not sure if we need to get an Ack from someone first though.
>
Since this is a kernel build warning, maybe it is proper through
linux-kbuild.git.
https://lore.kernel.org/lkml/1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn/
Thanks,
Tiezhu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch
2022-10-12 6:19 ` Tiezhu Yang
@ 2022-11-03 13:24 ` Tiezhu Yang
0 siblings, 0 replies; 5+ messages in thread
From: Tiezhu Yang @ 2022-11-03 13:24 UTC (permalink / raw)
To: Andrew Morton
Cc: Xi Ruoyao, Huacai Chen, WANG Xuerui, Arnd Bergmann, loongarch,
linux-kernel, Masahiro Yamada, Michal Marek, Nick Desaulniers
Hi Andrew,
On 10/12/2022 02:19 PM, Tiezhu Yang wrote:
>
> Cc KERNEL BUILD maintainers:
>
> Masahiro Yamada <masahiroy@kernel.org>
> Michal Marek <michal.lkml@markovi.net>
> Nick Desaulniers <ndesaulniers@google.com>
>
> On 10/09/2022 10:01 PM, Xi Ruoyao wrote:
>> On Sun, 2022-10-09 at 12:33 +0800, Tiezhu Yang wrote:
>>>
>>>
>>> On 08/30/2022 11:27 AM, Tiezhu Yang wrote:
>>>> fstat is replaced by statx on the new architecture, so an exception
>>>> is added to the checksyscalls script to silence the following build
>>>> warning on LoongArch:
>>>>
>>>> CALL scripts/checksyscalls.sh
>>>> <stdin>:569:2: warning: #warning syscall fstat not implemented [-
>>>> Wcpp]
>>>
>>> Hi all,
>>>
>>> The above warning still exists when build the latest loongarch-next.
>>>
>>> Do you know which tree this patch will go through?
>>>
>>> Could you please pick it up via your tree in this merge window?
>>
>> A similar change 3ef6ca4f354c ("checksyscalls: Unconditionally ignore
>> fstat{,at}64") was merged through RISC-V tree, so it should be OK to
>> merge this from loongarch-next.
>>
>> Not sure if we need to get an Ack from someone first though.
>>
>
> Since this is a kernel build warning, maybe it is proper through
> linux-kbuild.git.
>
> https://lore.kernel.org/lkml/1661830021-8643-1-git-send-email-yangtiezhu@loongson.cn/
>
>
> Thanks,
> Tiezhu
The build warning still exists when build the latest Linux 6.1-rc3 on
LoongArch, if you are OK with this change, please apply it through your
mm tree, thank you.
"If you cannot find a maintainer for the subsystem you are working on,
Andrew Morton (akpm@linux-foundation.org) serves as a maintainer of
last resort."
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
Thanks,
Tiezhu
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-03 13:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 3:27 [PATCH v3] checksyscalls: Ignore fstat to silence build warning on LoongArch Tiezhu Yang
2022-10-09 4:33 ` Tiezhu Yang
2022-10-09 14:01 ` Xi Ruoyao
2022-10-12 6:19 ` Tiezhu Yang
2022-11-03 13:24 ` Tiezhu Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.