Skip to content

Commit 0bb9ab3

Browse files
melverKAGA-KOKO
authored andcommitted
kcsan: Update Documentation to change supported compilers
Document change in required compiler version for KCSAN, and remove the now redundant note about __no_kcsan and inlining problems with older compilers. Signed-off-by: Marco Elver <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent e3b779d commit 0bb9ab3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Documentation/dev-tools/kcsan.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ approach to detect races. KCSAN's primary purpose is to detect `data races`_.
88
Usage
99
-----
1010

11-
KCSAN is supported in both GCC and Clang. With GCC it requires version 7.3.0 or
12-
later. With Clang it requires version 7.0.0 or later.
11+
KCSAN requires Clang version 11 or later.
1312

1413
To enable KCSAN configure the kernel with::
1514

@@ -121,12 +120,6 @@ the below options are available:
121120
static __no_kcsan_or_inline void foo(void) {
122121
...
123122

124-
Note: Older compiler versions (GCC < 9) also do not always honor the
125-
``__no_kcsan`` attribute on regular ``inline`` functions. If false positives
126-
with these compilers cannot be tolerated, for small functions where
127-
``__always_inline`` would be appropriate, ``__no_kcsan_or_inline`` should be
128-
preferred instead.
129-
130123
* To disable data race detection for a particular compilation unit, add to the
131124
``Makefile``::
132125

0 commit comments

Comments
 (0)