* [merged mm-hotfixes-stable] checksyscalls-ignore-fstat-to-silence-build-warning-on-loongarch.patch removed from -mm tree
@ 2023-03-23 1:32 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-03-23 1:32 UTC (permalink / raw)
To: mm-commits, masahiroy, kernel, chenhuacai, arnd, yangtiezhu, akpm
The quilt patch titled
Subject: checksyscalls: ignore fstat to silence build warning on LoongArch
has been removed from the -mm tree. Its filename was
checksyscalls-ignore-fstat-to-silence-build-warning-on-loongarch.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Tiezhu Yang <yangtiezhu@loongson.cn>
Subject: checksyscalls: ignore fstat to silence build warning on LoongArch
Date: Tue, 7 Mar 2023 15:59:00 +0800
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]
Link: https://lkml.kernel.org/r/1678175940-20872-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Suggested-by: WANG Xuerui <kernel@xen0n.name>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
--- a/scripts/checksyscalls.sh~checksyscalls-ignore-fstat-to-silence-build-warning-on-loongarch
+++ a/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
}
_
Patches currently in -mm which might be from yangtiezhu@loongson.cn are
lib-kconfigdebug-correct-help-info-of-lockdep_stack_trace_hash_bits.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-23 1:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 1:32 [merged mm-hotfixes-stable] checksyscalls-ignore-fstat-to-silence-build-warning-on-loongarch.patch removed from -mm tree Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).