mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
sunxi: Avoid unused variable warning.
Mark rc as __maybe_unused since it is infact unused on systems with neither EMAC nor GMAC. Signed-off-by: Ian Campbell <ijc@hellion.org.uk> Acked-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
db53073037
commit
799aff38df
1 changed files with 3 additions and 1 deletions
|
@ -24,6 +24,8 @@
|
|||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/timer.h>
|
||||
|
||||
#include <linux/compiler.h>
|
||||
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
/* Pointer to the global data structure for SPL */
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
@ -115,7 +117,7 @@ void enable_caches(void)
|
|||
*/
|
||||
int cpu_eth_init(bd_t *bis)
|
||||
{
|
||||
int rc;
|
||||
__maybe_unused int rc;
|
||||
|
||||
#ifdef CONFIG_SUNXI_EMAC
|
||||
rc = sunxi_emac_initialize(bis);
|
||||
|
|
Loading…
Reference in a new issue