]> git.baikalelectronics.ru Git - kernel.git/commit
linux/types.h: reinstate "__bitwise__" macro for user space use
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2022 16:02:19 +0000 (09:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2022 17:08:59 +0000 (10:08 -0700)
commite218417b17670f03f0c4f54d7fd747bbec9c395c
treeeef470377776f300b96cae38c5cb1883da0d0da4
parentb30794c6bf308b192f70c6314ff2adc16035e5e6
linux/types.h: reinstate "__bitwise__" macro for user space use

Commit dcde58fe2922 ("linux/types.h: remove unnecessary __bitwise__")
was right that there are no users of __bitwise__ in the kernel, but it
turns out there are user space users of it that do expect it.

It is, after all, in the uapi directory, so user space usage is to be
expected.

Instead of reverting the commit completely, let's just clarify the
situation so that it doesn't happen again, and have some in-code
explanations for why that "__bitwise__" still exists.

Reported-by: Jiri Slaby <jirislaby@kernel.org>
Cc: Bjorn Helgaas <helgaas@kernel.org>
Link: https://lore.kernel.org/all/b5c0a68d-8387-4909-beea-f70ab9e6e3d5@kernel.org/
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/uapi/linux/types.h