OSDN Git Service

thermal: Fix compiler warning
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 20 Mar 2013 21:38:07 +0000 (21:38 +0000)
committerZhang Rui <rui.zhang@intel.com>
Tue, 26 Mar 2013 14:08:21 +0000 (22:08 +0800)
commitf8b587055a793c7719f0d4f41b7b4aeeef43aa2d
tree52c7e02ddc9d80dfbd5a7df9bd43f9de1a6a7a83
parent4c7fa83aa5f8444662744dba82577075f11673ae
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>
include/linux/thermal.h