linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Su Yanjun <suyj.fnst@cn.fujitsu.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: fix compile warning when using gcc8 to compile btrfs-progs
Date: Wed, 24 Oct 2018 17:55:02 +0200	[thread overview]
Message-ID: <20181024155502.GY16290@twin.jikos.cz> (raw)
In-Reply-To: <20181012074153.3844-1-suyj.fnst@cn.fujitsu.com>

On Fri, Oct 12, 2018 at 03:41:53PM +0800, Su Yanjun wrote:
> When using gcc8 to compile btrfs-progs, it complains as below:
> 
> ctree.c: In function 'btrfs_search_slot_for_read':
>     ctree.c:1249:45: warning: passing argument 3 of 'btrfs_search_slot'
>     discards 'const' qualifier from pointer target type
>     [-Wdiscarded-qualifiers]
>              ret = btrfs_search_slot(NULL, root, key, p, 0, 0);
> 
> Change btrfs_search_slot prototype with 'const' qualifier for argument 3.
> Also fix similar problems as above change.
> 
> Signed-off-by: Su Yanjun <suyj.fnst@cn.fujitsu.com>

Applied with subject line changed, thanks.

  reply	other threads:[~2018-10-24 15:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-12  7:41 [PATCH] btrfs-progs: fix compile warning when using gcc8 to compile btrfs-progs Su Yanjun
2018-10-24 15:55 ` David Sterba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-10-12  1:36 Su Yanjun
2018-10-24 15:39 ` David Sterba

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=20181024155502.GY16290@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=suyj.fnst@cn.fujitsu.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;
as well as URLs for NNTP newsgroup(s).