summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/kernel_ver.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-03-27 16:32:56 +0530
committerGreg Kroah-Hartman <greg@kroah.com>2015-03-30 15:03:36 +0200
commite2cb6cacad80355b1b9ba864ab9e68b9e4014c21 (patch)
tree570a22ad850587b7c912aabc8f9bcce47e0b0263 /drivers/staging/greybus/kernel_ver.h
parentca3ec299c2d090f99fedcc5995dc1f25ab609408 (diff)
greybus: kernel_ver.h: include <linux/kernel.h> to fix warning
And this is the warning I was getting on kernel version > 3.14 CC [M] greybus/connection.o In file included from include/asm-generic/gpio.h:4:0, from arch/arm/include/asm/gpio.h:9, from include/linux/gpio.h:48, from greybus/kernel_ver.h:59, from greybus/connection.c:12: include/linux/kernel.h:35:0: warning: "U16_MAX" redefined kernel_ver.h is taking care of defining U16_MAX only if is not defined earlier, but it is often included as the first .h file. <linux/kernel.h> might be included later, which always defines it, unconditionally. And so this warning. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/kernel_ver.h')
-rw-r--r--drivers/staging/greybus/kernel_ver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h
index f0010a865c22..12b454e4dbf2 100644
--- a/drivers/staging/greybus/kernel_ver.h
+++ b/drivers/staging/greybus/kernel_ver.h
@@ -14,6 +14,8 @@
#ifndef __GREYBUS_KERNEL_VER_H
#define __GREYBUS_KERNEL_VER_H
+#include <linux/kernel.h>
+
#ifndef __ATTR_WO
#define __ATTR_WO(_name) { \
.attr = { .name = __stringify(_name), .mode = S_IWUSR }, \