]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
include/tools.h: fix checkpatch.pl warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 16 Mar 2022 16:17:38 +0000 (21:47 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 16 Mar 2022 21:38:20 +0000 (15:38 -0600)
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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
include/libcgroup/tools.h

index 2381fa65ff05949f5412bb231d73a076d7e54567..9fcbb151f7c8e9eb8261a2567440f98f2f421896 100644 (file)
@@ -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);
 
 /**