diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2017-07-28 16:46:19 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-01 13:56:54 +1000 |
commit | 5c2ed41022baaac49be3620f375af85a4a852c2b (patch) | |
tree | 10222c88f5e3c082ad0678295fd0fce95acb239a /external/common | |
parent | d689cb96ac58681bcff087e31162ff92fefd411d (diff) | |
download | skiboot-5c2ed41022baaac49be3620f375af85a4a852c2b.zip skiboot-5c2ed41022baaac49be3620f375af85a4a852c2b.tar.gz skiboot-5c2ed41022baaac49be3620f375af85a4a852c2b.tar.bz2 |
Makefile.check: Fix `make check`
Recent reworks were tested on the travis-ci system. Unfortunately, there
are configurations of running `make check` which the travis-ci doesn't
do. On some systems extra problems crop up.
Removing the stack size check is only done for the host compiler as the
check is only critical for skiboot its self where stack space is
contained.
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/common')
-rw-r--r-- | external/common/arch_flash_powerpc.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/external/common/arch_flash_powerpc.c b/external/common/arch_flash_powerpc.c index 6f32a00..95402ee 100644 --- a/external/common/arch_flash_powerpc.c +++ b/external/common/arch_flash_powerpc.c @@ -208,14 +208,19 @@ static struct blocklevel_device *arch_init_blocklevel(const char *file, bool kee } /* Skiboot will worry about this for us */ -int arch_flash_set_wrprotect(struct blocklevel_device *bl, int set) +int __attribute__((const)) arch_flash_set_wrprotect(struct blocklevel_device *bl, int set) { + (void)bl; + (void)set; + return 0; } -enum flash_access arch_flash_access(struct blocklevel_device *bl, +enum flash_access __attribute__((const)) arch_flash_access(struct blocklevel_device *bl, enum flash_access access) { + (void)bl; + if (access != PNOR_MTD) return ACCESS_INVAL; @@ -243,5 +248,7 @@ int arch_flash_init(struct blocklevel_device **r_bl, const char *file, bool keep void arch_flash_close(struct blocklevel_device *bl, const char *file) { + (void)file; + file_exit_close(bl); } |