datapath: Add backport for __always_unused.
authorJesse Gross <jesse@nicira.com>
Tue, 22 Oct 2013 22:23:16 +0000 (15:23 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 22 Oct 2013 22:25:05 +0000 (15:25 -0700)
Reported-by: Ben Pfaff <bpfaff@vmware.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/include/linux/compiler-gcc.h

index 1ee8d6f..bf057f7 100644 (file)
@@ -7,3 +7,7 @@
 #ifndef __packed
 #define __packed __attribute__((packed))
 #endif
+
+#ifndef __always_unused
+#define __always_unused __attribute__((unused))
+#endif