Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa fix clang build



details:   https://anonhg.NetBSD.org/src/rev/4386698f5c6e
branches:  trunk
changeset: 372491:4386698f5c6e
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 01 18:06:09 2022 +0000

description:
fix clang build

diffstat:

 sys/lib/libsa/ufs.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (60 lines):

diff -r 763c0f64dd00 -r 4386698f5c6e sys/lib/libsa/ufs.c
--- a/sys/lib/libsa/ufs.c       Thu Dec 01 15:02:11 2022 +0000
+++ b/sys/lib/libsa/ufs.c       Thu Dec 01 18:06:09 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs.c,v 1.87 2022/11/17 06:40:40 chs Exp $     */
+/*     $NetBSD: ufs.c,v 1.88 2022/12/01 18:06:09 christos Exp $        */
 
 /*-
  * Copyright (c) 1993
@@ -218,6 +218,7 @@
        return fs->fs_magic == FS_UFS1_MAGIC;
 }
 
+#ifdef LIBSA_FFS_EI
 static __inline__ bool
 ffs_is_magic_swapped(FS *fs)
 {
@@ -225,6 +226,8 @@
 }
 #endif
 
+#endif
+
 #ifdef LIBSA_FFSv2
 static __inline__ bool
 ffs_is_magic(FS *fs)
@@ -232,6 +235,7 @@
        return fs->fs_magic == FS_UFS2_MAGIC || fs->fs_magic == FS_UFS2EA_MAGIC;
 }
 
+#ifdef LIBSA_FFS_EI
 static __inline__ bool
 ffs_is_magic_swapped(FS *fs)
 {
@@ -240,6 +244,8 @@
 }
 #endif
 
+#endif
+
 #ifdef LIBSA_LFS
 static __inline__ bool
 ffs_is_magic(FS *fs)
@@ -247,6 +253,7 @@
        return fs->fs_magic == LFS_MAGIC;
 }
 
+#ifdef LIBSA_FFS_EI
 static __inline__ bool
 ffs_is_magic_swapped(FS *fs)
 {
@@ -254,6 +261,8 @@
 }
 #endif
 
+#endif
+
 static __inline__ void
 ffs_fix_magic_swapped(struct file *fp, FS *fs)
 {



Home | Main Index | Thread Index | Old Index