Re: [PATCH] md: fix 32-bit build warning

2015-10-14 Thread Neil Brown
Arnd Bergmann writes: > On Monday 12 October 2015 15:59:27 Neil Brown wrote: >> > diff --git a/drivers/md/md.c b/drivers/md/md.c >> > index 7fff1e6884d6..e13f72a3b561 100644 >> > --- a/drivers/md/md.c >> > +++ b/drivers/md/md.c >> > @@ -8987,9 +8987,9 @@ static void check_sb_changes(struct mddev

Re: [PATCH] md: fix 32-bit build warning

2015-10-12 Thread Arnd Bergmann
On Monday 12 October 2015 15:59:27 Neil Brown wrote: > > diff --git a/drivers/md/md.c b/drivers/md/md.c > > index 7fff1e6884d6..e13f72a3b561 100644 > > --- a/drivers/md/md.c > > +++ b/drivers/md/md.c > > @@ -8987,9 +8987,9 @@ static void check_sb_changes(struct mddev *mddev, > > struct md_rdev *rd

Re: [PATCH] md: fix 32-bit build warning

2015-10-11 Thread Neil Brown
Arnd Bergmann writes: > On 32-bit architectures, the md code produces this warning when CONFIG_LDAF > is set: > > drivers/md/md.c: In function 'check_sb_changes': > drivers/md/md.c:8990:10: warning: format '%lu' expects argument of type 'long > unsigned int', but argument 4 has type 'sector_t {a

[PATCH] md: fix 32-bit build warning

2015-10-09 Thread Arnd Bergmann
On 32-bit architectures, the md code produces this warning when CONFIG_LDAF is set: drivers/md/md.c: In function 'check_sb_changes': drivers/md/md.c:8990:10: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'sector_t {aka long long unsigned int}' [-Wfor