From: Jes.Sorensen@redhat.com
To: shli@kernel.org
Cc: linux-raid@vger.kernel.org
Subject: [PATCH 1/1] md/raid5: Use correct IS_ERR() variation on pointer check
Date: Fri, 6 Jan 2017 19:31:35 -0500 [thread overview]
Message-ID: <20170107003135.8276-2-Jes.Sorensen@redhat.com> (raw)
In-Reply-To: <20170107003135.8276-1-Jes.Sorensen@redhat.com>
From: Jes Sorensen <Jes.Sorensen@redhat.com>
This fixes a build error on certain architectures, such as ppc64.
Fixes: 6995f0b247e("md: takeover should clear unrelated bits")
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
drivers/md/raid5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 06d7279..0e0646b 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -7829,7 +7829,7 @@ static void *raid5_takeover_raid1(struct mddev *mddev)
mddev->new_chunk_sectors = chunksect;
ret = setup_conf(mddev);
- if (!IS_ERR_VALUE(ret))
+ if (!IS_ERR(ret))
clear_bit(MD_FAILFAST_SUPPORTED, &mddev->flags);
return ret;
}
--
2.9.3
next prev parent reply other threads:[~2017-01-07 0:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-07 0:31 [PATCH 0/1] md/raid5 - fix build error Jes.Sorensen
2017-01-07 0:31 ` Jes.Sorensen [this message]
2017-01-09 21:34 ` [PATCH 1/1] md/raid5: Use correct IS_ERR() variation on pointer check Shaohua Li
2017-01-09 21:38 ` Jes Sorensen
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=20170107003135.8276-2-Jes.Sorensen@redhat.com \
--to=jes.sorensen@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=shli@kernel.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;
as well as URLs for NNTP newsgroup(s).