]> git.baikalelectronics.ru Git - kernel.git/commit
nios2: Fix unused variable warning
authorMarek Vasut <marex@denx.de>
Wed, 30 Sep 2015 14:06:46 +0000 (22:06 +0800)
committerLey Foon Tan <lftan@altera.com>
Mon, 9 Nov 2015 02:33:29 +0000 (10:33 +0800)
commit3c8b800bd6c2fd32237d0e2eda3ab943d97af954
tree157d76a59d44d2ab5741f012dd80c7313bda00c0
parent9d3ff5a7c8fe5f44fd48e22d9c3aa180e92e1bac
nios2: Fix unused variable warning

Fix the following compiler splat by adding __maybe_unused annotation to
the variable. Using this particular annotation has the least ugly impact
on the code compared to using ifdeffery.

arch/nios2/kernel/setup.c: In function 'nios2_boot_init':
arch/nios2/kernel/setup.c:107:7: warning: unused variable 'cmdline_passed' [-Wunused-variable]
  char cmdline_passed[COMMAND_LINE_SIZE] = { 0, };
       ^

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/kernel/setup.c