libmctp: Introduce compiler.h

Define __unused here and include compiler.h in all the places we can
make use of it. Clean up some header ordering and include styles while
we're at it.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I33ddbdacbddbbf557dc02e42d8dde71a16e1cabe
diff --git a/compiler.h b/compiler.h
new file mode 100644
index 0000000..6aefbf9
--- /dev/null
+++ b/compiler.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
+#ifndef _COMPILER_H
+#define _COMPILER_H
+
+#define __unused __attribute__((unused))
+
+#endif