From b2b48ff53f454237f5bd7662c74b9b099dc15642 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Wed, 16 Mar 2022 21:44:20 +0530 Subject: [PATCH] samples/wrapper_test.c: fix checkpatch.pl warnings 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 Signed-off-by: Tom Hromatka --- samples/c/wrapper_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/samples/c/wrapper_test.c b/samples/c/wrapper_test.c index 23dbef7f..c1f88371 100644 --- a/samples/c/wrapper_test.c +++ b/samples/c/wrapper_test.c @@ -1,10 +1,11 @@ // SPDX-License-Identifier: LGPL-2.1-only +#include "../src/libcgroup-internal.h" #include -#include + #include -#include "../src/libcgroup-internal.h" +#include -int main() +int main(void) { struct cgroup *cgroup; struct cgroup_controller *cgc; -- 2.47.2