Skip to content

Commit

Permalink
include/linux/sysctl.h: inline braces for ctl_table and ctl_table_header
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Alessio Balsini <[email protected]>
Acked-by: Luis Chamberlain <[email protected]>
Cc: Kees Cook <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
balsini authored and torvalds committed Dec 5, 2019
1 parent 3d82191 commit d5ffb71
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

/* 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 */
void *data;
int maxlen;
Expand All @@ -140,8 +139,7 @@ struct ctl_node {

/* struct ctl_table_header is used to maintain dynamic lists of
struct ctl_table trees. */
struct ctl_table_header
{
struct ctl_table_header {
union {
struct {
struct ctl_table *ctl_table;
Expand Down

0 comments on commit d5ffb71

Please sign in to comment.