Skip to content
Commit 3c7a8e19 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

uapi: introduce uapi-friendly macros for GENMASK



Move __GENMASK and __GENMASK_ULL from include/ to include/uapi/ so that they can
be used to define masks in userspace API headers.  Compared to what is already
in include/linux/bits.h, the definitions need to use the uglified versions of
UL(), ULL(), BITS_PER_LONG and BITS_PER_LONG_LONG (which did not even exist),
but otherwise expand to the same content.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 04737196
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment