ARM: zynq: Guard zynq_help_text with CONFIG_SYS_LONGHELP
authorMichal Simek <michal.simek@xilinx.com>
Mon, 19 Nov 2018 14:46:04 +0000 (15:46 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 26 Nov 2018 09:50:54 +0000 (10:50 +0100)
commit0dc69f4193cb5ad8bbb57cb64435734f5fbbe81a
tree913b28615855e64c130c3fc71abf7b11ad073cdb
parent1cefca71d237aae2c5cc2445f7698941443a2cd9
ARM: zynq: Guard zynq_help_text with CONFIG_SYS_LONGHELP

If SYS_LONGHELP is disabled the following warning is generated:
board/xilinx/zynq/cmds.c:496:13: warning: ‘zynq_help_text’ defined but
not used [-Wunused-variable]

Normal way for fixing this is to guard the whole variable.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynq/cmds.c