x86: Don't export mrccache_update()
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:09 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:14 +0000 (11:44 +0800)
This function is only used within the implementation so make it static.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/mrccache.h
arch/x86/lib/mrccache.c

index 0917cf2470419503e04a506773472f57d90d1640..d6b75290739d25c16334eb71934d147c2d8d5fe1 100644 (file)
@@ -48,21 +48,6 @@ struct udevice;
  */
 struct mrc_data_container *mrccache_find_current(struct mrc_region *entry);
 
-/**
- * mrccache_update() - update the MRC cache with a new record
- *
- * This writes a new record to the end of the MRC cache region. If the new
- * record is the same as the latest record then the write is skipped
- *
- * @sf:                SPI flash to write to
- * @entry:     Position and size of MRC cache in SPI flash
- * @cur:       Record to write
- * @return 0 if updated, -EEXIST if the record is the same as the latest
- * record, -EINVAL if the record is not valid, other error if SPI write failed
- */
-int mrccache_update(struct udevice *sf, struct mrc_region *entry,
-                   struct mrc_data_container *cur);
-
 /**
  * mrccache_reserve() - reserve MRC data on the stack
  *
index 10949d249e529b5e8c2d715a4c4ea5c1713e2ea5..b9420a4cab5201efffb66832c140f03ccc82bdcb 100644 (file)
@@ -118,8 +118,20 @@ static struct mrc_data_container *find_next_mrc_cache(struct mrc_region *entry,
        return cache;
 }
 
-int mrccache_update(struct udevice *sf, struct mrc_region *entry,
-                   struct mrc_data_container *cur)
+/**
+ * mrccache_update() - update the MRC cache with a new record
+ *
+ * This writes a new record to the end of the MRC cache region. If the new
+ * record is the same as the latest record then the write is skipped
+ *
+ * @sf:                SPI flash to write to
+ * @entry:     Position and size of MRC cache in SPI flash
+ * @cur:       Record to write
+ * @return 0 if updated, -EEXIST if the record is the same as the latest
+ * record, -EINVAL if the record is not valid, other error if SPI write failed
+ */
+static int mrccache_update(struct udevice *sf, struct mrc_region *entry,
+                          struct mrc_data_container *cur)
 {
        struct mrc_data_container *cache;
        ulong offset;