From: Marcin Slusarz remove fs64_add and fs64_sub - they probably weren't ever used because their prototypes used u32 instead of __fs64 Signed-off-by: Marcin Slusarz Cc: Evgeniy Dushistov Signed-off-by: Andrew Morton --- fs/ufs/swab.h | 18 ------------------ 1 file changed, 18 deletions(-) diff -puN fs/ufs/swab.h~ufs-remove-unused-fs64_add-and-fs64_sub fs/ufs/swab.h --- a/fs/ufs/swab.h~ufs-remove-unused-fs64_add-and-fs64_sub +++ a/fs/ufs/swab.h @@ -41,24 +41,6 @@ cpu_to_fs64(struct super_block *sbp, u64 } static __inline u32 -fs64_add(struct super_block *sbp, u32 *n, int d) -{ - if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) - return *n = cpu_to_le64(le64_to_cpu(*n)+d); - else - return *n = cpu_to_be64(be64_to_cpu(*n)+d); -} - -static __inline u32 -fs64_sub(struct super_block *sbp, u32 *n, int d) -{ - if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) - return *n = cpu_to_le64(le64_to_cpu(*n)-d); - else - return *n = cpu_to_be64(be64_to_cpu(*n)-d); -} - -static __inline u32 fs32_to_cpu(struct super_block *sbp, __fs32 n) { if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) _