From: Sascha Hauer <sha@pengutronix.de>
To: jameszxj <jameszxj@gmail.com>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: [PATCH] extend the test in bbu_std_file_handler() to also check for -ENOTSUP.
Date: Wed, 24 Feb 2021 09:49:31 +0100 [thread overview]
Message-ID: <20210224084931.GH5549@pengutronix.de> (raw)
In-Reply-To: <tencent_E28F8E77C0112E2550D5C300E9436E3CC309@qq.com>
On Tue, Feb 23, 2021 at 05:31:22PM +0800, jameszxj wrote:
> extend the test in bbu_std_file_handler() to also check for -ENOTSUP.
>
> Signed-off-by: zhengxiaojun <jameszxj at gmail.com>
> ---
> common/bbu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
>
> diff --git a/common/bbu.c b/common/bbu.c
> index 1279d56..ee9f78e 100644
> --- a/common/bbu.c
> +++ b/common/bbu.c
> @@ -313,7 +313,7 @@ static int bbu_std_file_handler(struct bbu_handler *handler,
> return fd;
>
> ret = protect(fd, data->len, 0, 0);
> - if (ret && ret != -ENOSYS) {
> + if (ret && (ret != -ENOSYS) && (ret != -ENOTSUPP)) {
> printf("unprotecting %s failed with %s\n", data->devicefile,
> strerror(-ret));
> goto err_close;
> --
> 2.7.4
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2021-02-24 8:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 9:31 jameszxj
2021-02-24 8:49 ` Sascha Hauer [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=20210224084931.GH5549@pengutronix.de \
--to=sha@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jameszxj@gmail.com \
/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