All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 2/2] support cgroup pool in v1
Date: Thu, 09 Sep 2021 00:52:37 +0800	[thread overview]
Message-ID: <202109090004.zc6bVnPP-lkp@intel.com> (raw)
In-Reply-To: <03e2b37678c9b2aef4f5dee303b3fb87a565d56b.1631102579.git.escape@linux.alibaba.com>

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

Hi Yi,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on linus/master next-20210908]
[cannot apply to cgroup/for-next kees/for-next/pstore v5.14]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Yi-Tao/support-cgroup-pool-in-v1/20210908-201642
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 4b93c544e90e2b28326182d31ee008eb80e02074
config: m68k-randconfig-r014-20210908 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/6fadbb12de926d6d4fd6d903304d5cbe52bbbc52
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Yi-Tao/support-cgroup-pool-in-v1/20210908-201642
        git checkout 6fadbb12de926d6d4fd6d903304d5cbe52bbbc52
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k 

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

All errors (new ones prefixed by >>):

   kernel/cgroup/cgroup.c: In function 'cgroup_mkdir':
>> kernel/cgroup/cgroup.c:5513:29: error: unused variable 'kn' [-Werror=unused-variable]
    5513 |         struct kernfs_node *kn;
         |                             ^~
   cc1: all warnings being treated as errors


vim +/kn +5513 kernel/cgroup/cgroup.c

  5509	
  5510	int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode)
  5511	{
  5512		struct cgroup *parent, *cgrp;
> 5513		struct kernfs_node *kn;
  5514		int ret = 1;
  5515		bool hide = false;
  5516	
  5517		/* do not accept '\n' to prevent making /proc/<pid>/cgroup unparsable */
  5518		if (strchr(name, '\n'))
  5519			return -EINVAL;
  5520	
  5521		/* 0xffff means cgroup is created for pool, set to default mode 0x1ed */
  5522		if (mode == 0xffff) {
  5523			hide = true;
  5524			mode = 0x1ed;
  5525		}
  5526	
  5527		if (!hide)
  5528			ret = cgroup_mkdir_fast_path(parent_kn, name);
  5529		if (ret <= 0)
  5530			return ret;
  5531	
  5532		parent = cgroup_kn_lock_live(parent_kn, false);
  5533		if (!parent)
  5534			return -ENODEV;
  5535	
  5536		if (!cgroup_check_hierarchy_limits(parent)) {
  5537			ret = -EAGAIN;
  5538			goto out_unlock;
  5539		}
  5540	
  5541		cgrp = cgroup_create(parent, name, mode);
  5542		if (IS_ERR(cgrp)) {
  5543			ret = PTR_ERR(cgrp);
  5544			goto out_unlock;
  5545		}
  5546	
  5547		/*
  5548		 * This extra ref will be put in cgroup_free_fn() and guarantees
  5549		 * that @cgrp->kn is always accessible.
  5550		 */
  5551		kernfs_get(cgrp->kn);
  5552	
  5553		ret = cgroup_kn_set_ugid(cgrp->kn);
  5554		if (ret)
  5555			goto out_destroy;
  5556	
  5557		ret = css_populate_dir(&cgrp->self);
  5558		if (ret)
  5559			goto out_destroy;
  5560	
  5561		ret = cgroup_apply_control_enable(cgrp);
  5562		if (ret)
  5563			goto out_destroy;
  5564	
  5565		TRACE_CGROUP_PATH(mkdir, cgrp);
  5566	
  5567		/* let's create and online css's */
  5568		kernfs_activate(cgrp->kn);
  5569	
  5570		if (hide)
  5571			cgroup_hide(parent, cgrp, name);
  5572	
  5573		ret = 0;
  5574		goto out_unlock;
  5575	
  5576	out_destroy:
  5577		cgroup_destroy_locked(cgrp);
  5578	out_unlock:
  5579		cgroup_kn_unlock(parent_kn);
  5580		return ret;
  5581	}
  5582	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

  parent reply	other threads:[~2021-09-08 16:52 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-08 12:15 [RFC PATCH 0/2] support cgroup pool in v1 Yi Tao
2021-09-08 12:15 ` Yi Tao
2021-09-08 12:15 ` [RFC PATCH 1/2] add pinned flags for kernfs node Yi Tao
2021-09-08 12:15   ` [RFC PATCH 2/2] support cgroup pool in v1 Yi Tao
2021-09-08 12:15     ` Yi Tao
2021-09-08 12:35     ` Greg KH
2021-09-08 12:35       ` Greg KH
     [not found]       ` <084930d2-057a-04a7-76d1-b2a7bd37deb0@linux.alibaba.com>
2021-09-09 13:27         ` Greg KH
2021-09-10  2:20           ` taoyi.ty
2021-09-10  2:15       ` taoyi.ty
2021-09-10  2:15         ` taoyi.ty
2021-09-10  6:01         ` Greg KH
2021-09-10  6:01           ` Greg KH
2021-09-08 15:30     ` kernel test robot
2021-09-08 16:52     ` kernel test robot [this message]
2021-09-08 17:39     ` kernel test robot
2021-09-08 17:39     ` [RFC PATCH] cgroup_pool_mutex can be static kernel test robot
2021-09-08 12:35   ` [RFC PATCH 1/2] add pinned flags for kernfs node Greg KH
2021-09-08 12:35     ` Greg KH
2021-09-10  2:14     ` taoyi.ty
2021-09-10  6:00       ` Greg KH
2021-09-10  6:00         ` Greg KH
2021-09-08 16:26   ` kernel test robot
2021-09-08 12:37 ` [RFC PATCH 0/2] support cgroup pool in v1 Greg KH
2021-09-10  2:11   ` taoyi.ty
2021-09-10  6:01     ` Greg KH
2021-09-10  6:01       ` Greg KH
2021-09-10 16:49     ` Tejun Heo
2021-09-10 16:49       ` Tejun Heo
2021-09-13 14:20       ` Christian Brauner
2021-09-13 14:20         ` Christian Brauner
2021-09-13 16:24         ` Tejun Heo
2021-09-13 16:24           ` Tejun Heo
2021-09-08 16:35 ` Tejun Heo
2021-09-10  2:12   ` taoyi.ty

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=202109090004.zc6bVnPP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.