From: Marcin Slusarz Date: Mon, 28 Apr 2008 09:16:18 +0000 (-0700) Subject: ufs: remove unused fs64_add and fs64_sub X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0045edaaf980e577272eeb11832daebaeb5d63c4;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ufs: remove unused fs64_add and fs64_sub 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 Signed-off-by: Linus Torvalds --- diff --git a/fs/ufs/swab.h b/fs/ufs/swab.h index a4340d0267bb..c89e6ad891fb 100644 --- a/fs/ufs/swab.h +++ b/fs/ufs/swab.h @@ -40,24 +40,6 @@ cpu_to_fs64(struct super_block *sbp, u64 n) return (__force __fs64)cpu_to_be64(n); } -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) {