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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 5 Jan 2022 05:09:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dietmar Eggemann <dietmar.eggemann@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [arm-de:upstream/remove_feec_energy_margin_rework 1/11]
 drivers/powercap/dtpm_cpu.c:85:48: error: expected ')' before ':' token

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-allyesconfig (https://download.01.org/0day-ci/archive/20220105/202201050536.YWxpqIkn-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        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
        make 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@...el.com>

All errors (new ones prefixed by >>):

   drivers/powercap/dtpm_cpu.c: In function 'scale_pd_power_uw':
>> drivers/powercap/dtpm_cpu.c:85:48: error: expected ')' before ':' token
      85 |  return (power * ((sum_util << 10) / max) >> 10 : 0;
         |         ~                                      ^~
         |                                                )
>> drivers/powercap/dtpm_cpu.c:85:53: error: expected ';' before '}' token
      85 |  return (power * ((sum_util << 10) / max) >> 10 : 0;
         |                                                     ^
         |                                                     ;
      86 | }
         | ~                                                    


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ