From: kernel test robot <lkp@intel.com>
To: Leo Yan <leo.yan@linaro.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Steev Klimaszewski <steev@kali.org>
Subject: [steev:c630-6.0.0-rc3 27/94] drivers/interconnect/qcom/icc-rpm.c:352:13: error: redefinition of 'qcom_icc_bus_aggregate'
Date: Sun, 4 Sep 2022 02:28:47 +0800 [thread overview]
Message-ID: <202209040243.Cd4XFUph-lkp@intel.com> (raw)
tree: https://github.com/steev/linux c630-6.0.0-rc3
head: 012f3cdd2a60528b877305877b52135b0076e028
commit: 1ecec38075e2393a1ed0b00d6c34aef77a3ec540 [27/94] interconnect: qcom: icc-rpm: Set bandwidth and clock for bucket values
config: arm-defconfig (https://download.01.org/0day-ci/archive/20220904/202209040243.Cd4XFUph-lkp@intel.com/config)
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/1ecec38075e2393a1ed0b00d6c34aef77a3ec540
git remote add steev https://github.com/steev/linux
git fetch --no-tags steev c630-6.0.0-rc3
git checkout 1ecec38075e2393a1ed0b00d6c34aef77a3ec540
# 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@intel.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
reply other threads:[~2022-09-03 18:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202209040243.Cd4XFUph-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=leo.yan@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=steev@kali.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.