From 2060ca654e5e4edd1453e24f0bece38fe07762b9 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Sat, 17 Feb 2018 20:50:18 +0000 Subject: [PATCH] Add support for __percpu and __weak macros in the LinuxKPI. MFC after: 1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/linux/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h index ae60553de37..2b9ae100a59 100644 --- a/sys/compat/linuxkpi/common/include/linux/compiler.h +++ b/sys/compat/linuxkpi/common/include/linux/compiler.h @@ -56,6 +56,8 @@ #define __devexit #define __exit #define __rcu +#define __percpu +#define __weak __weak_symbol #define __malloc #define ___stringify(...) #__VA_ARGS__ #define __stringify(...) ___stringify(__VA_ARGS__)