From: Pawel Baldysiak <pawel.baldysiak@intel.com>
To: Thomas Backlund <tmb@mageia.org>,
Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: mdadm git 32bit build errors
Date: Tue, 3 Jan 2017 15:24:54 +0100 [thread overview]
Message-ID: <62a5db74-939b-d845-dfa7-d3bd51d8ed9c@intel.com> (raw)
In-Reply-To: <77032f07-d246-ade3-a133-10ccfa43c1ad@mageia.org>
Hi,
Thanks for reporting this issue.
I've just made a patch for that and sent it here.
Thanks
Pawel Baldysiak
On 01/02/2017 05:35 PM, Thomas Backlund wrote:
>
> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2017-01-03 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-02 16:35 mdadm git 32bit build errors Thomas Backlund
2017-01-03 14:24 ` Pawel Baldysiak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62a5db74-939b-d845-dfa7-d3bd51d8ed9c@intel.com \
--to=pawel.baldysiak@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=tmb@mageia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox