X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fcommand.h;h=137cfbc3231f1a0eee0ddabcb4269499d9c9af17;hb=49c8ef0e45a91ec894ef15e7d043dafe8f1c5efd;hp=747f8f80958e74cf3ab971c3c48770ffb92becc0;hpb=8308a28af821d6498186b3dd7463db9874cd2daf;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/command.h b/include/command.h index 747f8f8..137cfbc 100644 --- a/include/command.h +++ b/include/command.h @@ -389,6 +389,14 @@ int run_command_list(const char *cmd, int len, int flag); return 0; \ } +#define _CMD_REMOVE_REP(_name, _cmd) \ + int __remove_ ## _name(void) \ + { \ + if (0) \ + _cmd(NULL, 0, 0, NULL, NULL); \ + return 0; \ + } + #define U_BOOT_CMDREP_MKENT_COMPLETE(_name, _maxargs, _cmd_rep, \ _usage, _help, _comp) \ { #_name, _maxargs, 0 ? _cmd_rep : NULL, NULL, _usage, \ @@ -405,7 +413,7 @@ int run_command_list(const char *cmd, int len, int flag); #define U_BOOT_CMDREP_COMPLETE(_name, _maxargs, _cmd_rep, _usage, \ _help, _comp) \ - _CMD_REMOVE(sub_ ## _name, _cmd_rep) + _CMD_REMOVE_REP(sub_ ## _name, _cmd_rep) #endif /* CONFIG_CMDLINE */