Skip to content

Commit

Permalink
thermal: Fix compiler warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ezequiel Garcia authored and Zhang Rui committed Mar 26, 2013
1 parent 4c7fa83 commit f8b5870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/thermal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f8b5870

Please sign in to comment.