X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=common%2Fexports.c;h=b97ca48307dcba1493d9426bde8e6f706d8fa1ed;hb=b02bfc4dfcef3be8276521e1933573e97a5cf203;hp=60bba750f75990cc4f0b644ec49df6c42db55cc0;hpb=2a49bf3149e34e6f910e70bbc0a26e81cfdbdf70;p=karo-tx-uboot.git diff --git a/common/exports.c b/common/exports.c index 60bba750f7..b97ca48307 100644 --- a/common/exports.c +++ b/common/exports.c @@ -1,9 +1,10 @@ #include #include +#include DECLARE_GLOBAL_DATA_PTR; -static void dummy(void) +__attribute__((unused)) static void dummy(void) { } @@ -15,7 +16,7 @@ unsigned long get_version(void) /* Reuse _exports.h with a little trickery to avoid bitrot */ #define EXPORT_FUNC(sym) gd->jt[XF_##sym] = (void *)sym; -#if !defined(CONFIG_I386) && !defined(CONFIG_PPC) +#if !defined(CONFIG_X86) && !defined(CONFIG_PPC) # define install_hdlr dummy # define free_hdlr dummy #else /* kludge for non-standard function naming */ @@ -34,9 +35,6 @@ unsigned long get_version(void) # define spi_release_bus dummy # define spi_xfer dummy #endif -#ifndef CONFIG_HAS_UID -# define forceenv dummy -#endif void jumptable_init(void) {