public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: Include <linux/bug.h> to prevent compile errors
@ 2012-03-09 20:18 Stephen Warren
  2012-03-09 20:32 ` Paul Gortmaker
  2012-03-12 19:44 ` Linus Walleij
  0 siblings, 2 replies; 7+ messages in thread
From: Stephen Warren @ 2012-03-09 20:18 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Paul Gortmaker, linux-kernel, Stephen Warren

Macros in <linux/pinctrl/machine.h> call ARRAY_SIZE(), the definition of
which eventually calls BUILD_BUG_ON_ZERO(), which is defined in
<linux/bug.h>. Include that so that every .c file using the pinctrl macros
doesn't have to do that itself.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
---
 include/linux/pinctrl/machine.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h
index fee4349..012731a 100644
--- a/include/linux/pinctrl/machine.h
+++ b/include/linux/pinctrl/machine.h
@@ -12,7 +12,9 @@
 #ifndef __LINUX_PINCTRL_MACHINE_H
 #define __LINUX_PINCTRL_MACHINE_H
 
-#include "pinctrl-state.h"
+#include <linux/bug.h>
+
+#include "pinctrl.h"
 
 enum pinctrl_map_type {
 	PIN_MAP_TYPE_INVALID,
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-12 20:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09 20:18 [PATCH] pinctrl: Include <linux/bug.h> to prevent compile errors Stephen Warren
2012-03-09 20:32 ` Paul Gortmaker
2012-03-09 20:43   ` Stephen Warren
2012-03-09 21:29     ` Paul Gortmaker
2012-03-09 23:09       ` Stephen Warren
2012-03-12 19:44 ` Linus Walleij
2012-03-12 20:55   ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox