Commit d5ffb71b authored by Alessio Balsini's avatar Alessio Balsini Committed by Linus Torvalds

include/linux/sysctl.h: inline braces for ctl_table and ctl_table_header

Fix coding style of "struct ctl_table" and "struct ctl_table_header" to
have inline braces.

Besides the wide use of this proposed cose style, this change helps to
find at a glance the struct definition when navigating the code.

Link: http://lkml.kernel.org/r/20190903154906.188651-1-balsini@android.comSigned-off-by: default avatarAlessio Balsini <balsini@android.com>
Acked-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3d82191c
...@@ -120,8 +120,7 @@ static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) ...@@ -120,8 +120,7 @@ static inline void *proc_sys_poll_event(struct ctl_table_poll *poll)
struct ctl_table_poll name = __CTL_TABLE_POLL_INITIALIZER(name) struct ctl_table_poll name = __CTL_TABLE_POLL_INITIALIZER(name)
/* A sysctl table is an array of struct ctl_table: */ /* A sysctl table is an array of struct ctl_table: */
struct ctl_table struct ctl_table {
{
const char *procname; /* Text ID for /proc/sys, or zero */ const char *procname; /* Text ID for /proc/sys, or zero */
void *data; void *data;
int maxlen; int maxlen;
...@@ -140,8 +139,7 @@ struct ctl_node { ...@@ -140,8 +139,7 @@ struct ctl_node {
/* struct ctl_table_header is used to maintain dynamic lists of /* struct ctl_table_header is used to maintain dynamic lists of
struct ctl_table trees. */ struct ctl_table trees. */
struct ctl_table_header struct ctl_table_header {
{
union { union {
struct { struct {
struct ctl_table *ctl_table; struct ctl_table *ctl_table;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment