mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: Clemens Ladisch <clemens@ladisch.de>,
	Arnd Bergmann <arnd@arndb.de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Corey Minyard <minyard@acm.org>, "Theodore Ts'o" <tytso@mit.edu>,
	linux-kernel@vger.kernel.org,
	openipmi-developer@lists.sourceforge.net
Subject: [Trivial PATCH 10/33] char: Convert use of typedef ctl_table to struct ctl_table
Date: Thu, 13 Jun 2013 19:37:35 -0700	[thread overview]
Message-ID: <0103adcfc150f4e50516580da0002d7e32be3de0.1371177118.git.joe@perches.com> (raw)
In-Reply-To: <cover.1371177118.git.joe@perches.com>

This typedef is unnecessary and should just be removed.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/char/hpet.c               | 6 +++---
 drivers/char/ipmi/ipmi_poweroff.c | 6 +++---
 drivers/char/random.c             | 8 ++++----
 drivers/char/rtc.c                | 6 +++---
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index d784650..448ce5e 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -725,7 +725,7 @@ static int hpet_is_known(struct hpet_data *hdp)
 	return 0;
 }
 
-static ctl_table hpet_table[] = {
+static struct ctl_table hpet_table[] = {
 	{
 	 .procname = "max-user-freq",
 	 .data = &hpet_max_freq,
@@ -736,7 +736,7 @@ static ctl_table hpet_table[] = {
 	{}
 };
 
-static ctl_table hpet_root[] = {
+static struct ctl_table hpet_root[] = {
 	{
 	 .procname = "hpet",
 	 .maxlen = 0,
@@ -746,7 +746,7 @@ static ctl_table hpet_root[] = {
 	{}
 };
 
-static ctl_table dev_root[] = {
+static struct ctl_table dev_root[] = {
 	{
 	 .procname = "dev",
 	 .maxlen = 0,
diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index 2efa176..9f2e3be 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -659,7 +659,7 @@ static struct ipmi_smi_watcher smi_watcher = {
 #ifdef CONFIG_PROC_FS
 #include <linux/sysctl.h>
 
-static ctl_table ipmi_table[] = {
+static struct ctl_table ipmi_table[] = {
 	{ .procname	= "poweroff_powercycle",
 	  .data		= &poweroff_powercycle,
 	  .maxlen	= sizeof(poweroff_powercycle),
@@ -668,14 +668,14 @@ static ctl_table ipmi_table[] = {
 	{ }
 };
 
-static ctl_table ipmi_dir_table[] = {
+static struct ctl_table ipmi_dir_table[] = {
 	{ .procname	= "ipmi",
 	  .mode		= 0555,
 	  .child	= ipmi_table },
 	{ }
 };
 
-static ctl_table ipmi_root_table[] = {
+static struct ctl_table ipmi_root_table[] = {
 	{ .procname	= "dev",
 	  .mode		= 0555,
 	  .child	= ipmi_dir_table },
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 35487e8..0d91fe5 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1381,10 +1381,10 @@ static char sysctl_bootid[16];
  * as an ASCII string in the standard UUID format.  If accesses via the
  * sysctl system call, it is returned as 16 bytes of binary data.
  */
-static int proc_do_uuid(ctl_table *table, int write,
+static int proc_do_uuid(struct ctl_table *table, int write,
 			void __user *buffer, size_t *lenp, loff_t *ppos)
 {
-	ctl_table fake_table;
+	struct ctl_table fake_table;
 	unsigned char buf[64], tmp_uuid[16], *uuid;
 
 	uuid = table->data;
@@ -1409,8 +1409,8 @@ static int proc_do_uuid(ctl_table *table, int write,
 }
 
 static int sysctl_poolsize = INPUT_POOL_WORDS * 32;
-extern ctl_table random_table[];
-ctl_table random_table[] = {
+extern struct ctl_table random_table[];
+struct ctl_table random_table[] = {
 	{
 		.procname	= "poolsize",
 		.data		= &sysctl_poolsize,
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c
index 91470fd..c0cbbd4 100644
--- a/drivers/char/rtc.c
+++ b/drivers/char/rtc.c
@@ -280,7 +280,7 @@ static irqreturn_t rtc_interrupt(int irq, void *dev_id)
 /*
  * sysctl-tuning infrastructure.
  */
-static ctl_table rtc_table[] = {
+static struct ctl_table rtc_table[] = {
 	{
 		.procname	= "max-user-freq",
 		.data		= &rtc_max_user_freq,
@@ -291,7 +291,7 @@ static ctl_table rtc_table[] = {
 	{ }
 };
 
-static ctl_table rtc_root[] = {
+static struct ctl_table rtc_root[] = {
 	{
 		.procname	= "rtc",
 		.mode		= 0555,
@@ -300,7 +300,7 @@ static ctl_table rtc_root[] = {
 	{ }
 };
 
-static ctl_table dev_root[] = {
+static struct ctl_table dev_root[] = {
 	{
 		.procname	= "dev",
 		.mode		= 0555,
-- 
1.8.1.2.459.gbcd45b4.dirty


  parent reply	other threads:[~2013-06-14  2:39 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14  2:37 [Trivial PATCH 00/33] Remove uses of typedef ctl_table Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 01/33] arm: kernel: isa: Convert use of typedef ctl_table to struct ctl_table Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 02/33] frv: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 03/33] ia64: crash: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 04/33] mips: lasat: sysctl: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 05/33] powerpc: idle: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 06/33] s390: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 07/33] tile: proc: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 08/33] x86: vdso: " Joe Perches
2013-06-19 18:43   ` [tip:x86/asm] x86/vdso: " tip-bot for Joe Perches
2013-06-19 18:47     ` H. Peter Anvin
2013-06-19 19:05       ` Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 09/33] cdrom: " Joe Perches
2013-06-14  2:37 ` Joe Perches [this message]
2013-06-14  2:37 ` [Trivial PATCH 11/33] infiniband: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 12/33] macintosh: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 13/33] md: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 14/33] sgi: xpc: " Joe Perches
2013-06-14  2:53   ` Robin Holt
2013-06-14  2:37 ` [Trivial PATCH 15/33] parport: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 16/33] scsi_sysctl: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 17/33] coda: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 18/33] fscache: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 19/33] lockd: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 20/33] nfs: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 21/33] inotify: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 22/33] ntfs: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 23/33] ocfs2: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 24/33] quota: " Joe Perches
2013-06-21 12:59   ` Jan Kara
2013-06-14  2:37 ` [Trivial PATCH 25/33] xfs: " Joe Perches
2013-06-14  5:21   ` Dave Chinner
2013-06-14  5:33     ` Joe Perches
2013-06-14  6:18       ` Dave Chinner
2013-06-17 22:39         ` Ben Myers
2013-06-14  2:37 ` [Trivial PATCH 26/33] fs: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 27/33] key: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 28/33] ipv6: " Joe Perches
2013-06-20  6:18   ` David Miller
2013-06-14  2:37 ` [Trivial PATCH 29/33] ndisc: " Joe Perches
2013-06-20  6:18   ` David Miller
2013-06-14  2:37 ` [Trivial PATCH 30/33] ipc: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 31/33] sysctl: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 32/33] mm: " Joe Perches
2013-06-14  2:37 ` [Trivial PATCH 33/33] security: keys: " Joe Perches
2013-06-14  8:57 ` [Trivial PATCH 02/33] frv: " David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0103adcfc150f4e50516580da0002d7e32be3de0.1371177118.git.joe@perches.com \
    --to=joe@perches.com \
    --cc=arnd@arndb.de \
    --cc=clemens@ladisch.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minyard@acm.org \
    --cc=openipmi-developer@lists.sourceforge.net \
    --cc=trivial@kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®