All of lore.kernel.org
 help / color / mirror / Atom feed
From: arvind <arvind.yadav.cs@gmail.com>
To: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, nico@linaro.org, mark.rutland@arm.com,
	mingo@kernel.org, lorenzo.pieralisi@arm.com,
	suzuki.poulose@arm.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bus: arm-cci: constify attribute_group structures.
Date: Sun, 16 Jul 2017 16:02:57 +0530	[thread overview]
Message-ID: <596B40D9.2040508@gmail.com> (raw)
In-Reply-To: <201707161716.gZjXDYHw%fengguang.wu@intel.com>

Hi,
As per discussion. please drop this patch. I will push anther update patch.

~arvind

On Sunday 16 July 2017 02:59 PM, kbuild test robot wrote:
> Hi Arvind,
>
> [auto build test ERROR on linus/master]
> [also build test ERROR on v4.13-rc1 next-20170714]
> [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/Arvind-Yadav/bus-arm-cci-constify-attribute_group-structures/20170704-185609
> config: arm64-allyesconfig (attached as .config)
> compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>          wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>          chmod +x ~/bin/make.cross
>          # save the attached .config to linux build tree
>          make.cross ARCH=arm64
>
> All errors (new ones prefixed by >>):
>
>     drivers//bus/arm-cci.c: In function 'cci_pmu_init':
>>> drivers//bus/arm-cci.c:1475:29: error: assignment of member 'attrs' in read-only object
>       pmu_event_attr_group.attrs = model->event_attrs;
>                                  ^
>     drivers//bus/arm-cci.c:1476:30: error: assignment of member 'attrs' in read-only object
>       pmu_format_attr_group.attrs = model->format_attrs;
>                                   ^
>
> vim +/attrs +1475 drivers//bus/arm-cci.c
>
> c6f85cb4 Mark Rutland      2014-06-30  1468
> c6f85cb4 Mark Rutland      2014-06-30  1469  static int cci_pmu_init(struct cci_pmu *cci_pmu, struct platform_device *pdev)
> c6f85cb4 Mark Rutland      2014-06-30  1470  {
> 5e442eba Mark Rutland      2016-02-23  1471  	const struct cci_pmu_model *model = cci_pmu->model;
> 5e442eba Mark Rutland      2016-02-23  1472  	char *name = model->name;
> ab5b316d Suzuki K. Poulose 2015-05-26  1473  	u32 num_cntrs;
> e14cfad3 Suzuki K. Poulose 2015-05-26  1474
> 5e442eba Mark Rutland      2016-02-23 @1475  	pmu_event_attr_group.attrs = model->event_attrs;
> 5e442eba Mark Rutland      2016-02-23  1476  	pmu_format_attr_group.attrs = model->format_attrs;
> a1a076d7 Suzuki K. Poulose 2015-05-26  1477
> c6f85cb4 Mark Rutland      2014-06-30  1478  	cci_pmu->pmu = (struct pmu) {
> fc17c839 Suzuki K. Poulose 2015-03-18  1479  		.name		= cci_pmu->model->name,
> c6f85cb4 Mark Rutland      2014-06-30  1480  		.task_ctx_nr	= perf_invalid_context,
> c6f85cb4 Mark Rutland      2014-06-30  1481  		.pmu_enable	= cci_pmu_enable,
> c6f85cb4 Mark Rutland      2014-06-30  1482  		.pmu_disable	= cci_pmu_disable,
> c6f85cb4 Mark Rutland      2014-06-30  1483  		.event_init	= cci_pmu_event_init,
> c6f85cb4 Mark Rutland      2014-06-30  1484  		.add		= cci_pmu_add,
> c6f85cb4 Mark Rutland      2014-06-30  1485  		.del		= cci_pmu_del,
> c6f85cb4 Mark Rutland      2014-06-30  1486  		.start		= cci_pmu_start,
> c6f85cb4 Mark Rutland      2014-06-30  1487  		.stop		= cci_pmu_stop,
> c6f85cb4 Mark Rutland      2014-06-30  1488  		.read		= pmu_read,
> c6f85cb4 Mark Rutland      2014-06-30  1489  		.attr_groups	= pmu_attr_groups,
> b91c8f28 Punit Agrawal     2013-08-22  1490  	};
> b91c8f28 Punit Agrawal     2013-08-22  1491
> b91c8f28 Punit Agrawal     2013-08-22  1492  	cci_pmu->plat_device = pdev;
> ab5b316d Suzuki K. Poulose 2015-05-26  1493  	num_cntrs = pmu_get_max_counters();
> ab5b316d Suzuki K. Poulose 2015-05-26  1494  	if (num_cntrs > cci_pmu->model->num_hw_cntrs) {
> ab5b316d Suzuki K. Poulose 2015-05-26  1495  		dev_warn(&pdev->dev,
> ab5b316d Suzuki K. Poulose 2015-05-26  1496  			"PMU implements more counters(%d) than supported by"
> ab5b316d Suzuki K. Poulose 2015-05-26  1497  			" the model(%d), truncated.",
> ab5b316d Suzuki K. Poulose 2015-05-26  1498  			num_cntrs, cci_pmu->model->num_hw_cntrs);
> ab5b316d Suzuki K. Poulose 2015-05-26  1499  		num_cntrs = cci_pmu->model->num_hw_cntrs;
> ab5b316d Suzuki K. Poulose 2015-05-26  1500  	}
> ab5b316d Suzuki K. Poulose 2015-05-26  1501  	cci_pmu->num_cntrs = num_cntrs + cci_pmu->model->fixed_hw_cntrs;
> b91c8f28 Punit Agrawal     2013-08-22  1502
> c6f85cb4 Mark Rutland      2014-06-30  1503  	return perf_pmu_register(&cci_pmu->pmu, name, -1);
> c6f85cb4 Mark Rutland      2014-06-30  1504  }
> c6f85cb4 Mark Rutland      2014-06-30  1505
>
> :::::: The code at line 1475 was first introduced by commit
> :::::: 5e442eba342e567e2b3f1a39a24f81559f8370f7 arm-cci: simplify sysfs attr handling
>
> :::::: TO: Mark Rutland <mark.rutland@arm.com>
> :::::: CC: Will Deacon <will.deacon@arm.com>
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

      reply	other threads:[~2017-07-16 10:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03  7:46 [PATCH] bus: arm-cci: constify attribute_group structures Arvind Yadav
2017-07-04 11:35 ` Mark Rutland
2017-07-05 16:03 ` Suzuki K Poulose
2017-07-06  4:53   ` Arvind Yadav
2017-07-06  8:41     ` Suzuki K Poulose
2017-07-16  9:29 ` kbuild test robot
2017-07-16 10:32   ` arvind [this message]

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=596B40D9.2040508@gmail.com \
    --to=arvind.yadav.cs@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=mark.rutland@arm.com \
    --cc=mingo@kernel.org \
    --cc=nico@linaro.org \
    --cc=suzuki.poulose@arm.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 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.