summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 61beee94..57786906 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -66,7 +66,10 @@
#define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
#define fallthrough __attribute__((__fallthrough__))
#define __noreturn __attribute__((__noreturn__))
+
+#ifndef __counted_by
#define __counted_by(nr)
+#endif
#define ___PASTE(a,b) a##b
#define __PASTE(a,b) ___PASTE(a,b)