summaryrefslogtreecommitdiffstats
path: root/include/command.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-10-15 08:23:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-21 22:21:23 +0200
commita09eea302b1cf4919cedf167b68354fd7d8cc5f6 (patch)
treee8e32b88f5fe7b93d062636bb2233dd7e47683f5 /include/command.h
parent30078a2f426df5eb738ae9cb895e4485b9b8feaa (diff)
downloadbarebox-a09eea302b1cf4919cedf167b68354fd7d8cc5f6.tar.gz
barebox-a09eea302b1cf4919cedf167b68354fd7d8cc5f6.tar.xz
command.h: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/command.h b/include/command.h
index 4a4d9cf925..e235f632e2 100644
--- a/include/command.h
+++ b/include/command.h
@@ -78,9 +78,10 @@ void barebox_cmd_usage(struct command *cmdtp);
#define Struct_Section __attribute__ ((unused,section (".barebox_cmd")))
-#define BAREBOX_CMD_START(_name) \
-const struct command __barebox_cmd_##_name \
- __attribute__ ((unused,section (".barebox_cmd_" __stringify(_name)))) = { \
+#define BAREBOX_CMD_START(_name) \
+extern const struct command __barebox_cmd_##_name; \
+const struct command __barebox_cmd_##_name \
+ __attribute__ ((unused,section (".barebox_cmd_" __stringify(_name)))) = { \
.name = #_name,
#define BAREBOX_CMD_END \