aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2022-03-27 11:33:16 -0600
committerJens Axboe <axboe@kernel.dk>2022-04-11 19:18:27 -0600
commit868e6139c5212e7d9de8332806aacfeafb349320 (patch)
treee8862776d65c8b945579777f9b8c534baa839eb4 /include/linux/kernel.h
parentdrbd: set QUEUE_FLAG_STABLE_WRITES (diff)
downloadwireguard-linux-868e6139c5212e7d9de8332806aacfeafb349320.tar.xz
wireguard-linux-868e6139c5212e7d9de8332806aacfeafb349320.zip
block: move lower_48_bits() to block
The function is not generally applicable enough to be included in the core kernel header. Move it to block since it's the only subsystem using it. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Keith Busch <kbusch@kernel.org> Link: https://lore.kernel.org/r/20220327173316.315-1-kbusch@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 08ba5995aa8b..a890428bcc1a 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -64,15 +64,6 @@
)
/**
- * lower_48_bits() - return bits 0-47 of a number
- * @n: the number we're accessing
- */
-static inline u64 lower_48_bits(u64 n)
-{
- return n & ((1ull << 48) - 1);
-}
-
-/**
* upper_32_bits - return bits 32-63 of a number
* @n: the number we're accessing
*