]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation: checkpatch: Tweak BIT() macro include
authorAndrew Jeffery <andrew@aj.id.au>
Thu, 20 May 2021 09:39:49 +0000 (19:09 +0930)
committerJonathan Corbet <corbet@lwn.net>
Thu, 20 May 2021 20:27:30 +0000 (14:27 -0600)
commit5c5efea8bd46da7a51150f4b3d234d1d9102f27c
treea1e783762d7a3f3be7a131478e7bb79e9e1b8d4b
parentccd478c28d91ab67ec85a80a1a8c5b6af8c9a656
Documentation: checkpatch: Tweak BIT() macro include

While include/linux/bitops.h brings in the BIT() macro, it was moved to
include/linux/bits.h in commit 0ad8be0919e5 ("locking/atomics, asm-generic:
Move some macros from <linux/bitops.h> to a new <linux/bits.h> file").

Since that commit BIT() has moved again into include/vdso/bits.h via
commit 015d5cd67d16 ("linux/bits.h: Extract common header for vDSO").

I think the move to the vDSO header can be considered an implementation
detail, so for now update the checkpatch documentation to recommend use
of include/linux/bits.h.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Jiri Slaby <jirislaby@kernel.org>
Acked-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Acked-by: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20210520093949.511471-1-andrew@aj.id.au
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/dev-tools/checkpatch.rst