From: kernel test robot <lkp@intel.com>
To: Bharat Bhushan <bbhushan2@marvell.com>,
will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org,
bbudiredla@marvell.com, sgoutham@marvell.com,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Bharat Bhushan <bbhushan2@marvell.com>
Subject: Re: [PATCH v5 2/4] perf/marvell: CN10k DDR performance monitor support
Date: Mon, 25 Oct 2021 13:20:32 +0800 [thread overview]
Message-ID: <202110251317.vHs13Aus-lkp@intel.com> (raw)
In-Reply-To: <20211018042015.25151-3-bbhushan2@marvell.com>
[-- Attachment #1: Type: text/plain, Size: 7481 bytes --]
Hi Bharat,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.15-rc6 next-20211022]
[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/Bharat-Bhushan/cn10k-DDR-Performance-monitor-support/20211018-122220
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: hexagon-randconfig-r045-20211025 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a461fa64bb37cffd73f683c74f6b0780379fc2ca)
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/c165c120469cac5c73b7a7e9d027c284eb09c6d1
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bharat-Bhushan/cn10k-DDR-Performance-monitor-support/20211018-122220
git checkout c165c120469cac5c73b7a7e9d027c284eb09c6d1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/perf/marvell_cn10k_ddr_pmu.c:352:9: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
val = readq_relaxed(pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:359:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:359:3: note: did you mean 'readq_relaxed'?
drivers/perf/marvell_cn10k_ddr_pmu.c:352:9: note: 'readq_relaxed' declared here
val = readq_relaxed(pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:361:9: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
val = readq_relaxed(pmu->base + DDRC_PERF_CNT_FREERUN_EN);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:373:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + DDRC_PERF_CNT_FREERUN_EN);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:382:10: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
return readq_relaxed(pmu->base + DDRC_PERF_CNT_VALUE_RD_OP);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:443:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + reg_offset);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:451:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + DDRC_PERF_CNT_FREERUN_CTRL);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:493:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(START_OP_CTRL_VAL_START, ddr_pmu->base +
^
drivers/perf/marvell_cn10k_ddr_pmu.c:501:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(END_OP_CTRL_VAL_END, ddr_pmu->base +
^
drivers/perf/marvell_cn10k_ddr_pmu.c:527:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(OP_MODE_CTRL_VAL_MANNUAL, ddr_pmu->base +
^
>> drivers/perf/marvell_cn10k_ddr_pmu.c:549:10: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
res->start);
^~~~~~~~~~
drivers/perf/marvell_cn10k_ddr_pmu.c:557:50: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
pr_info("CN10K DDR PMU Driver for ddrc@%llx\n", res->start);
~~~~ ^~~~~~~~~~
%x
include/linux/printk.h:519:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:446:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:418:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
2 warnings and 10 errors generated.
vim +549 drivers/perf/marvell_cn10k_ddr_pmu.c
504
505 static int cn10k_ddr_perf_probe(struct platform_device *pdev)
506 {
507 struct cn10k_ddr_pmu *ddr_pmu;
508 struct resource *res;
509 void __iomem *base;
510 char *name;
511 int ret;
512
513 ddr_pmu = devm_kzalloc(&pdev->dev, sizeof(*ddr_pmu), GFP_KERNEL);
514 if (!ddr_pmu)
515 return -ENOMEM;
516
517 ddr_pmu->dev = &pdev->dev;
518 platform_set_drvdata(pdev, ddr_pmu);
519
520 base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
521 if (IS_ERR(base))
522 return PTR_ERR(base);
523
524 ddr_pmu->base = base;
525
526 /* Setup the PMU counter to work in manual mode */
527 writeq_relaxed(OP_MODE_CTRL_VAL_MANNUAL, ddr_pmu->base +
528 DDRC_PERF_CNT_OP_MODE_CTRL);
529
530 ddr_pmu->pmu = (struct pmu) {
531 .module = THIS_MODULE,
532 .capabilities = PERF_PMU_CAP_NO_EXCLUDE,
533 .task_ctx_nr = perf_invalid_context,
534 .attr_groups = cn10k_attr_groups,
535 .event_init = cn10k_ddr_perf_event_init,
536 .add = cn10k_ddr_perf_event_add,
537 .del = cn10k_ddr_perf_event_del,
538 .start = cn10k_ddr_perf_event_start,
539 .stop = cn10k_ddr_perf_event_stop,
540 .read = cn10k_ddr_perf_event_update,
541 .pmu_enable = cn10k_ddr_perf_pmu_enable,
542 .pmu_disable = cn10k_ddr_perf_pmu_disable,
543 };
544
545 /* Choose this cpu to collect perf data */
546 ddr_pmu->cpu = raw_smp_processor_id();
547
548 name = devm_kasprintf(ddr_pmu->dev, GFP_KERNEL, "mrvl_ddr_pmu_%llx",
> 549 res->start);
550 if (!name)
551 return -ENOMEM;
552
553 ret = perf_pmu_register(&ddr_pmu->pmu, name, -1);
554 if (ret)
555 return ret;
556
557 pr_info("CN10K DDR PMU Driver for ddrc@%llx\n", res->start);
558 return 0;
559 }
560
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27932 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Bharat Bhushan <bbhushan2@marvell.com>,
will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org,
bbudiredla@marvell.com, sgoutham@marvell.com,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Bharat Bhushan <bbhushan2@marvell.com>
Subject: Re: [PATCH v5 2/4] perf/marvell: CN10k DDR performance monitor support
Date: Mon, 25 Oct 2021 13:20:32 +0800 [thread overview]
Message-ID: <202110251317.vHs13Aus-lkp@intel.com> (raw)
In-Reply-To: <20211018042015.25151-3-bbhushan2@marvell.com>
[-- Attachment #1: Type: text/plain, Size: 7481 bytes --]
Hi Bharat,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.15-rc6 next-20211022]
[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/Bharat-Bhushan/cn10k-DDR-Performance-monitor-support/20211018-122220
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: hexagon-randconfig-r045-20211025 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a461fa64bb37cffd73f683c74f6b0780379fc2ca)
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/c165c120469cac5c73b7a7e9d027c284eb09c6d1
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bharat-Bhushan/cn10k-DDR-Performance-monitor-support/20211018-122220
git checkout c165c120469cac5c73b7a7e9d027c284eb09c6d1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/perf/marvell_cn10k_ddr_pmu.c:352:9: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
val = readq_relaxed(pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:359:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:359:3: note: did you mean 'readq_relaxed'?
drivers/perf/marvell_cn10k_ddr_pmu.c:352:9: note: 'readq_relaxed' declared here
val = readq_relaxed(pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:361:9: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
val = readq_relaxed(pmu->base + DDRC_PERF_CNT_FREERUN_EN);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:373:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + DDRC_PERF_CNT_FREERUN_EN);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:382:10: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
return readq_relaxed(pmu->base + DDRC_PERF_CNT_VALUE_RD_OP);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:443:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + reg_offset);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:451:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + DDRC_PERF_CNT_FREERUN_CTRL);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:493:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(START_OP_CTRL_VAL_START, ddr_pmu->base +
^
drivers/perf/marvell_cn10k_ddr_pmu.c:501:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(END_OP_CTRL_VAL_END, ddr_pmu->base +
^
drivers/perf/marvell_cn10k_ddr_pmu.c:527:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(OP_MODE_CTRL_VAL_MANNUAL, ddr_pmu->base +
^
>> drivers/perf/marvell_cn10k_ddr_pmu.c:549:10: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
res->start);
^~~~~~~~~~
drivers/perf/marvell_cn10k_ddr_pmu.c:557:50: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
pr_info("CN10K DDR PMU Driver for ddrc@%llx\n", res->start);
~~~~ ^~~~~~~~~~
%x
include/linux/printk.h:519:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:446:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:418:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
2 warnings and 10 errors generated.
vim +549 drivers/perf/marvell_cn10k_ddr_pmu.c
504
505 static int cn10k_ddr_perf_probe(struct platform_device *pdev)
506 {
507 struct cn10k_ddr_pmu *ddr_pmu;
508 struct resource *res;
509 void __iomem *base;
510 char *name;
511 int ret;
512
513 ddr_pmu = devm_kzalloc(&pdev->dev, sizeof(*ddr_pmu), GFP_KERNEL);
514 if (!ddr_pmu)
515 return -ENOMEM;
516
517 ddr_pmu->dev = &pdev->dev;
518 platform_set_drvdata(pdev, ddr_pmu);
519
520 base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
521 if (IS_ERR(base))
522 return PTR_ERR(base);
523
524 ddr_pmu->base = base;
525
526 /* Setup the PMU counter to work in manual mode */
527 writeq_relaxed(OP_MODE_CTRL_VAL_MANNUAL, ddr_pmu->base +
528 DDRC_PERF_CNT_OP_MODE_CTRL);
529
530 ddr_pmu->pmu = (struct pmu) {
531 .module = THIS_MODULE,
532 .capabilities = PERF_PMU_CAP_NO_EXCLUDE,
533 .task_ctx_nr = perf_invalid_context,
534 .attr_groups = cn10k_attr_groups,
535 .event_init = cn10k_ddr_perf_event_init,
536 .add = cn10k_ddr_perf_event_add,
537 .del = cn10k_ddr_perf_event_del,
538 .start = cn10k_ddr_perf_event_start,
539 .stop = cn10k_ddr_perf_event_stop,
540 .read = cn10k_ddr_perf_event_update,
541 .pmu_enable = cn10k_ddr_perf_pmu_enable,
542 .pmu_disable = cn10k_ddr_perf_pmu_disable,
543 };
544
545 /* Choose this cpu to collect perf data */
546 ddr_pmu->cpu = raw_smp_processor_id();
547
548 name = devm_kasprintf(ddr_pmu->dev, GFP_KERNEL, "mrvl_ddr_pmu_%llx",
> 549 res->start);
550 if (!name)
551 return -ENOMEM;
552
553 ret = perf_pmu_register(&ddr_pmu->pmu, name, -1);
554 if (ret)
555 return ret;
556
557 pr_info("CN10K DDR PMU Driver for ddrc@%llx\n", res->start);
558 return 0;
559 }
560
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27932 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v5 2/4] perf/marvell: CN10k DDR performance monitor support
Date: Mon, 25 Oct 2021 13:20:32 +0800 [thread overview]
Message-ID: <202110251317.vHs13Aus-lkp@intel.com> (raw)
In-Reply-To: <20211018042015.25151-3-bbhushan2@marvell.com>
[-- Attachment #1: Type: text/plain, Size: 7628 bytes --]
Hi Bharat,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.15-rc6 next-20211022]
[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/Bharat-Bhushan/cn10k-DDR-Performance-monitor-support/20211018-122220
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: hexagon-randconfig-r045-20211025 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a461fa64bb37cffd73f683c74f6b0780379fc2ca)
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/c165c120469cac5c73b7a7e9d027c284eb09c6d1
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bharat-Bhushan/cn10k-DDR-Performance-monitor-support/20211018-122220
git checkout c165c120469cac5c73b7a7e9d027c284eb09c6d1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/perf/marvell_cn10k_ddr_pmu.c:352:9: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
val = readq_relaxed(pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:359:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:359:3: note: did you mean 'readq_relaxed'?
drivers/perf/marvell_cn10k_ddr_pmu.c:352:9: note: 'readq_relaxed' declared here
val = readq_relaxed(pmu->base + reg);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:361:9: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
val = readq_relaxed(pmu->base + DDRC_PERF_CNT_FREERUN_EN);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:373:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + DDRC_PERF_CNT_FREERUN_EN);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:382:10: error: implicit declaration of function 'readq_relaxed' [-Werror,-Wimplicit-function-declaration]
return readq_relaxed(pmu->base + DDRC_PERF_CNT_VALUE_RD_OP);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:443:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + reg_offset);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:451:3: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(val, pmu->base + DDRC_PERF_CNT_FREERUN_CTRL);
^
drivers/perf/marvell_cn10k_ddr_pmu.c:493:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(START_OP_CTRL_VAL_START, ddr_pmu->base +
^
drivers/perf/marvell_cn10k_ddr_pmu.c:501:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(END_OP_CTRL_VAL_END, ddr_pmu->base +
^
drivers/perf/marvell_cn10k_ddr_pmu.c:527:2: error: implicit declaration of function 'writeq_relaxed' [-Werror,-Wimplicit-function-declaration]
writeq_relaxed(OP_MODE_CTRL_VAL_MANNUAL, ddr_pmu->base +
^
>> drivers/perf/marvell_cn10k_ddr_pmu.c:549:10: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
res->start);
^~~~~~~~~~
drivers/perf/marvell_cn10k_ddr_pmu.c:557:50: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
pr_info("CN10K DDR PMU Driver for ddrc@%llx\n", res->start);
~~~~ ^~~~~~~~~~
%x
include/linux/printk.h:519:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:446:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:418:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
2 warnings and 10 errors generated.
vim +549 drivers/perf/marvell_cn10k_ddr_pmu.c
504
505 static int cn10k_ddr_perf_probe(struct platform_device *pdev)
506 {
507 struct cn10k_ddr_pmu *ddr_pmu;
508 struct resource *res;
509 void __iomem *base;
510 char *name;
511 int ret;
512
513 ddr_pmu = devm_kzalloc(&pdev->dev, sizeof(*ddr_pmu), GFP_KERNEL);
514 if (!ddr_pmu)
515 return -ENOMEM;
516
517 ddr_pmu->dev = &pdev->dev;
518 platform_set_drvdata(pdev, ddr_pmu);
519
520 base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
521 if (IS_ERR(base))
522 return PTR_ERR(base);
523
524 ddr_pmu->base = base;
525
526 /* Setup the PMU counter to work in manual mode */
527 writeq_relaxed(OP_MODE_CTRL_VAL_MANNUAL, ddr_pmu->base +
528 DDRC_PERF_CNT_OP_MODE_CTRL);
529
530 ddr_pmu->pmu = (struct pmu) {
531 .module = THIS_MODULE,
532 .capabilities = PERF_PMU_CAP_NO_EXCLUDE,
533 .task_ctx_nr = perf_invalid_context,
534 .attr_groups = cn10k_attr_groups,
535 .event_init = cn10k_ddr_perf_event_init,
536 .add = cn10k_ddr_perf_event_add,
537 .del = cn10k_ddr_perf_event_del,
538 .start = cn10k_ddr_perf_event_start,
539 .stop = cn10k_ddr_perf_event_stop,
540 .read = cn10k_ddr_perf_event_update,
541 .pmu_enable = cn10k_ddr_perf_pmu_enable,
542 .pmu_disable = cn10k_ddr_perf_pmu_disable,
543 };
544
545 /* Choose this cpu to collect perf data */
546 ddr_pmu->cpu = raw_smp_processor_id();
547
548 name = devm_kasprintf(ddr_pmu->dev, GFP_KERNEL, "mrvl_ddr_pmu_%llx",
> 549 res->start);
550 if (!name)
551 return -ENOMEM;
552
553 ret = perf_pmu_register(&ddr_pmu->pmu, name, -1);
554 if (ret)
555 return ret;
556
557 pr_info("CN10K DDR PMU Driver for ddrc@%llx\n", res->start);
558 return 0;
559 }
560
---
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: 27932 bytes --]
next prev parent reply other threads:[~2021-10-25 5:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-18 4:20 [PATCH v5 0/4] cn10k DDR Performance monitor support Bharat Bhushan
2021-10-18 4:20 ` Bharat Bhushan
2021-10-18 4:20 ` [PATCH v5 1/4] dt-bindings: perf: marvell: cn10k ddr performance monitor Bharat Bhushan
2021-10-18 4:20 ` Bharat Bhushan
2021-10-18 4:20 ` [PATCH v5 2/4] perf/marvell: CN10k DDR performance monitor support Bharat Bhushan
2021-10-18 4:20 ` Bharat Bhushan
2021-10-18 4:37 ` Bhaskara Budiredla
2021-10-18 4:37 ` Bhaskara Budiredla
2021-10-25 5:20 ` kernel test robot [this message]
2021-10-25 5:20 ` kernel test robot
2021-10-25 5:20 ` kernel test robot
2021-10-25 9:40 ` kernel test robot
2021-10-25 9:40 ` kernel test robot
2021-10-25 9:40 ` kernel test robot
2021-10-25 16:37 ` kernel test robot
2021-10-25 16:37 ` kernel test robot
2021-10-25 16:37 ` kernel test robot
2021-10-18 4:20 ` [PATCH v5 3/4] perf/marvell: cn10k DDR perfmon event overflow handling Bharat Bhushan
2021-10-18 4:20 ` Bharat Bhushan
2021-10-18 4:37 ` Bhaskara Budiredla
2021-10-18 4:37 ` Bhaskara Budiredla
2021-10-18 4:20 ` [PATCH v5 4/4] perf/marvell: cn10k DDR perf event core ownership Bharat Bhushan
2021-10-18 4:20 ` Bharat Bhushan
2021-10-18 4:37 ` Bhaskara Budiredla
2021-10-18 4:37 ` Bhaskara Budiredla
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=202110251317.vHs13Aus-lkp@intel.com \
--to=lkp@intel.com \
--cc=bbhushan2@marvell.com \
--cc=bbudiredla@marvell.com \
--cc=devicetree@vger.kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=sgoutham@marvell.com \
--cc=will@kernel.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.