git: 4c8af633d101 - main - LinuxKPI: bitfield.h cleanup
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Jul 29 21:28:09 UTC 2021
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=4c8af633d10104c793673ee1f6e7b96f113cce5a
commit 4c8af633d10104c793673ee1f6e7b96f113cce5a
Author: Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-07-29 21:24:35 +0000
Commit: Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-07-29 21:24:35 +0000
LinuxKPI: bitfield.h cleanup
Add a missing tab and remove an unnecessary return.
No functional changes.
MFC after: 3 days
---
sys/compat/linuxkpi/common/include/linux/bitfield.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/compat/linuxkpi/common/include/linux/bitfield.h b/sys/compat/linuxkpi/common/include/linux/bitfield.h
index 4749cc4454e7..27082cbd4886 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitfield.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitfield.h
@@ -77,7 +77,7 @@ _uX_encode_bits(8)
#define _leX_encode_bits(_n) \
static __inline uint ## _n ## _t \
- le ## _n ## _encode_bits(__le ## _n v, uint ## _n ## _t f)\
+ le ## _n ## _encode_bits(__le ## _n v, uint ## _n ## _t f) \
{ \
return (cpu_to_le ## _n((v & ___bitmask(f)) * ___lsb(f))); \
}
@@ -91,7 +91,6 @@ le32p_replace_bits(uint32_t *p, uint32_t v, uint32_t f)
{
*p = (*p & ~(cpu_to_le32(v))) | le32_encode_bits(v, f);
- return;
}
#define __bf_shf(x) (__builtin_ffsll(x) - 1)
More information about the dev-commits-src-main
mailing list