From 063a3fc126cfc54d16de7c03d5f356380ed6ea1a Mon Sep 17 00:00:00 2001 From: Bo Branten Date: Sun, 1 Sep 2024 21:05:32 +0200 Subject: [PATCH] avoid compiler warnings --- Ext4Fsd/include/linux/ext4.h | 3 +-- Ext4Fsd/include/linux/module.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Ext4Fsd/include/linux/ext4.h b/Ext4Fsd/include/linux/ext4.h index 524f457..8793fe7 100644 --- a/Ext4Fsd/include/linux/ext4.h +++ b/Ext4Fsd/include/linux/ext4.h @@ -979,7 +979,6 @@ struct move_extent { <= (EXT4_GOOD_OLD_INODE_SIZE + \ (einode)->i_extra_isize)) \ -#endif /* * We use an encoding that preserves the times for extra epoch "00": * @@ -1027,7 +1026,7 @@ static inline void ext4_decode_extra_time(struct timespec64 *time, } time->tv_nsec = (le32_to_cpu(extra) & EXT4_NSEC_MASK) >> EXT4_EPOCH_BITS; } -#if 0 + #define EXT4_INODE_SET_XTIME(xtime, inode, raw_inode) \ do { \ (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \ diff --git a/Ext4Fsd/include/linux/module.h b/Ext4Fsd/include/linux/module.h index 15501b2..f1efa85 100644 --- a/Ext4Fsd/include/linux/module.h +++ b/Ext4Fsd/include/linux/module.h @@ -45,9 +45,11 @@ #ifdef __cplusplus extern "C" { #endif +#if 0 unsigned short __cdecl _byteswap_ushort(unsigned short); unsigned long __cdecl _byteswap_ulong (unsigned long); unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64); +#endif #ifdef __cplusplus } #endif