diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-03-20 21:38:07 +0000 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-03-26 22:08:21 +0800 |
commit | f8b587055a793c7719f0d4f41b7b4aeeef43aa2d (patch) | |
tree | 52c7e02ddc9d80dfbd5a7df9bd43f9de1a6a7a83 | |
parent | 4c7fa83aa5f8444662744dba82577075f11673ae (diff) |
thermal: Fix compiler warning
The following warning is obtained when CONFIG_NET is not defined:
In file included from drivers/thermal/mvebu_thermal.c:27:0:
include/linux/thermal.h:254:12: warning: 'thermal_generate_netlink_event'
defined but not used [-Wunused-function]
This patch fixes the warning by properly inlining
thermal_generate_netlink_event().
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | include/linux/thermal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index f0bd7f90a90d..fd7b8f3e6f42 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -251,7 +251,7 @@ void thermal_unregister_governor(struct thermal_governor *); extern int thermal_generate_netlink_event(struct thermal_zone_device *tz, enum events event); #else -static int thermal_generate_netlink_event(struct thermal_zone_device *tz, +static inline int thermal_generate_netlink_event(struct thermal_zone_device *tz, enum events event) { return 0; |