Add missing header and inline keywords
Add a missing io_context header and inline keywords to the functions in
host_error_monitor.hpp.
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Change-Id: If52c930df8f6b318fc3450715309e545a08cfd65
diff --git a/include/error_monitors/base_monitor.hpp b/include/error_monitors/base_monitor.hpp
index 25c21ae..2bb0908 100644
--- a/include/error_monitors/base_monitor.hpp
+++ b/include/error_monitors/base_monitor.hpp
@@ -14,6 +14,7 @@
// limitations under the License.
*/
#pragma once
+#include <boost/asio/io_context.hpp>
#include <sdbusplus/asio/object_server.hpp>
#include <xyz/openbmc_project/Logging/Entry/common.hpp>
diff --git a/include/host_error_monitor.hpp b/include/host_error_monitor.hpp
index f1d26ac..bc7159c 100644
--- a/include/host_error_monitor.hpp
+++ b/include/host_error_monitor.hpp
@@ -31,7 +31,8 @@
bool hostIsOff();
-void startPowerCycle(std::shared_ptr<sdbusplus::asio::connection> conn)
+static inline void
+ startPowerCycle(std::shared_ptr<sdbusplus::asio::connection> conn)
{
conn->async_method_call(
[](boost::system::error_code ec) {
@@ -48,7 +49,8 @@
"xyz.openbmc_project.State.Chassis.Transition.PowerCycle"});
}
-void startWarmReset(std::shared_ptr<sdbusplus::asio::connection> conn)
+static inline void
+ startWarmReset(std::shared_ptr<sdbusplus::asio::connection> conn)
{
conn->async_method_call(
[](boost::system::error_code ec) {
@@ -92,7 +94,7 @@
}
}
-void startCrashdumpAndRecovery(
+static inline void startCrashdumpAndRecovery(
[[maybe_unused]] std::shared_ptr<sdbusplus::asio::connection> conn,
[[maybe_unused]] RecoveryType requestedRecovery,
[[maybe_unused]] const std::string& triggerType)
@@ -154,7 +156,7 @@
}
#endif
-[[maybe_unused]] static void
+[[maybe_unused]] static inline void
beep(std::shared_ptr<sdbusplus::asio::connection> conn,
const uint8_t& beepPriority)
{
@@ -172,7 +174,7 @@
"xyz.openbmc_project.BeepCode", "Beep", uint8_t(beepPriority));
}
-[[maybe_unused]] static void
+[[maybe_unused]] static inline void
checkErrPinCPUs([[maybe_unused]] const size_t errPin,
std::bitset<MAX_CPUS>& errPinCPUs)
{