Skip to contentSkip to conversation

asm-generic: Make parameter types consisten in _unaligned_be48()

PATCH Superseded Andy Shevchenko 1 participant 2 messages Jul 26, 2022 – Aug 23, 2022 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 asm-generic: Make parameter types consisten in _unaligned_be48()

There is a convention to use internal kernel types, hence replace __u8 by u8.

---
 include/asm-generic/unaligned.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-generic/unaligned.h +1 -1
index df30f11b4a46..699650f81970 100644
@@ -126,7 +126,7 @@ static inline void put_unaligned_le24(const u32 val, void *p)
 	__put_unaligned_le24(val, p);
 }
 
-static inline void __put_unaligned_be48(const u64 val, __u8 *p)
+static inline void __put_unaligned_be48(const u64 val, u8 *p)
 {
 	*p++ = val >> 40;
 	*p++ = val >> 32;
Signature · 1 line
2.35.1
#1 lore raw
Quoted 2 lines · Andy Shevchenko

There is a convention to use internal kernel types, hence replace __u8 by u8.

Any comments on this? Otherwise I may push it through different tree.

Signature · 2 lines
With Best Regards,
Andy Shevchenko