mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Zhou Chengming <zhouchengming1@huawei.com>
Cc: kbuild-all@01.org, axboe@kernel.dk, linux-block@vger.kernel.org,
	linux-kernel@vger.kernel.org, miaoxie@huawei.com,
	zhouchengming1@huawei.com
Subject: Re: [PATCH v2] don't forget to call pd_online_fn when activate policy
Date: Fri, 10 Mar 2017 20:44:47 +0800	[thread overview]
Message-ID: <201703102009.UcgJzLfU%fengguang.wu@intel.com> (raw)
In-Reply-To: <1489026008-161611-1-git-send-email-zhouchengming1@huawei.com>

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

Hi Zhou,

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.11-rc1 next-20170309]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Zhou-Chengming/don-t-forget-to-call-pd_online_fn-when-activate-policy/20170310-140301
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: x86_64-rhel-7.2 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   block/blk-cgroup.c: In function 'blkcg_activate_policy':
>> block/blk-cgroup.c:1261:14: error: incompatible type for argument 1 of 'spin_lock'
       spin_lock(blkg->blkcg->lock);
                 ^~~~
   In file included from include/linux/rcupdate.h:38:0,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:4,
                    from include/linux/sched.h:13,
                    from include/linux/ioprio.h:4,
                    from block/blk-cgroup.c:17:
   include/linux/spinlock.h:297:29: note: expected 'spinlock_t * {aka struct spinlock *}' but argument is of type 'spinlock_t {aka struct spinlock}'
    static __always_inline void spin_lock(spinlock_t *lock)
                                ^~~~~~~~~
>> block/blk-cgroup.c:1263:16: error: incompatible type for argument 1 of 'spin_unlock'
       spin_unlock(blkg->blkcg->lock);
                   ^~~~
   In file included from include/linux/rcupdate.h:38:0,
                    from include/linux/rculist.h:10,
                    from include/linux/pid.h:4,
                    from include/linux/sched.h:13,
                    from include/linux/ioprio.h:4,
                    from block/blk-cgroup.c:17:
   include/linux/spinlock.h:337:29: note: expected 'spinlock_t * {aka struct spinlock *}' but argument is of type 'spinlock_t {aka struct spinlock}'
    static __always_inline void spin_unlock(spinlock_t *lock)
                                ^~~~~~~~~~~

vim +/spin_lock +1261 block/blk-cgroup.c

  1255			pd->blkg = blkg;
  1256			pd->plid = pol->plid;
  1257			if (pol->pd_init_fn)
  1258				pol->pd_init_fn(pd);
  1259	
  1260			if (pol->pd_online_fn) {
> 1261				spin_lock(blkg->blkcg->lock);
  1262				pol->pd_online_fn(pd);
> 1263				spin_unlock(blkg->blkcg->lock);
  1264			}
  1265		}
  1266	

---
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: 38803 bytes --]

  reply	other threads:[~2017-03-10 12:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09  2:20 Zhou Chengming
2017-03-10 12:44 ` kbuild test robot [this message]
2017-03-10 15:12 ` Jens Axboe
2017-03-11  3:46   ` zhouchengming
2017-03-11  3:59     ` Jens Axboe

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=201703102009.UcgJzLfU%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --cc=kbuild-all@01.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miaoxie@huawei.com \
    --cc=zhouchengming1@huawei.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

all inboxes | Powered by JetHome®