0bddc1bd05
Introduce BITS_TO_U64, BITS_TO_U32 and BITS_TO_BYTES as they are handy in the following patches (BITS_TO_U32 specifically). Reimplement tools/ version of the macros according to the kernel implementation. Also fix indentation for BITS_PER_TYPE definition. Link: http://lkml.kernel.org/r/20200102043031.30357-3-yury.norov@gmail.com Signed-off-by: Yury Norov <yury.norov@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Amritha Nambiar <amritha.nambiar@intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Kees Cook <keescook@chromium.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Miklos Szeredi <mszeredi@redhat.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Steffen Klassert <steffen.klassert@secunet.com> Cc: "Tobin C . Harding" <tobin@kernel.org> Cc: Vineet Gupta <vineet.gupta1@synopsys.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Willem de Bruijn <willemb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
sched | ||
unaligned | ||
atomic.h | ||
bitmap.h | ||
bitops.h | ||
bits.h | ||
bug.h | ||
compiler-gcc.h | ||
compiler.h | ||
const.h | ||
coresight-pmu.h | ||
ctype.h | ||
debug_locks.h | ||
delay.h | ||
err.h | ||
export.h | ||
filter.h | ||
ftrace.h | ||
gfp.h | ||
hardirq.h | ||
hash.h | ||
hashtable.h | ||
interrupt.h | ||
irqflags.h | ||
jhash.h | ||
kallsyms.h | ||
kern_levels.h | ||
kernel.h | ||
linkage.h | ||
list.h | ||
lockdep.h | ||
log2.h | ||
module.h | ||
mutex.h | ||
nmi.h | ||
numa.h | ||
overflow.h | ||
poison.h | ||
proc_fs.h | ||
rbtree.h | ||
rbtree_augmented.h | ||
rcu.h | ||
refcount.h | ||
ring_buffer.h | ||
seq_file.h | ||
sizes.h | ||
spinlock.h | ||
stacktrace.h | ||
string.h | ||
stringify.h | ||
time64.h | ||
types.h | ||
zalloc.h |