@@ -11,7 +11,7 @@
#include <ndctl.h>
#endif
-static double parse_smart_temperature(unsigned int temp)
+double parse_smart_temperature(unsigned int temp)
{
bool negative = !!(temp & (1 << 15));
double t;
@@ -13,8 +13,13 @@ struct json_object *util_mapping_to_json(struct ndctl_mapping *mapping);
struct json_object *util_namespace_to_json(struct ndctl_namespace *ndns,
bool include_idle);
#ifdef HAVE_NDCTL_SMART
+double parse_smart_temperature(unsigned int temp);
struct json_object *util_dimm_health_to_json(struct ndctl_dimm *dimm);
#else
+static inline double parse_smart_temperature(unsigned int temp)
+{
+ return 0.0;
+}
static inline struct json_object *util_dimm_health_to_json(
struct ndctl_dimm *dimm)
{