cpusensor: Move kernel includes to the end
When updating to the newest kernel it appears config.h
got the namespace keyword checked in which is making
C++ throw a fit. Moving it to the end seems to get rid
of the issue.
arm-openbmc-linux-gnueabi/bits/c++config.h:253:10: error: expected unqualified-id before 'namespace'
| inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
Change-Id: I896c63e56ea3e9d4fbdeb133bb8fa913db19f7b4
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/CPUSensorMain.cpp b/src/CPUSensorMain.cpp
index a356d5c..0ea131b 100644
--- a/src/CPUSensorMain.cpp
+++ b/src/CPUSensorMain.cpp
@@ -15,7 +15,6 @@
*/
#include <fcntl.h>
-#include <linux/peci-ioctl.h>
#include <CPUSensor.hpp>
#include <Utils.hpp>
@@ -31,6 +30,11 @@
#include <sdbusplus/asio/connection.hpp>
#include <sdbusplus/asio/object_server.hpp>
+// clang-format off
+// this needs to be included last or we'll have build issues
+#include <linux/peci-ioctl.h>
+// clang-format on
+
static constexpr bool DEBUG = false;
enum State