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

Attachment: .config.gz
Description: application/gzip

Reply via email to