lkml.org 
[lkml]   [2022]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2] checksyscalls: Ignore fstat to silence build warning on LoongArch
Date
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.

v2:
-- Change scripts/checksyscalls.sh
-- Modify patch subject and commit message

scripts/checksyscalls.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
index f33e61a..c0a093c 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
@@ -253,6 +252,7 @@ cat << EOF
#define __IGNORE_vserver

/* 64-bit ports never needed these, and new 32-bit ports can use statx */
+#define __IGNORE_fstat
#define __IGNORE_fstat64
#define __IGNORE_fstatat64
EOF
--
2.1.0
\
 
 \ /
  Last update: 2022-08-30 04:50    [W:0.025 / U:3.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site