Linux RAID subsystem development
 help / color / mirror / Atom feed
* mdadm git 32bit build errors
@ 2017-01-02 16:35 Thomas Backlund
  2017-01-03 14:24 ` Pawel Baldysiak
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Backlund @ 2017-01-02 16:35 UTC (permalink / raw)
  To: Linux-RAID


Trying to build current mdadm git fails on 32bit with:



super-intel.c: In function 'copy_metadata_imsm':
super-intel.c:1948:35: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
   if (read(from, buf, sector_size) != sector_size)
                                    ^
super-intel.c: In function 'read_imsm_migr_rec':
super-intel.c:2820:40: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
       MIGR_REC_BUF_SECTORS*sector_size) !=
                                         ^
super-intel.c: In function 'write_imsm_migr_rec':
super-intel.c:3022:41: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
        MIGR_REC_BUF_SECTORS*sector_size) !=
                                          ^
super-intel.c: In function 'load_imsm_mpb':
super-intel.c:4125:36: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
   if (read(fd, anchor, sector_size) != sector_size) {
                                     ^
super-intel.c: In function 'add_to_super_imsm':
super-intel.c:5641:48: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
        MIGR_REC_BUF_SECTORS*super->sector_size) !=
                                                 ^
super-intel.c: In function 'write_super_imsm':
super-intel.c:5851:43: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
          MIGR_REC_BUF_SECTORS*sector_size) !=
                                            ^
super-intel.c: In function 'store_imsm_mpb':
super-intel.c:8093:34: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
   if (write(fd, buf, sector_size) != sector_size)
                                   ^
super-intel.c: In function 'imsm_manage_reshape':
super-intel.c:11505:42: error: comparison between signed and unsigned 
integer expressions [-Werror=sign-compare]
         MIGR_REC_BUF_SECTORS*sector_size) !=
                                           ^
cc1: all warnings being treated as errors


Seems to be introduced by:
https://git.kernel.org/cgit/utils/mdadm/mdadm.git/commit/super-intel.c?id=de44e46fd4703ea286987d1d0cf775efa62700fd


64bit build is ok.

gcc is 5.4.0

--
Thomas


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-03 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-02 16:35 mdadm git 32bit build errors Thomas Backlund
2017-01-03 14:24 ` Pawel Baldysiak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox