diff options
author | NeilBrown <neilb@suse.de> | 2010-08-05 05:13:02 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-05 05:13:02 +0200 |
commit | f21e18ca8969f21549c646096f354eac57cd53a8 (patch) | |
tree | 5e0b0474075ba8f629860964914fe18a6892ccd4 /probe_roms.c | |
parent | Detail: clean up handing of the 'info' we load from superblock. (diff) | |
download | mdadm-f21e18ca8969f21549c646096f354eac57cd53a8.tar.xz mdadm-f21e18ca8969f21549c646096f354eac57cd53a8.zip |
Compile with -Wextra by default
This produced lots of warning, some of which pointed to actual bugs.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'probe_roms.c')
-rw-r--r-- | probe_roms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/probe_roms.c b/probe_roms.c index 0f0ffbcc..a8e3a589 100644 --- a/probe_roms.c +++ b/probe_roms.c @@ -30,7 +30,7 @@ static void *rom_mem = MAP_FAILED; static int rom_fd = -1; -const static int rom_len = 0xf0000 - 0xc0000; /* option-rom memory region */ +static const int rom_len = 0xf0000 - 0xc0000; /* option-rom memory region */ static int _sigbus; static unsigned long rom_align; @@ -199,7 +199,7 @@ static int romchecksum(const unsigned char *rom, unsigned long length) int scan_adapter_roms(scan_fn fn) { /* let scan_fn examing each of the adapter roms found by probe_roms */ - int i; + unsigned int i; int found; if (rom_fd < 0) @@ -231,7 +231,7 @@ void probe_roms(void) const void *rom; unsigned long start, length, upper; unsigned char c; - int i; + unsigned int i; if (rom_fd < 0) return; |