From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CB8DC43603 for ; Thu, 5 Dec 2019 00:50:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 12EF12077B for ; Thu, 5 Dec 2019 00:50:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="GjqV+eCi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12EF12077B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BBB846B0D79; Wed, 4 Dec 2019 19:50:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B6C026B0D7A; Wed, 4 Dec 2019 19:50:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A5A1F6B0D7B; Wed, 4 Dec 2019 19:50:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0094.hostedemail.com [216.40.44.94]) by kanga.kvack.org (Postfix) with ESMTP id 8FD7B6B0D79 for ; Wed, 4 Dec 2019 19:50:16 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 5F5E13CF6 for ; Thu, 5 Dec 2019 00:50:16 +0000 (UTC) X-FDA: 76229256432.15.test69_257285f1b927 X-HE-Tag: test69_257285f1b927 X-Filterd-Recvd-Size: 2833 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Thu, 5 Dec 2019 00:50:15 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 08B0A21744; Thu, 5 Dec 2019 00:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575507015; bh=sgqpxtUhLOzeLPpB3TT7I+gYc7rL1qy3d8lOXyVxbS8=; h=Date:From:To:Subject:In-Reply-To:From; b=GjqV+eCiZT1PBjUt64LJnKOEpWTT6qqM3CctW/zvXhys/2VA22vT6lPcD5OhBI4t1 A+Vqcgean6Y3vnhMvkMXP1DVAixgjHYy/4d+gxcjuqzjLdAJvGnPztZffxve8QcgvL LNrxt5kN+z56rjJJ+WRyNFCC2irzAZkzIVcPsel0= Date: Wed, 04 Dec 2019 16:50:14 -0800 From: Andrew Morton To: akpm@linux-foundation.org, balsini@android.com, keescook@chromium.org, linux-mm@kvack.org, mcgrof@kernel.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 11/86] include/linux/sysctl.h: inline braces for ctl_table and ctl_table_header Message-ID: <20191205005014.tRP2ZQfUB%akpm@linux-foundation.org> In-Reply-To: <20191204164858.fe4ed8886e34ad9f3b34ea00@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Alessio Balsini Subject: 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.com Signed-off-by: Alessio Balsini Acked-by: Luis Chamberlain Cc: Kees Cook Signed-off-by: Andrew Morton --- include/linux/sysctl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/include/linux/sysctl.h~sysctl-inline-braces-for-ctl_table-and-ctl_table_header +++ a/include/linux/sysctl.h @@ -120,8 +120,7 @@ static inline void *proc_sys_poll_event( 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; @@ -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; _