From: Kamalesh Babulal Date: Wed, 16 Mar 2022 16:17:38 +0000 (+0530) Subject: include/tools.h: fix checkpatch.pl warnings X-Git-Tag: v3.0~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f36f8661e9f3f524ce8ea8b36819978e03748f7;p=thirdparty%2Flibcgroup.git include/tools.h: 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, 3 warnings, 73 lines checked Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/include/libcgroup/tools.h b/include/libcgroup/tools.h index 2381fa65..9fcbb151 100644 --- a/include/libcgroup/tools.h +++ b/include/libcgroup/tools.h @@ -32,13 +32,13 @@ extern "C" { * * @param cg Input/Output cgroup. Must be initialized and freed by the caller * @param version Cgroup version of cg If set to CGROUP_UNK, the versions - * stored within each controller will be used. Otherwise this - * value will be used to override the cg param's controller - * versions + * stored within each controller will be used. Otherwise this + * value will be used to override the cg param's controller + * versions * @param ignore_unmappable Ignore failures due to settings that cannot be - * converted from one cgroup version to another + * converted from one cgroup version to another */ -int cgroup_cgxget(struct cgroup ** cg, +int cgroup_cgxget(struct cgroup **cg, enum cg_version_t version, bool ignore_unmappable); /**