summaryrefslogtreecommitdiffstats
path: root/include/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/command.h b/include/command.h
index f016e35b2d..9226756cc0 100644
--- a/include/command.h
+++ b/include/command.h
@@ -2,9 +2,6 @@
/*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * See file CREDITS for list of people who contributed to this
- * project.
*/
/*
@@ -15,7 +12,9 @@
#include <linux/list.h>
#include <linux/stringify.h>
+#include <linux/compiler_types.h>
#include <linux/stddef.h>
+#include <string.h>
#ifndef __ASSEMBLY__
@@ -77,8 +76,7 @@ int run_command(const char *cmd);
#define BAREBOX_CMD_START(_name) \
static struct command __barebox_cmd_##_name; \
const struct command *barebox_cmd_##_name \
- __attribute__ ((unused,section (".barebox_cmd_" __stringify(_name)))) \
- = &__barebox_cmd_##_name; \
+ __ll_elem(.barebox_cmd_##_name) = &__barebox_cmd_##_name; \
static struct command __barebox_cmd_##_name = { \
.name = #_name,