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@xxxxxxxxxxxxxx> Applied with subject line changed, thanks.
