diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/cbmem_stage_cache.c | 2 | ||||
-rw-r--r-- | src/lib/ext_stage_cache.c | 2 | ||||
-rw-r--r-- | src/lib/prog_loaders.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/cbmem_stage_cache.c b/src/lib/cbmem_stage_cache.c index 4a114438bb..eb5e2b3247 100644 --- a/src/lib/cbmem_stage_cache.c +++ b/src/lib/cbmem_stage_cache.c @@ -23,7 +23,7 @@ #include <string.h> /* Stage cache uses cbmem. */ -void stage_cache_add(int stage_id, struct prog *stage) +void stage_cache_add(int stage_id, const struct prog *stage) { struct stage_cache *meta; void *c; diff --git a/src/lib/ext_stage_cache.c b/src/lib/ext_stage_cache.c index 4e588f1c01..bbadb70dd4 100644 --- a/src/lib/ext_stage_cache.c +++ b/src/lib/ext_stage_cache.c @@ -62,7 +62,7 @@ static void stage_cache_recover(void) printk(BIOS_DEBUG, "Unable to recover external stage cache.\n"); } -void stage_cache_add(int stage_id, struct prog *stage) +void stage_cache_add(int stage_id, const struct prog *stage) { struct imd *imd; const struct imd_entry *e; diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c index 7c00abad71..2f4a2c118a 100644 --- a/src/lib/prog_loaders.c +++ b/src/lib/prog_loaders.c @@ -60,7 +60,8 @@ fail: halt(); } -void __attribute__((weak)) stage_cache_add(int stage_id, struct prog *stage) {} +void __attribute__((weak)) stage_cache_add(int stage_id, + const struct prog *stage) {} void __attribute__((weak)) stage_cache_load_stage(int stage_id, struct prog *stage) {} void __attribute__((weak)) ramstage_cache_invalid(void) {} |