[coreboot-gerrit] New patch to review for coreboot: e5ff30a northbridge/intel: Avoid 'to_flash_offset()' unused func warn
Edward O'Callaghan (eocallaghan@alterapraxis.com)
gerrit at coreboot.org
Mon Jan 12 19:20:40 CET 2015
Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8198
-gerrit
commit e5ff30a36455027091cef93a92657dbc2a20625e
Author: Edward O'Callaghan <eocallaghan at 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 at alterapraxis.com>
---
src/northbridge/intel/haswell/mrccache.c | 2 ++
src/northbridge/intel/sandybridge/mrccache.c | 2 ++
2 files changed, 4 insertions(+)
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)
More information about the coreboot-gerrit
mailing list