summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2020-08-19 19:19:09 +0300
committerEd Tanous <ed@tanous.net>2020-08-21 21:18:28 +0300
commit80789c8e769b7439d72787bd620f28ebd5b14235 (patch)
treed9fc429667cdc6b5c0a0fabb740ebf0753be4b35
parent93ee9ca0c5d36204007dd0a8d44c4349dc531cb5 (diff)
downloadbmcweb-80789c8e769b7439d72787bd620f28ebd5b14235.tar.xz
Fix missing inlines
This shows up as a warning in clang Tested: Code compiles in clang now Change-Id: Icb2bed0a489c4bbaa85ad365602a3cd547a4fe6c Signed-off-by: Ed Tanous <ed@tanous.net>
-rw-r--r--redfish-core/lib/cpudimm.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/redfish-core/lib/cpudimm.hpp b/redfish-core/lib/cpudimm.hpp
index 7b5ca4359c..4f387fc1ed 100644
--- a/redfish-core/lib/cpudimm.hpp
+++ b/redfish-core/lib/cpudimm.hpp
@@ -434,8 +434,8 @@ using DimmProperty =
using DimmProperties = boost::container::flat_map<std::string, DimmProperty>;
-void dimmPropToHex(std::shared_ptr<AsyncResp> aResp, const char* key,
- const std::pair<std::string, DimmProperty>& property)
+inline void dimmPropToHex(std::shared_ptr<AsyncResp> aResp, const char* key,
+ const std::pair<std::string, DimmProperty>& property)
{
const uint16_t* value = std::get_if<uint16_t>(&property.second);
if (value == nullptr)
@@ -448,8 +448,8 @@ void dimmPropToHex(std::shared_ptr<AsyncResp> aResp, const char* key,
aResp->res.jsonValue[key] = (boost::format("0x%04x") % *value).str();
}
-void getPersistentMemoryProperties(std::shared_ptr<AsyncResp> aResp,
- const DimmProperties& properties)
+inline void getPersistentMemoryProperties(std::shared_ptr<AsyncResp> aResp,
+ const DimmProperties& properties)
{
for (const auto& property : properties)
{
@@ -696,9 +696,10 @@ void getPersistentMemoryProperties(std::shared_ptr<AsyncResp> aResp,
}
}
-void getDimmDataByService(std::shared_ptr<AsyncResp> aResp,
- const std::string& dimmId, const std::string& service,
- const std::string& objPath)
+inline void getDimmDataByService(std::shared_ptr<AsyncResp> aResp,
+ const std::string& dimmId,
+ const std::string& service,
+ const std::string& objPath)
{
auto health = std::make_shared<HealthPopulate>(aResp);
health->selfPath = objPath;