[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209251642.Y2isFLv3-lkp@intel.com>
Date: Sun, 25 Sep 2022 16:40:40 +0800
From: kernel test robot <lkp@...el.com>
To: Leo Yan <leo.yan@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Steev Klimaszewski <steev@...i.org>
Subject: [steev:c630-6.0.0-rc6 27/156]
drivers/interconnect/qcom/icc-rpm.c:352:13: error: redefinition of
'qcom_icc_bus_aggregate'
tree: https://github.com/steev/linux c630-6.0.0-rc6
head: 9a45392dd66cc0ecc92257da15460d26f1b8a337
commit: a2b552e1ada116a9b2db3beef43a939b9b683323 [27/156] interconnect: qcom: icc-rpm: Set bandwidth and clock for bucket values
config: arm-defconfig
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/steev/linux/commit/a2b552e1ada116a9b2db3beef43a939b9b683323
git remote add steev https://github.com/steev/linux
git fetch --no-tags steev c630-6.0.0-rc6
git checkout a2b552e1ada116a9b2db3beef43a939b9b683323
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/interconnect/qcom/icc-rpm.c:352:13: error: redefinition of 'qcom_icc_bus_aggregate'
352 | static void qcom_icc_bus_aggregate(struct icc_provider *provider,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/interconnect/qcom/icc-rpm.c:312:13: note: previous definition of 'qcom_icc_bus_aggregate' with type 'void(struct icc_provider *, u64 *, u64 *, u64 *)' {aka 'void(struct icc_provider *, long long unsigned int *, long long unsigned int *, long long unsigned int *)'}
312 | static void qcom_icc_bus_aggregate(struct icc_provider *provider,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/interconnect/qcom/icc-rpm.c:312:13: warning: 'qcom_icc_bus_aggregate' defined but not used [-Wunused-function]
vim +/qcom_icc_bus_aggregate +352 drivers/interconnect/qcom/icc-rpm.c
344
345 /**
346 * qcom_icc_bus_aggregate - aggregate bandwidth by traversing all nodes
347 * @provider: generic interconnect provider
348 * @agg_avg: an array for aggregated average bandwidth of buckets
349 * @agg_peak: an array for aggregated peak bandwidth of buckets
350 * @max_agg_avg: pointer to max value of aggregated average bandwidth
351 */
> 352 static void qcom_icc_bus_aggregate(struct icc_provider *provider,
353 u64 *agg_avg, u64 *agg_peak,
354 u64 *max_agg_avg)
355 {
356 struct icc_node *node;
357 struct qcom_icc_node *qn;
358 int i;
359
360 /* Initialise aggregate values */
361 for (i = 0; i < QCOM_ICC_NUM_BUCKETS; i++) {
362 agg_avg[i] = 0;
363 agg_peak[i] = 0;
364 }
365
366 *max_agg_avg = 0;
367
368 /*
369 * Iterate nodes on the interconnect and aggregate bandwidth
370 * requests for every bucket.
371 */
372 list_for_each_entry(node, &provider->nodes, node_list) {
373 qn = node->data;
374 for (i = 0; i < QCOM_ICC_NUM_BUCKETS; i++) {
375 agg_avg[i] += qn->sum_avg[i];
376 agg_peak[i] = max_t(u64, agg_peak[i], qn->max_peak[i]);
377 }
378 }
379
380 /* Find maximum values across all buckets */
381 for (i = 0; i < QCOM_ICC_NUM_BUCKETS; i++)
382 *max_agg_avg = max_t(u64, *max_agg_avg, agg_avg[i]);
383 }
384
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (260280 bytes)
Powered by blists - more mailing lists