Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <marcin.slusarz@gmail.com>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Marcin Slusarz and committed by
Linus Torvalds
0045edaa 9746077a

-18
-18
fs/ufs/swab.h
··· 41 41 } 42 42 43 43 static __inline u32 44 - fs64_add(struct super_block *sbp, u32 *n, int d) 45 - { 46 - if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) 47 - return *n = cpu_to_le64(le64_to_cpu(*n)+d); 48 - else 49 - return *n = cpu_to_be64(be64_to_cpu(*n)+d); 50 - } 51 - 52 - static __inline u32 53 - fs64_sub(struct super_block *sbp, u32 *n, int d) 54 - { 55 - if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) 56 - return *n = cpu_to_le64(le64_to_cpu(*n)-d); 57 - else 58 - return *n = cpu_to_be64(be64_to_cpu(*n)-d); 59 - } 60 - 61 - static __inline u32 62 44 fs32_to_cpu(struct super_block *sbp, __fs32 n) 63 45 { 64 46 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE)