Skip to content

Commit

Permalink
(squash) checkpatch: fix indentation
Browse files Browse the repository at this point in the history
Fix the following checkpatch complaints:

  ERROR: code indent should use tabs where possible
  torvalds#96: FILE: lib/livepatch/test_klp_convert1.c:43:
  +        return 0;$

  WARNING: please, no spaces at the start of a line
  torvalds#96: FILE: lib/livepatch/test_klp_convert1.c:43:
  +        return 0;$

  ERROR: code indent should use tabs where possible
  torvalds#99: FILE: lib/livepatch/test_klp_convert1.c:46:
  +        .set = print_debug_set,$

  WARNING: please, no spaces at the start of a line
  torvalds#99: FILE: lib/livepatch/test_klp_convert1.c:46:
  +        .set = print_debug_set,$

  ERROR: code indent should use tabs where possible
  torvalds#100: FILE: lib/livepatch/test_klp_convert1.c:47:
  +        .get = param_get_int,$

  WARNING: please, no spaces at the start of a line
  torvalds#100: FILE: lib/livepatch/test_klp_convert1.c:47:
  +        .get = param_get_int,$

  ERROR: code indent should use tabs where possible
  torvalds#221: FILE: lib/livepatch/test_klp_convert2.c:43:
  +        return 0;$

  WARNING: please, no spaces at the start of a line
  torvalds#221: FILE: lib/livepatch/test_klp_convert2.c:43:
  +        return 0;$

  ERROR: code indent should use tabs where possible
  torvalds#224: FILE: lib/livepatch/test_klp_convert2.c:46:
  +        .set = print_debug_set,$

  WARNING: please, no spaces at the start of a line
  torvalds#224: FILE: lib/livepatch/test_klp_convert2.c:46:
  +        .set = print_debug_set,$

  ERROR: code indent should use tabs where possible
  torvalds#225: FILE: lib/livepatch/test_klp_convert2.c:47:
  +        .get = param_get_int,$

  WARNING: please, no spaces at the start of a line
  torvalds#225: FILE: lib/livepatch/test_klp_convert2.c:47:
  +        .get = param_get_int,$

Signed-off-by: Joe Lawrence <[email protected]>
  • Loading branch information
joe-lawrence committed Oct 27, 2021
1 parent f2eac39 commit 45adae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/livepatch/test_klp_convert1.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ static int print_debug_set(const char *val, const struct kernel_param *kp)
print_homonym_string();
print_static_strings();

return 0;
return 0;
}
static const struct kernel_param_ops print_debug_ops = {
.set = print_debug_set,
.get = param_get_int,
.set = print_debug_set,
.get = param_get_int,
};
module_param_cb(print_debug, &print_debug_ops, &print_debug, 0200);
MODULE_PARM_DESC(print_debug, "print klp-convert debugging info");
Expand Down
6 changes: 3 additions & 3 deletions lib/livepatch/test_klp_convert2.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ static int print_debug_set(const char *val, const struct kernel_param *kp)
print_driver_name();
print_homonym_string();

return 0;
return 0;
}
static const struct kernel_param_ops print_debug_ops = {
.set = print_debug_set,
.get = param_get_int,
.set = print_debug_set,
.get = param_get_int,
};
module_param_cb(print_debug, &print_debug_ops, &print_debug, 0200);
MODULE_PARM_DESC(print_debug, "print klp-convert debugging info");
Expand Down

0 comments on commit 45adae4

Please sign in to comment.