mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
Fix several -Wold-style-declaration warnings
Change-Id: Iffe5e652779a13ee7f64696fb5df4a781fe9a632 Signed-off-by: Richard Hughes <richard@hughsie.com> Reviewed-on: https://review.coreboot.org/c/30404 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
d82be7b2be
commit
93e1625f9f
@ -2585,7 +2585,7 @@ static const struct board_match *board_match_name(const char *vendor, const char
|
|||||||
* Match boards on PCI IDs and subsystem IDs.
|
* Match boards on PCI IDs and subsystem IDs.
|
||||||
* Second set of IDs can be either main+subsystem IDs, main IDs or no IDs.
|
* Second set of IDs can be either main+subsystem IDs, main IDs or no IDs.
|
||||||
*/
|
*/
|
||||||
const static struct board_match *board_match_pci_ids(enum board_match_phase phase)
|
static const struct board_match *board_match_pci_ids(enum board_match_phase phase)
|
||||||
{
|
{
|
||||||
const struct board_match *board = board_matches;
|
const struct board_match *board = board_matches;
|
||||||
|
|
||||||
|
@ -455,10 +455,10 @@ const struct programmer_entry programmer_table[] = {
|
|||||||
#define SHUTDOWN_MAXFN 32
|
#define SHUTDOWN_MAXFN 32
|
||||||
static int shutdown_fn_count = 0;
|
static int shutdown_fn_count = 0;
|
||||||
/** @private */
|
/** @private */
|
||||||
struct shutdown_func_data {
|
static struct shutdown_func_data {
|
||||||
int (*func) (void *data);
|
int (*func) (void *data);
|
||||||
void *data;
|
void *data;
|
||||||
} static shutdown_fn[SHUTDOWN_MAXFN];
|
} shutdown_fn[SHUTDOWN_MAXFN];
|
||||||
/* Initialize to 0 to make sure nobody registers a shutdown function before
|
/* Initialize to 0 to make sure nobody registers a shutdown function before
|
||||||
* programmer init.
|
* programmer init.
|
||||||
*/
|
*/
|
||||||
|
2
ichspi.c
2
ichspi.c
@ -676,7 +676,7 @@ static int program_opcodes(OPCODES *op, int enable_undo)
|
|||||||
* - at least one program opcode (BYTE_PROGRAM, AAI_WORD_PROGRAM, ...?)
|
* - at least one program opcode (BYTE_PROGRAM, AAI_WORD_PROGRAM, ...?)
|
||||||
* - necessary preops? (EWSR, WREN, ...?)
|
* - necessary preops? (EWSR, WREN, ...?)
|
||||||
*/
|
*/
|
||||||
static int ich_missing_opcodes()
|
static int ich_missing_opcodes(void)
|
||||||
{
|
{
|
||||||
uint8_t ops[] = {
|
uint8_t ops[] = {
|
||||||
JEDEC_READ,
|
JEDEC_READ,
|
||||||
|
@ -218,7 +218,7 @@ static int nicintel_spi_82599_enable_flash(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nicintel_spi_i210_enable_flash()
|
static int nicintel_spi_i210_enable_flash(void)
|
||||||
{
|
{
|
||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user