Skip to content

Commit d5af75f

Browse files
committed
Merge tag 'sysctl-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux
Pull sysctl updates from Luis Chamberlain: "There isn't much for 6.0 for sysctl stuff, most of the stuff went through the networking subsystem (Kuniyuki Iwashima's trove of fixes using READ_ONCE/WRITE_ONCE helpers) as most of the issues there have been identified on networking side. So it is good we don't have much updates as we would have ended up with tons of conflicts. I rebased my delta just now to your tree so to avoid conflicts with that stuff. This merge request is just minor fluff cleanups then. Perhaps for 6.1 kernel/sysctl.c will get more love than this release" * tag 'sysctl-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux: kernel/sysctl.c: Remove trailing white space kernel/sysctl.c: Clean up indentation, replace spaces with tab. sysctl: Merge adjacent CONFIG_TREE_RCU blocks
2 parents e74acdf + 374a723 commit d5af75f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

kernel/sysctl.c

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,12 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
492492
int *i, vleft, first = 1, err = 0;
493493
size_t left;
494494
char *p;
495-
495+
496496
if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) {
497497
*lenp = 0;
498498
return 0;
499499
}
500-
500+
501501
i = (int *) tbl_data;
502502
vleft = table->maxlen / sizeof(*i);
503503
left = *lenp;
@@ -729,7 +729,7 @@ int proc_dobool(struct ctl_table *table, int write, void *buffer,
729729
* @ppos: file position
730730
*
731731
* Reads/writes up to table->maxlen/sizeof(unsigned int) integer
732-
* values from/to the user buffer, treated as an ASCII string.
732+
* values from/to the user buffer, treated as an ASCII string.
733733
*
734734
* Returns 0 on success.
735735
*/
@@ -1273,7 +1273,7 @@ static int do_proc_dointvec_ms_jiffies_minmax_conv(bool *negp, unsigned long *lv
12731273
* @ppos: file position
12741274
*
12751275
* Reads/writes up to table->maxlen/sizeof(unsigned int) integer
1276-
* values from/to the user buffer, treated as an ASCII string.
1276+
* values from/to the user buffer, treated as an ASCII string.
12771277
* The values read are assumed to be in seconds, and are converted into
12781278
* jiffies.
12791279
*
@@ -1306,17 +1306,17 @@ int proc_dointvec_ms_jiffies_minmax(struct ctl_table *table, int write,
13061306
* @ppos: pointer to the file position
13071307
*
13081308
* Reads/writes up to table->maxlen/sizeof(unsigned int) integer
1309-
* values from/to the user buffer, treated as an ASCII string.
1310-
* The values read are assumed to be in 1/USER_HZ seconds, and
1309+
* values from/to the user buffer, treated as an ASCII string.
1310+
* The values read are assumed to be in 1/USER_HZ seconds, and
13111311
* are converted into jiffies.
13121312
*
13131313
* Returns 0 on success.
13141314
*/
13151315
int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write,
13161316
void *buffer, size_t *lenp, loff_t *ppos)
13171317
{
1318-
return do_proc_dointvec(table,write,buffer,lenp,ppos,
1319-
do_proc_dointvec_userhz_jiffies_conv,NULL);
1318+
return do_proc_dointvec(table, write, buffer, lenp, ppos,
1319+
do_proc_dointvec_userhz_jiffies_conv, NULL);
13201320
}
13211321

13221322
/**
@@ -2061,7 +2061,7 @@ static struct ctl_table kern_table[] = {
20612061
.extra1 = SYSCTL_ZERO,
20622062
.extra2 = SYSCTL_ONE,
20632063
},
2064-
#if defined(CONFIG_TREE_RCU)
2064+
#ifdef CONFIG_TREE_RCU
20652065
{
20662066
.procname = "panic_on_rcu_stall",
20672067
.data = &sysctl_panic_on_rcu_stall,
@@ -2071,8 +2071,6 @@ static struct ctl_table kern_table[] = {
20712071
.extra1 = SYSCTL_ZERO,
20722072
.extra2 = SYSCTL_ONE,
20732073
},
2074-
#endif
2075-
#if defined(CONFIG_TREE_RCU)
20762074
{
20772075
.procname = "max_rcu_stall_to_panic",
20782076
.data = &sysctl_max_rcu_stall_to_panic,

0 commit comments

Comments
 (0)