Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-5396: define __acquires, __releases and __must_hold for userspace
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
libcfs.h
diff --git
a/libcfs/include/libcfs/libcfs.h
b/libcfs/include/libcfs/libcfs.h
index
4d3122e
..
e8395f1
100644
(file)
--- a/
libcfs/include/libcfs/libcfs.h
+++ b/
libcfs/include/libcfs/libcfs.h
@@
-90,7
+90,11
@@
static inline int __is_po2(unsigned long long val)
# define __must_hold(x)
# endif /* !__CHECKER__ */
# endif /* !__must_hold */
# define __must_hold(x)
# endif /* !__CHECKER__ */
# endif /* !__must_hold */
-#endif /* __KERNEL__ */
+#else /* __KERNEL__ */
+# define __acquires(x)
+# define __releases(x)
+# define __must_hold(x)
+#endif /* !__KERNEL__ */
/*
* Lustre Error Checksum: calculates checksum
/*
* Lustre Error Checksum: calculates checksum