diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-08-14 13:25:35 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-08-14 13:25:35 +0000 |
| commit | 4f00aa42a77d397b4e1a75abf15ec0aa1ad5b0a4 (patch) | |
| tree | eaa29de1bea420f7d657ddaab3fd8ca8df08c843 | |
| parent | 2259d2586f51e84794ec0b353d66906bbd67ac13 (diff) | |
Notes
| -rw-r--r-- | sys/ofed/include/linux/compiler.h | 10 | ||||
| -rw-r--r-- | sys/ofed/include/linux/types.h | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/sys/ofed/include/linux/compiler.h b/sys/ofed/include/linux/compiler.h index 194489c1b3a6..e380d5fb5ca8 100644 --- a/sys/ofed/include/linux/compiler.h +++ b/sys/ofed/include/linux/compiler.h @@ -2,7 +2,8 @@ * Copyright (c) 2010 Isilon Systems, Inc. * Copyright (c) 2010 iX Systems, Inc. * Copyright (c) 2010 Panasas, Inc. - * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. + * Copyright (c) 2013-2015 Mellanox Technologies, Ltd. + * Copyright (c) 2015 François Tigeot * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -62,6 +63,13 @@ #define typeof(x) __typeof(x) #define uninitialized_var(x) x = x +#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __always_unused __unused +#define __must_check __result_use_check + +#define __printf(a,b) __printflike(a,b) + +#define barrier() __asm__ __volatile__("": : :"memory") #define ACCESS_ONCE(x) (*(volatile __typeof(x) *)&(x)) diff --git a/sys/ofed/include/linux/types.h b/sys/ofed/include/linux/types.h index 9fff0ec919f9..b5def5583250 100644 --- a/sys/ofed/include/linux/types.h +++ b/sys/ofed/include/linux/types.h @@ -36,8 +36,6 @@ #include <linux/compiler.h> #include <asm/types.h> -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) - #ifndef __bitwise__ #ifdef __CHECKER__ #define __bitwise__ __attribute__((bitwise)) |
