mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.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 '->'?
Date: Thu, 13 Apr 2017 02:49:32 +0800	[thread overview]
Message-ID: <201704130224.5psU5KUV%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]

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 #2: .config.gz --]
[-- Type: application/gzip, Size: 44546 bytes --]

                 reply	other threads:[~2017-04-12 18:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201704130224.5psU5KUV%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tipbuild@zytor.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®