Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG. It also introduces reverse xmas tree local
variable declarations and header file reordering.
In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 0 warnings, 44 lines checked
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
// SPDX-License-Identifier: LGPL-2.1-only
+#include "../src/libcgroup-internal.h"
#include <libcgroup.h>
-#include <stdio.h>
+
#include <string.h>
-#include "../src/libcgroup-internal.h"
+#include <stdio.h>
-int main()
+int main(void)
{
struct cgroup *cgroup;
struct cgroup_controller *cgc;