X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fexports.c;h=b97ca48307dcba1493d9426bde8e6f706d8fa1ed;hb=77b83e6d099cb2149e5b2c33a700003227d99297;hp=60bba750f75990cc4f0b644ec49df6c42db55cc0;hpb=35e3717772c8c3534c18d8aac69e4b822777c23b;p=oweals%2Fu-boot.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) {