| 1 |
Origin: https://github.com/chunkeey/carl9170fw/pull/8 |
| 2 |
From: Bastian Germann <[email protected]> |
| 3 |
Date: Thu, 30 Jul 2026 19:32:37 +0200 |
| 4 |
Subject: [PATCH 2/7] Define __always_inline as in Linux |
| 5 |
|
| 6 |
This definition is needed by the other kernel headers. |
| 7 |
|
| 8 |
Signed-off-by: Bastian Germann <[email protected]> |
| 9 |
--- |
| 10 |
include/linux/compiler.h | 3 +++ |
| 11 |
1 file changed, 3 insertions(+) |
| 12 |
|
| 13 |
diff --git a/include/linux/compiler.h b/include/linux/compiler.h |
| 14 |
index 3825c32..5d554d7 100644 |
| 15 |
--- a/include/linux/compiler.h |
| 16 |
+++ b/include/linux/compiler.h |
| 17 |
@@ -19,6 +19,9 @@ |
| 18 |
|
| 19 |
#define __noreturn __attribute__((noreturn)) |
| 20 |
#define __inline __attribute__((always_inline)) |
| 21 |
+#ifndef __always_inline |
| 22 |
+#define __always_inline inline __attribute__((always_inline)) |
| 23 |
+#endif |
| 24 |
#define __hot __attribute__((hot)) |
| 25 |
#define __cold __attribute__((cold)) |
| 26 |
#define __force |