linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Ian Kent <ikent@redhat.com>
Cc: kbuild-all@01.org, linux-fsdevel@vger.kernel.org,
	Al Viro <viro@zeniv.linux.org.uk>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [vfs:work.autofs 5/10] fs/autofs4/root.c:450:30: warning: passing argument 1 of 'autofs4_mount_wait' discards 'const' qualifier from pointer target type
Date: Sat, 3 Dec 2016 14:52:31 +0800	[thread overview]
Message-ID: <201612031428.XEt048Yo%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2126 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.autofs
head:   b46d9614d65cd18d38922b60540aeec725bf2514
commit: d31d633e717a1458d5f76e713cc1c6b10a5b249f [5/10] autofs: change autofs4_wait() to take struct path
config: mips-jz4740 (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d31d633e717a1458d5f76e713cc1c6b10a5b249f
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All warnings (new ones prefixed by >>):

   fs/autofs4/root.c: In function 'autofs4_d_manage':
>> fs/autofs4/root.c:450:30: warning: passing argument 1 of 'autofs4_mount_wait' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     status = autofs4_mount_wait(path, rcu_walk);
                                 ^~~~
   fs/autofs4/root.c:272:12: note: expected 'struct path *' but argument is of type 'const struct path *'
    static int autofs4_mount_wait(struct path *path, bool rcu_walk)
               ^~~~~~~~~~~~~~~~~~

vim +450 fs/autofs4/root.c

   434	
   435		/* The daemon never waits. */
   436		if (autofs4_oz_mode(sbi)) {
   437			if (!d_mountpoint(dentry))
   438				return -EISDIR;
   439			return 0;
   440		}
   441	
   442		/* Wait for pending expires */
   443		if (do_expire_wait(path, rcu_walk) == -ECHILD)
   444			return -ECHILD;
   445	
   446		/*
   447		 * This dentry may be under construction so wait on mount
   448		 * completion.
   449		 */
 > 450		status = autofs4_mount_wait(path, rcu_walk);
   451		if (status)
   452			return status;
   453	
   454		if (rcu_walk) {
   455			/* We don't need fs_lock in rcu_walk mode,
   456			 * just testing 'AUTOFS_INFO_NO_RCU' is enough.
   457			 * simple_empty() takes a spinlock, so leave it
   458			 * to last.

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 19118 bytes --]

                 reply	other threads:[~2016-12-03  6:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201612031428.XEt048Yo%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=ikent@redhat.com \
    --cc=kbuild-all@01.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=viro@zeniv.linux.org.uk \
    /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