]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Fix build error on some platforms that use cpufreq_for_each_*
authorStratos Karafotis <stratosk@semaphore.gr>
Wed, 7 May 2014 16:33:33 +0000 (19:33 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 May 2014 11:10:56 +0000 (13:10 +0200)
commitab29250b82295e8a1a88a9f3730c329688da1d95
tree704d8bb4d23fc7aa8dd983588963d4eb1f9cd8a2
parent3029939252e42da232fc86f9e533fbe49b54fc7e
cpufreq: Fix build error on some platforms that use cpufreq_for_each_*

On platforms that use cpufreq_for_each_* macros, build fails if
CONFIG_CPU_FREQ=n, e.g. ARM/shmobile/koelsch/non-multiplatform:

drivers/built-in.o: In function `clk_round_parent':
clkdev.c:(.text+0xcf168): undefined reference to `cpufreq_next_valid'
drivers/built-in.o: In function `clk_rate_table_find':
clkdev.c:(.text+0xcf820): undefined reference to `cpufreq_next_valid'
make[3]: *** [vmlinux] Error 1

Fix this making cpufreq_next_valid function inline and move it to
cpufreq.h.

Fixes: d676622ac082 (cpufreq: Introduce macros for cpufreq_frequency_table iteration)
Reported-and-tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h