Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2021 21:28:08 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4c8af633d101 - main - LinuxKPI: bitfield.h cleanup
Message-ID:  <202107292128.16TLS8OD091187@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=4c8af633d10104c793673ee1f6e7b96f113cce5a

commit 4c8af633d10104c793673ee1f6e7b96f113cce5a
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-07-29 21:24:35 +0000
Commit:     Bjoern A. Zeeb <bz@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107292128.16TLS8OD091187>