From: Kamalesh Babulal Date: Wed, 16 Mar 2022 16:14:20 +0000 (+0530) Subject: samples/wrapper_test.c: fix checkpatch.pl warnings X-Git-Tag: v3.0~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2b48ff53f454237f5bd7662c74b9b099dc15642;p=thirdparty%2Flibcgroup.git 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 --- 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;