[PATCH v2] compiler.h: add missing kernel-doc for data_race() @expr parameter

Kit Dallege <[email protected]> Sun, 15 Mar 2026 18:09:21 +0100
Newsgroups org.kernel.vger.linux-sparse,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Document the @expr parameter for the data_race() macro that was missing
from the kernel-doc comment.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Kit Dallege <[email protected]>
---
 include/linux/compiler.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index af16624b29fd..4ae001bb6442 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -171,6 +171,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
 
 /**
  * data_race - mark an expression as containing intentional data races
+ * @expr: the expression to execute with data race checking disabled
  *
  * This data_race() macro is useful for situations in which data races
  * should be forgiven.  One example is diagnostic code that accesses
-- 
2.53.0