* [PATCH 1/1] sysctl: remove trailing spaces and tabs
@ 2021-06-08 7:57 Zhen Lei
2021-06-08 17:37 ` Kees Cook
0 siblings, 1 reply; 2+ messages in thread
From: Zhen Lei @ 2021-06-08 7:57 UTC (permalink / raw)
To: Luis Chamberlain, Kees Cook, Iurii Zaikin, linux-fsdevel, linux-kernel
Cc: Zhen Lei
Run the following command to find and remove the trailing spaces and tabs:
sed -r -i 's/[ \t]+$//' kernel/sysctl*
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
kernel/sysctl.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 82d6ff6d85cd..e656bb76587d 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -590,12 +590,12 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
int *i, vleft, first = 1, err = 0;
size_t left;
char *p;
-
+
if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) {
*lenp = 0;
return 0;
}
-
+
i = (int *) tbl_data;
vleft = table->maxlen / sizeof(*i);
left = *lenp;
@@ -807,7 +807,7 @@ static int do_proc_douintvec(struct ctl_table *table, int write,
* @ppos: file position
*
* Reads/writes up to table->maxlen/sizeof(unsigned int) integer
- * values from/to the user buffer, treated as an ASCII string.
+ * values from/to the user buffer, treated as an ASCII string.
*
* Returns 0 on success.
*/
@@ -1395,7 +1395,7 @@ static int do_proc_dointvec_ms_jiffies_conv(bool *negp, unsigned long *lvalp,
* @ppos: file position
*
* Reads/writes up to table->maxlen/sizeof(unsigned int) integer
- * values from/to the user buffer, treated as an ASCII string.
+ * values from/to the user buffer, treated as an ASCII string.
* The values read are assumed to be in seconds, and are converted into
* jiffies.
*
@@ -1417,8 +1417,8 @@ int proc_dointvec_jiffies(struct ctl_table *table, int write,
* @ppos: pointer to the file position
*
* Reads/writes up to table->maxlen/sizeof(unsigned int) integer
- * values from/to the user buffer, treated as an ASCII string.
- * The values read are assumed to be in 1/USER_HZ seconds, and
+ * values from/to the user buffer, treated as an ASCII string.
+ * The values read are assumed to be in 1/USER_HZ seconds, and
* are converted into jiffies.
*
* Returns 0 on success.
@@ -1440,8 +1440,8 @@ int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write,
* @ppos: the current position in the file
*
* Reads/writes up to table->maxlen/sizeof(unsigned int) integer
- * values from/to the user buffer, treated as an ASCII string.
- * The values read are assumed to be in 1/1000 seconds, and
+ * values from/to the user buffer, treated as an ASCII string.
+ * The values read are assumed to be in 1/1000 seconds, and
* are converted into jiffies.
*
* Returns 0 on success.
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] sysctl: remove trailing spaces and tabs
2021-06-08 7:57 [PATCH 1/1] sysctl: remove trailing spaces and tabs Zhen Lei
@ 2021-06-08 17:37 ` Kees Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2021-06-08 17:37 UTC (permalink / raw)
To: Zhen Lei; +Cc: Luis Chamberlain, Iurii Zaikin, linux-fsdevel, linux-kernel
On Tue, Jun 08, 2021 at 03:57:00PM +0800, Zhen Lei wrote:
> Run the following command to find and remove the trailing spaces and tabs:
>
> sed -r -i 's/[ \t]+$//' kernel/sysctl*
>
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
--
Kees Cook
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-08 17:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 7:57 [PATCH 1/1] sysctl: remove trailing spaces and tabs Zhen Lei
2021-06-08 17:37 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).