archfan / coreboot

Coreboot for Lenovo Thinkpad T440P with additional patches
GNU General Public License v2.0
14 stars 2 forks source link

Build error: conflicting types for 'smmstore_read_region' #4

Closed archfan closed 4 years ago

archfan commented 4 years ago
    CC         ramstage/drivers/smmstore/store.o
src/drivers/smmstore/store.c:114:5: error: conflicting types for 'smmstore_read_region'
 int smmstore_read_region(void *buf, ssize_t *bufsize)
     ^~~~~~~~~~~~~~~~~~~~
In file included from src/drivers/smmstore/store.c:20:
src/include/smmstore.h:46:5: note: previous declaration of 'smmstore_read_region' was here
 int smmstore_read_region(void *buf, uint32_t *bufsize);
     ^~~~~~~~~~~~~~~~~~~~
cc1: error: unrecognized command line option '-Wno-address-of-packed-member' [-Werror]
cc1: all warnings being treated as errors
make: *** [Makefile:365: build/ramstage/drivers/smmstore/store.o] Error 1
archfan commented 4 years ago

Solved. I forgot to resolve a conflict there.

https://github.com/archfan/coreboot/commit/4fc5cc85afc9c64dc064609c83491f29386517e6