1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-17 20:10:49 +00:00
Alexander Lobakin bb7379bfa6 bitops: define const_*() versions of the non-atomics
Define const_*() variants of the non-atomic bitops to be used when
the input arguments are compile-time constants, so that the compiler
will be always able to resolve those to compile-time constants as
well. Those are mostly direct aliases for generic_*() with one
exception for const_test_bit(): the original one is declared
atomic-safe and thus doesn't discard the `volatile` qualifier, so
in order to let optimize code, define it separately disregarding
the qualifier.
Add them to the compile-time type checks as well just in case.

Suggested-by: Marco Elver <elver@google.com>
Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Reviewed-by: Marco Elver <elver@google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
2022-06-30 19:52:41 -07:00
..
2022-06-03 11:48:47 -07:00
2022-06-03 11:48:47 -07:00
2022-06-03 11:48:47 -07:00
2022-06-05 09:12:28 -07:00
2022-05-26 14:51:38 -07:00
2022-06-02 15:23:54 -07:00
2022-05-24 14:31:29 -07:00
2022-05-22 20:44:29 +01:00
2022-06-02 15:23:54 -07:00
2022-06-03 11:48:47 -07:00
2022-05-30 11:30:16 -07:00
2022-06-08 14:04:14 -04:00
2022-06-03 10:14:48 -07:00
2022-05-25 12:22:58 -07:00
2022-05-20 15:29:00 -07:00
2022-05-23 17:51:12 -07:00
2022-06-03 11:48:47 -07:00
2022-05-25 16:18:27 -07:00
2022-06-03 11:48:47 -07:00
2022-06-03 06:52:57 -07:00
2022-05-29 10:31:36 -07:00
2022-05-28 11:27:17 -07:00
2022-06-03 11:48:47 -07:00
2022-05-24 19:55:07 -07:00
2022-05-26 14:20:14 -07:00
2022-06-06 09:52:17 +09:00
2022-05-27 21:24:19 -07:00
2022-05-24 13:09:13 -07:00
2022-05-19 14:08:53 -07:00
2022-06-04 14:04:27 -07:00
2022-05-24 19:55:07 -07:00
2022-06-03 11:48:47 -07:00
2022-06-10 11:29:48 +02:00
2022-05-22 21:03:01 +01:00
2022-06-03 10:34:34 -07:00
2022-06-02 10:15:05 -07:00
2022-05-24 08:41:18 -06:00
2022-05-31 12:45:10 -04:00
2022-06-13 09:54:52 -07:00
2022-05-26 16:57:20 -07:00