aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-swap.h-micro-define-to-support-musl-libc.patch
blob: e2245fc4c2dafc856a1a0d4d34e3a1510455e1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From c21dfb0dfdfec281479e267ad7fe9a8d4ba15a70 Mon Sep 17 00:00:00 2001
From: "Hongzhi.Song" <hongzhi.song@windriver.com>
Date: Tue, 17 Jul 2018 23:47:48 -0700
Subject: [PATCH] add micro define to support musl libc

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
---
 recipe-sysroot/usr/include/linux/swab.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipe-sysroot/usr/include/linux/swab.h b/recipe-sysroot/usr/include/linux/swab.h
index afb7eb7..33efa10 100644
--- a/recipe-sysroot/usr/include/linux/swab.h
+++ b/recipe-sysroot/usr/include/linux/swab.h
@@ -6,6 +6,8 @@
 
 #include <asm/swab.h>
 
+#define __always_inline __inline __attribute__ ((__always_inline__))
+
 /*
  * casts are necessary for constants, because we never know how for sure
  * how U/UL/ULL map to __u16, __u32, __u64. At least not in a portable way.
-- 
2.11.0