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

cyrpto/b128ops: Remove struct u128

Per git-grep u128_xor() and its related struct u128 are unused except
to implement {be,le}128_xor(). Remove them to free up the namespace.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20230531132323.314826687@infradead.org

+3 -11
+3 -11
include/crypto/b128ops.h
··· 50 50 #include <linux/types.h> 51 51 52 52 typedef struct { 53 - u64 a, b; 54 - } u128; 55 - 56 - typedef struct { 57 53 __be64 a, b; 58 54 } be128; 59 55 ··· 57 61 __le64 b, a; 58 62 } le128; 59 63 60 - static inline void u128_xor(u128 *r, const u128 *p, const u128 *q) 64 + static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) 61 65 { 62 66 r->a = p->a ^ q->a; 63 67 r->b = p->b ^ q->b; 64 68 } 65 69 66 - static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) 67 - { 68 - u128_xor((u128 *)r, (u128 *)p, (u128 *)q); 69 - } 70 - 71 70 static inline void le128_xor(le128 *r, const le128 *p, const le128 *q) 72 71 { 73 - u128_xor((u128 *)r, (u128 *)p, (u128 *)q); 72 + r->a = p->a ^ q->a; 73 + r->b = p->b ^ q->b; 74 74 } 75 75 76 76 #endif /* _CRYPTO_B128OPS_H */