public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Chen, Hu" <hu1.chen@intel.com>
Cc: kbuild-all@lists.01.org, avagin@openvz.org, hu1.chen@intel.com,
	Alexander Viro <viro@zeniv.linux.org.uk>,
	Alexey Dobriyan <adobriyan@gmail.com>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] proc: align mnt_id in /proc/pid/fdinfo and /proc/pid/mountinfo
Date: Fri, 22 Nov 2019 11:51:38 +0800	[thread overview]
Message-ID: <201911221116.HjFCwKbG%lkp@intel.com> (raw)
In-Reply-To: <20191121070613.4286-1-hu1.chen@intel.com>

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

Hi Hu",

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.4-rc8 next-20191121]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Chen-Hu/proc-align-mnt_id-in-proc-pid-fdinfo-and-proc-pid-mountinfo/20191122-093927
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 81429eb8d9ca40b0c65bb739d29fa856c5d5e958
config: parisc-c3000_defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   fs/namespace.c: In function 'lookup_mirror_mnt':
>> fs/namespace.c:698:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      return mnt;
             ^~~

vim +/const +698 fs/namespace.c

   685	
   686	/*
   687	 * lookup_mirror_mnt - Return @mnt's mirror mount in the current/local mount
   688	 * namespace. If mirror isn't found, just return NULL.
   689	 */
   690	struct mount *lookup_mirror_mnt(const struct mount *mnt)
   691	{
   692		struct mnt_namespace *ns = current->nsproxy->mnt_ns;
   693		struct mount *mnt_local;
   694		bool is_matched = false;
   695	
   696		/* mnt belongs to current namesapce */
   697		if (mnt->mnt_ns == ns)
 > 698			return mnt;
   699	
   700		down_read(&namespace_sem);
   701		list_for_each_entry(mnt_local, &ns->list, mnt_list) {
   702			struct super_block *sb = mnt->mnt.mnt_sb;
   703			struct super_block *sb_local = mnt_local->mnt.mnt_sb;
   704	
   705			if (MAJOR(sb->s_dev) == MAJOR(sb_local->s_dev) &&
   706			    MINOR(sb->s_dev) == MINOR(sb_local->s_dev)) {
   707				is_matched = true;
   708				break;
   709			}
   710		}
   711		up_read(&namespace_sem);
   712	
   713		return is_matched ? mnt_local : NULL;
   714	}
   715	

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

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

  parent reply	other threads:[~2019-11-22  3:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-21  7:06 [PATCH] proc: align mnt_id in /proc/pid/fdinfo and /proc/pid/mountinfo Chen, Hu
2019-11-21 10:03 ` Miklos Szeredi
2019-11-22  3:51 ` kbuild test robot [this message]
2019-11-25  2:26   ` [PATCH v2] " Chen, Hu

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=201911221116.HjFCwKbG%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=adobriyan@gmail.com \
    --cc=avagin@openvz.org \
    --cc=hu1.chen@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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