Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[CPUFREQ] make internal cpufreq_add_dev_* static

No need to export these symbols; make them static.

cpufreq_add_dev_policy
cpufreq_add_dev_symlink
cpufreq_add_dev_interface

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Dave Jones <davej@redhat.com>

authored by

Alex Chiang and committed by
Dave Jones
cf3289d0 1cce76c2

+8 -5
+8 -5
drivers/cpufreq/cpufreq.c
··· 767 767 * 0: Success 768 768 * Positive: When we have a managed CPU and the sysfs got symlinked 769 769 */ 770 - int cpufreq_add_dev_policy(unsigned int cpu, struct cpufreq_policy *policy, 771 - struct sys_device *sys_dev) 770 + static int cpufreq_add_dev_policy(unsigned int cpu, 771 + struct cpufreq_policy *policy, 772 + struct sys_device *sys_dev) 772 773 { 773 774 int ret = 0; 774 775 #ifdef CONFIG_SMP ··· 843 842 844 843 845 844 /* symlink affected CPUs */ 846 - int cpufreq_add_dev_symlink(unsigned int cpu, struct cpufreq_policy *policy) 845 + static int cpufreq_add_dev_symlink(unsigned int cpu, 846 + struct cpufreq_policy *policy) 847 847 { 848 848 unsigned int j; 849 849 int ret = 0; ··· 871 869 return ret; 872 870 } 873 871 874 - int cpufreq_add_dev_interface(unsigned int cpu, struct cpufreq_policy *policy, 875 - struct sys_device *sys_dev) 872 + static int cpufreq_add_dev_interface(unsigned int cpu, 873 + struct cpufreq_policy *policy, 874 + struct sys_device *sys_dev) 876 875 { 877 876 struct cpufreq_policy new_policy; 878 877 struct freq_attr **drv_attr;