From: Ezequiel Garcia Date: Wed, 20 Mar 2013 21:38:07 +0000 (+0000) Subject: thermal: Fix compiler warning X-Git-Tag: upstream/snapshot3+hdmi~5140^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8b587055a793c7719f0d4f41b7b4aeeef43aa2d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Zhang Rui --- diff --git a/include/linux/thermal.h b/include/linux/thermal.h index f0bd7f9..fd7b8f3 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;