lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 4 Sep 2022 02:28:47 +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-rc3 27/94] 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-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@...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
Powered by blists - more mailing lists