Skip to content

Commit 2253fec

Browse files
committed
panic-sys_info-factor-out-read-and-write-handlers-checkpatch-fixes
WARNING: struct ctl_table should normally be const torvalds#24: FILE: lib/sys_info.c:46: +static int sys_info_write_handler(struct ctl_table *table, WARNING: struct ctl_table should normally be const torvalds#43: FILE: lib/sys_info.c:65: +static int sys_info_read_handler(struct ctl_table *table, total: 0 errors, 2 warnings, 99 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/panic-sys_info-factor-out-read-and-write-handlers.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Andy Shevchenko <[email protected]> Cc: Feng Tang <[email protected]> Cc: Petr Mladek <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6119d3f commit 2253fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sys_info.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ unsigned long sys_info_parse_param(char *str)
4343

4444
#ifdef CONFIG_SYSCTL
4545

46-
static int sys_info_write_handler(struct ctl_table *table,
46+
static int sys_info_write_handler(const struct ctl_table *table,
4747
void *buffer, size_t *lenp, loff_t *ppos,
4848
unsigned long *si_bits_global)
4949
{
@@ -62,7 +62,7 @@ static int sys_info_write_handler(struct ctl_table *table,
6262
return 0;
6363
}
6464

65-
static int sys_info_read_handler(struct ctl_table *table,
65+
static int sys_info_read_handler(const struct ctl_table *table,
6666
void *buffer, size_t *lenp, loff_t *ppos,
6767
unsigned long *si_bits_global)
6868
{

0 commit comments

Comments
 (0)