summaryrefslogtreecommitdiff
path: root/include/uapi/linux/bits.h
AgeCommit message (Collapse)AuthorFilesLines
2024-02-08uapi: introduce uapi-friendly macros for GENMASKPaolo Bonzini1-0/+15
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: Paolo Bonzini <pbonzini@redhat.com>