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:   Thu, 13 Apr 2017 02:49:32 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.sched/cpusallowed 10/13]
 drivers//cpufreq/sh-cpufreq.c:46:26: error: 'target->policy' is a pointer;
 did you mean to use '->'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/cpusallowed
head:   4ba98c7ec4094a9123d0d6aabb4497290207b518
commit: 2f3906721cb13cba263dfc64af23a272c5a46968 [10/13] cpufreq/sh: Use work_on_cpu()
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2f3906721cb13cba263dfc64af23a272c5a46968
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   drivers//cpufreq/sh-cpufreq.c: In function '__sh_cpufreq_target':
>> drivers//cpufreq/sh-cpufreq.c:46:26: error: 'target->policy' is a pointer; did you mean to use '->'?
     int cpu = target->policy.cpu;
                             ^
                             ->
>> drivers//cpufreq/sh-cpufreq.c:60:14: error: 'policy' undeclared (first use in this function)
     if (freq < (policy->min * 1000) || freq > (policy->max * 1000))
                 ^~~~~~
   drivers//cpufreq/sh-cpufreq.c:60:14: note: each undeclared identifier is reported only once for each function it appears in

vim +46 drivers//cpufreq/sh-cpufreq.c

    40		return (clk_get_rate(&per_cpu(sh_cpuclk, cpu)) + 500) / 1000;
    41	}
    42	
    43	static long __sh_cpufreq_target(void *arg)
    44	{
    45		struct cpufreq_target *target = arg;
  > 46		int cpu = target->policy.cpu;
    47		struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu);
    48		struct cpufreq_freqs freqs;
    49		struct device *dev;
    50		long freq;
    51	
    52		if (smp_processor_id() != cpu)
    53			return -ENODEV;
    54	
    55		dev = get_cpu_device(cpu);
    56	
    57		/* Convert target_freq from kHz to Hz */
    58		freq = clk_round_rate(cpuclk, target->freq * 1000);
    59	
  > 60		if (freq < (policy->min * 1000) || freq > (policy->max * 1000))
    61			return -EINVAL;
    62	
    63		dev_dbg(dev, "requested frequency %u Hz\n", target->freq * 1000);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (44546 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ