Skip to content

Commit 42c9ed8

Browse files
akpm00hnaz
authored andcommitted
sysctl-handle-error-writing-uint_max-to-u32-fields-checkpatch-fixes
WARNING: please, no spaces at the start of a line torvalds#101: FILE: kernel/sysctl.c:2297: + return do_proc_dointvec(table,write,buffer,lenp,ppos,$ ERROR: space required after that ',' (ctx:VxV) torvalds#101: FILE: kernel/sysctl.c:2297: + return do_proc_dointvec(table,write,buffer,lenp,ppos, ^ ERROR: space required after that ',' (ctx:VxV) torvalds#101: FILE: kernel/sysctl.c:2297: + return do_proc_dointvec(table,write,buffer,lenp,ppos, ^ ERROR: space required after that ',' (ctx:VxV) torvalds#101: FILE: kernel/sysctl.c:2297: + return do_proc_dointvec(table,write,buffer,lenp,ppos, ^ ERROR: space required after that ',' (ctx:VxV) torvalds#101: FILE: kernel/sysctl.c:2297: + return do_proc_dointvec(table,write,buffer,lenp,ppos, ^ WARNING: ENOSYS means 'invalid syscall nr' and nothing else torvalds#115: FILE: kernel/sysctl.c:2899: + return -ENOSYS; total: 4 errors, 2 warnings, 74 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/sysctl-handle-error-writing-uint_max-to-u32-fields.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: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent a75618d commit 42c9ed8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kernel/sysctl.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -2274,8 +2274,7 @@ static int do_proc_dointvec(struct ctl_table *table, int write,
22742274
int proc_dointvec(struct ctl_table *table, int write,
22752275
void __user *buffer, size_t *lenp, loff_t *ppos)
22762276
{
2277-
return do_proc_dointvec(table,write,buffer,lenp,ppos,
2278-
NULL,NULL);
2277+
return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL);
22792278
}
22802279

22812280
/**
@@ -2294,7 +2293,7 @@ int proc_dointvec(struct ctl_table *table, int write,
22942293
int proc_douintvec(struct ctl_table *table, int write,
22952294
void __user *buffer, size_t *lenp, loff_t *ppos)
22962295
{
2297-
return do_proc_dointvec(table,write,buffer,lenp,ppos,
2296+
return do_proc_dointvec(table, write, buffer, lenp, ppos,
22982297
do_proc_douintvec_conv, NULL);
22992298
}
23002299

0 commit comments

Comments
 (0)