diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-22 07:57:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-11 09:51:14 +0300 |
commit | cefb5fdeb4ceb0eba488650ae71b7ece6a5b0ff9 (patch) | |
tree | 5a03e99d279473912f2391c50bdeebdbb4a620ef /net/netlink/af_netlink.c | |
parent | 6c2c0ed34eeac5163dd793ce1aa32f8c95b8cff8 (diff) | |
download | linux-cefb5fdeb4ceb0eba488650ae71b7ece6a5b0ff9.tar.xz |
include/linux/bitops.h: introduce BITS_PER_TYPE
commit 9144d75e22cad3c89e6b2ccab551db9ee28d250a upstream.
net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the
number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the macro
to bitops.h, alongside BITS_PER_BYTE, for wider usage.
Link: http://lkml.kernel.org/r/20180706094458.14116-1-chris@chris-wilson.co.uk
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Andy Gospodarek <gospo@broadcom.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[only take the bitops.h portion for stable kernels - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netlink/af_netlink.c')
0 files changed, 0 insertions, 0 deletions