2013-04-17 17:14:24

by Eduardo Valentin

[permalink] [raw]
Subject: [PATCH 04/30] thermal: cpu_cooling: use EXPORT_SYMBOL_GPL

Restrict the usage to GPL modules.

Cc: Zhang Rui <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Eduardo Valentin <[email protected]>
---
drivers/thermal/cpu_cooling.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 7c0c05b..64dc4dd 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -200,8 +200,7 @@ unsigned long cpufreq_cooling_get_level(unsigned int cpu, unsigned int freq)
return THERMAL_CSTATE_INVALID;
return (unsigned long)val;
}
-
-EXPORT_SYMBOL(cpufreq_cooling_get_level);
+EXPORT_SYMBOL_GPL(cpufreq_cooling_get_level);

/**
* get_cpu_frequency - get the absolute value of frequency from level.
@@ -414,7 +413,7 @@ struct thermal_cooling_device *cpufreq_cooling_register(
mutex_unlock(&cooling_cpufreq_lock);
return cool_dev;
}
-EXPORT_SYMBOL(cpufreq_cooling_register);
+EXPORT_SYMBOL_GPL(cpufreq_cooling_register);

/**
* cpufreq_cooling_unregister - function to remove cpufreq cooling device.
@@ -438,4 +437,4 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
release_idr(&cpufreq_idr, cpufreq_dev->id);
kfree(cpufreq_dev);
}
-EXPORT_SYMBOL(cpufreq_cooling_unregister);
+EXPORT_SYMBOL_GPL(cpufreq_cooling_unregister);
--
1.8.2.1.342.gfa7285d


2013-04-24 14:50:25

by Zhang, Rui

[permalink] [raw]
Subject: RE: [PATCH 04/30] thermal: cpu_cooling: use EXPORT_SYMBOL_GPL

Applied.

Thanks,
rui

> -----Original Message-----
> From: Eduardo Valentin [mailto:[email protected]]
> Sent: Thursday, April 18, 2013 1:12 AM
> To: [email protected]
> Cc: Eduardo Valentin; Zhang, Rui; [email protected]; linux-
> [email protected]
> Subject: [PATCH 04/30] thermal: cpu_cooling: use EXPORT_SYMBOL_GPL
> Importance: High
>
> Restrict the usage to GPL modules.
>
> Cc: Zhang Rui <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Signed-off-by: Eduardo Valentin <[email protected]>
> ---
> drivers/thermal/cpu_cooling.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/thermal/cpu_cooling.c
> b/drivers/thermal/cpu_cooling.c index 7c0c05b..64dc4dd 100644
> --- a/drivers/thermal/cpu_cooling.c
> +++ b/drivers/thermal/cpu_cooling.c
> @@ -200,8 +200,7 @@ unsigned long cpufreq_cooling_get_level(unsigned
> int cpu, unsigned int freq)
> return THERMAL_CSTATE_INVALID;
> return (unsigned long)val;
> }
> -
> -EXPORT_SYMBOL(cpufreq_cooling_get_level);
> +EXPORT_SYMBOL_GPL(cpufreq_cooling_get_level);
>
> /**
> * get_cpu_frequency - get the absolute value of frequency from level.
> @@ -414,7 +413,7 @@ struct thermal_cooling_device
> *cpufreq_cooling_register(
> mutex_unlock(&cooling_cpufreq_lock);
> return cool_dev;
> }
> -EXPORT_SYMBOL(cpufreq_cooling_register);
> +EXPORT_SYMBOL_GPL(cpufreq_cooling_register);
>
> /**
> * cpufreq_cooling_unregister - function to remove cpufreq cooling
> device.
> @@ -438,4 +437,4 @@ void cpufreq_cooling_unregister(struct
> thermal_cooling_device *cdev)
> release_idr(&cpufreq_idr, cpufreq_dev->id);
> kfree(cpufreq_dev);
> }
> -EXPORT_SYMBOL(cpufreq_cooling_unregister);
> +EXPORT_SYMBOL_GPL(cpufreq_cooling_unregister);
> --
> 1.8.2.1.342.gfa7285d