Patchwork [U-Boot,v2] common/spl: Mark arguments as unused

login
register
mail settings
Submitter Vikram Narayanan
Date Oct. 23, 2012, 11:16 a.m.
Message ID <50867C94.7070502@gmail.com>
Download mbox | patch
Permalink /patch/193464/
State Rejected
Delegated to: Andy Fleming
Headers show

Comments

Vikram Narayanan - Oct. 23, 2012, 11:16 a.m.
As dummy{1,2} are not used anywhere, mark it with __maybe_unused

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Cc: Stefan Roese <sr@denx.de>
---
Changes for v2:
use __always_unused instead of __maybe_unused

 common/spl/spl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Stefan Roese - Oct. 23, 2012, 11:18 a.m.
On 10/23/2012 01:16 PM, Vikram Narayanan wrote:
> As dummy{1,2} are not used anywhere, mark it with __maybe_unused
> 
> Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
> Cc: Stefan Roese <sr@denx.de>

Acked-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

Patch

diff --git a/common/spl/spl.c b/common/spl/spl.c
index 0d829c0..62fd3bd 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -145,7 +145,7 @@  static void spl_ram_load_image(void)
 }
 #endif
 
-void board_init_r(gd_t *dummy1, ulong dummy2)
+void board_init_r(__always_unused gd_t *dummy1, __always_unused ulong dummy2)
 {
 	u32 boot_device;
 	debug(">>spl:board_init_r()\n");