Quentin Schulz a645831ca0 cmd: mtd: fix compilation warning for help when SYS_LONGHELP=n
cmd/mtd.c:447:13: warning: ‘mtd_help_text’ defined but not used [-Wunused-variable]
static char mtd_help_text[] =
            ^~~~~~~~~~~~~

When SYS_LONGHELP is not defined. After looking at how other commands
work, we should surround the whole help text (even its declaration) with
an #ifdef CONFIG_SYS_LONGHELP, since it's compiled out when calling
_CMD_HELP[1] on the help text variable argument to U_BOOT_CMD.

[1] https://elixir.bootlin.com/u-boot/latest/source/include/command.h#L181

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
2019-01-18 13:40:34 -05:00
..
2017-02-08 15:56:28 -05:00
2018-08-11 09:16:08 +02:00
2017-07-03 17:35:28 -04:00
2018-12-04 19:45:57 +01:00
2018-05-23 17:30:05 -04:00
2018-12-04 19:44:57 +01:00
2018-09-25 21:49:18 -04:00
2018-09-23 21:55:30 +02:00
2018-09-11 11:00:54 +02:00
2019-01-15 15:28:43 -05:00
2017-08-16 08:30:24 -04:00
2019-01-15 15:28:43 -05:00
2016-10-06 20:57:42 -04:00
2018-09-28 18:27:33 +02:00
2018-11-16 16:51:56 -05:00
2019-01-15 15:28:44 -05:00
2018-05-08 09:07:35 -04:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2018-09-28 20:22:36 -04:00
2018-07-02 14:14:20 -05:00
2019-01-15 15:28:44 -05:00