Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8198
-gerrit
commit 70b2dc99b52c785fb85a56d71b468b36e48a84cc Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Tue Jan 13 05:18:57 2015 +1100
northbridge/intel: Avoid 'to_flash_offset()' unused func warn
Change-Id: I9eefc8ddf34f570626719af8e7bae569d28ea30d Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com --- src/drivers/intel/fsp/fastboot_cache.c | 2 ++ src/northbridge/intel/haswell/mrccache.c | 2 ++ src/northbridge/intel/sandybridge/mrccache.c | 2 ++ 3 files changed, 6 insertions(+)
diff --git a/src/drivers/intel/fsp/fastboot_cache.c b/src/drivers/intel/fsp/fastboot_cache.c index 64982d8..674c4bc 100644 --- a/src/drivers/intel/fsp/fastboot_cache.c +++ b/src/drivers/intel/fsp/fastboot_cache.c @@ -35,10 +35,12 @@ #error "CONFIG_VIRTUAL_ROM_SIZE must be set." #endif
+#if !defined(__PRE_RAM__) /* convert a pointer to flash area into the offset inside the flash */ static inline u32 to_flash_offset(void *p) { return ((u32)p + CONFIG_VIRTUAL_ROM_SIZE); } +#endif /* !defined(__PRE_RAM__) */
static struct mrc_data_container *next_mrc_block( struct mrc_data_container *mrc_cache) diff --git a/src/northbridge/intel/haswell/mrccache.c b/src/northbridge/intel/haswell/mrccache.c index 540bbf6..88e7854 100644 --- a/src/northbridge/intel/haswell/mrccache.c +++ b/src/northbridge/intel/haswell/mrccache.c @@ -33,10 +33,12 @@ #include <vendorcode/google/chromeos/fmap.h> #endif
+#if !defined(__PRE_RAM__) /* convert a pointer to flash area into the offset inside the flash */ static inline u32 to_flash_offset(struct spi_flash *flash, void *p) { return ((u32)p + flash->size); } +#endif /* !defined(__PRE_RAM__) */
static struct mrc_data_container *next_mrc_block( struct mrc_data_container *mrc_cache) diff --git a/src/northbridge/intel/sandybridge/mrccache.c b/src/northbridge/intel/sandybridge/mrccache.c index c84ff82..4472cd0 100644 --- a/src/northbridge/intel/sandybridge/mrccache.c +++ b/src/northbridge/intel/sandybridge/mrccache.c @@ -33,10 +33,12 @@ #include <vendorcode/google/chromeos/fmap.h> #endif
+#if !defined(__PRE_RAM__) /* convert a pointer to flash area into the offset inside the flash */ static inline u32 to_flash_offset(struct spi_flash *flash, void *p) { return ((u32)p + flash->size); } +#endif /* !defined(__PRE_RAM__) */
static struct mrc_data_container *next_mrc_block( struct mrc_data_container *mrc_cache)