From: kernel test robot <lkp@intel.com>
To: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [arm-de:upstream/remove_feec_energy_margin_rework 1/11] drivers/powercap/dtpm_cpu.c:85:49: error: expected ')'
Date: Wed, 5 Jan 2022 16:51:03 +0800 [thread overview]
Message-ID: <202201051643.2xpTOg7E-lkp@intel.com> (raw)
tree: https://git.gitlab.arm.com/linux-arm/linux-de.git upstream/remove_feec_energy_margin_rework
head: 8a0bdb78ce1cbb8e5e6768965874226b92b07b0e
commit: 150e753e861285e82e9d7c593f1f26075c34e124 [1/11] sched, drivers: Remove max param from effective_cpu_util()/sched_cpu_util()
config: i386-randconfig-a012-20220105 (https://download.01.org/0day-ci/archive/20220105/202201051643.2xpTOg7E-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e30ed3acad794dd0aec400e617daffc6cc3d)
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
git remote add arm-de https://git.gitlab.arm.com/linux-arm/linux-de.git
git fetch --no-tags arm-de upstream/remove_feec_energy_margin_rework
git checkout 150e753e861285e82e9d7c593f1f26075c34e124
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/powercap/dtpm_cpu.c:85:49: error: expected ')'
return (power * ((sum_util << 10) / max) >> 10 : 0;
^
drivers/powercap/dtpm_cpu.c:85:9: note: to match this '('
return (power * ((sum_util << 10) / max) >> 10 : 0;
^
1 error generated.
vim +85 drivers/powercap/dtpm_cpu.c
70
71 static u64 scale_pd_power_uw(struct cpumask *pd_mask, u64 power)
72 {
73 unsigned long max, sum_util = 0;
74 int cpu;
75
76 /*
77 * The capacity is the same for all CPUs belonging to
78 * the same perf domain.
79 */
80 max = arch_scale_cpu_capacity(cpumask_first(pd_mask));
81
82 for_each_cpu_and(cpu, pd_mask, cpu_online_mask)
83 sum_util += sched_cpu_util(cpu);
84
> 85 return (power * ((sum_util << 10) / max) >> 10 : 0;
86 }
87
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arm-de:upstream/remove_feec_energy_margin_rework 1/11] drivers/powercap/dtpm_cpu.c:85:49: error: expected ')'
Date: Wed, 05 Jan 2022 16:51:03 +0800 [thread overview]
Message-ID: <202201051643.2xpTOg7E-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2332 bytes --]
tree: https://git.gitlab.arm.com/linux-arm/linux-de.git upstream/remove_feec_energy_margin_rework
head: 8a0bdb78ce1cbb8e5e6768965874226b92b07b0e
commit: 150e753e861285e82e9d7c593f1f26075c34e124 [1/11] sched, drivers: Remove max param from effective_cpu_util()/sched_cpu_util()
config: i386-randconfig-a012-20220105 (https://download.01.org/0day-ci/archive/20220105/202201051643.2xpTOg7E-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e30ed3acad794dd0aec400e617daffc6cc3d)
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
git remote add arm-de https://git.gitlab.arm.com/linux-arm/linux-de.git
git fetch --no-tags arm-de upstream/remove_feec_energy_margin_rework
git checkout 150e753e861285e82e9d7c593f1f26075c34e124
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/powercap/dtpm_cpu.c:85:49: error: expected ')'
return (power * ((sum_util << 10) / max) >> 10 : 0;
^
drivers/powercap/dtpm_cpu.c:85:9: note: to match this '('
return (power * ((sum_util << 10) / max) >> 10 : 0;
^
1 error generated.
vim +85 drivers/powercap/dtpm_cpu.c
70
71 static u64 scale_pd_power_uw(struct cpumask *pd_mask, u64 power)
72 {
73 unsigned long max, sum_util = 0;
74 int cpu;
75
76 /*
77 * The capacity is the same for all CPUs belonging to
78 * the same perf domain.
79 */
80 max = arch_scale_cpu_capacity(cpumask_first(pd_mask));
81
82 for_each_cpu_and(cpu, pd_mask, cpu_online_mask)
83 sum_util += sched_cpu_util(cpu);
84
> 85 return (power * ((sum_util << 10) / max) >> 10 : 0;
86 }
87
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-01-05 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 8:51 kernel test robot [this message]
2022-01-05 8:51 ` [arm-de:upstream/remove_feec_energy_margin_rework 1/11] drivers/powercap/dtpm_cpu.c:85:49: error: expected ')' kernel test robot
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=202201051643.2xpTOg7E-lkp@intel.com \
--to=lkp@intel.com \
--cc=dietmar.eggemann@arm.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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.