diff options
author | Alexandru Gagniuc <alexandrux.gagniuc@intel.com> | 2016-03-04 14:38:19 -0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-05-04 20:07:26 +0200 |
commit | 1116fa86e3f4f1cf50773ba0959d9d4f7a5ebb92 (patch) | |
tree | 77cc030c475e3630263b418a0f373baf30b37d3f /src/drivers/intel | |
parent | 9c9bde3aa35922cf680c91f9260dd7905cc8cb6b (diff) | |
download | coreboot-1116fa86e3f4f1cf50773ba0959d9d4f7a5ebb92.tar.xz |
soc/intel/common/mrc_cache: Honor MRC data as a constant pointer
The MRC cache API has absolutely no reason to modify the data it is
asked to stash. Reflect that by taking all "data" parameters as
const void *.
Change-Id: I7a14ffd7d5726aa9aa5db81df82c06e7f87b9d9f
Signed-off-by: Alexandru Gagniuc <alexandrux.gagniuc@intel.com>
Reviewed-on: https://review.coreboot.org/14250
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Leroy P Leahy <leroy.p.leahy@intel.com>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r-- | src/drivers/intel/fsp1_1/romstage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/intel/fsp1_1/romstage.c b/src/drivers/intel/fsp1_1/romstage.c index 3d698bb363..c035f606f7 100644 --- a/src/drivers/intel/fsp1_1/romstage.c +++ b/src/drivers/intel/fsp1_1/romstage.c @@ -372,7 +372,7 @@ __attribute__((weak)) int mrc_cache_get_current( } /* Save the memory configuration data */ -__attribute__((weak)) int mrc_cache_stash_data(void *data, size_t size) +__attribute__((weak)) int mrc_cache_stash_data(const void *data, size_t size) { printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__); return -1; |