浏览代码

ia64: convert use of typedef ctl_table to struct ctl_table

This typedef is unnecessary and should just be removed.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Joe Perches 11 年之前
父节点
当前提交
2841efa636
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      arch/ia64/kernel/crash.c
  2. 3 3
      arch/ia64/kernel/perfmon.c

+ 2 - 2
arch/ia64/kernel/crash.c

@@ -237,7 +237,7 @@ kdump_init_notifier(struct notifier_block *self, unsigned long val, void *data)
 }
 }
 
 
 #ifdef CONFIG_SYSCTL
 #ifdef CONFIG_SYSCTL
-static ctl_table kdump_ctl_table[] = {
+static struct ctl_table kdump_ctl_table[] = {
 	{
 	{
 		.procname = "kdump_on_init",
 		.procname = "kdump_on_init",
 		.data = &kdump_on_init,
 		.data = &kdump_on_init,
@@ -255,7 +255,7 @@ static ctl_table kdump_ctl_table[] = {
 	{ }
 	{ }
 };
 };
 
 
-static ctl_table sys_table[] = {
+static struct ctl_table sys_table[] = {
 	{
 	{
 	  .procname = "kernel",
 	  .procname = "kernel",
 	  .mode = 0555,
 	  .mode = 0555,

+ 3 - 3
arch/ia64/kernel/perfmon.c

@@ -521,7 +521,7 @@ static pmu_config_t		*pmu_conf;
 pfm_sysctl_t pfm_sysctl;
 pfm_sysctl_t pfm_sysctl;
 EXPORT_SYMBOL(pfm_sysctl);
 EXPORT_SYMBOL(pfm_sysctl);
 
 
-static ctl_table pfm_ctl_table[]={
+static struct ctl_table pfm_ctl_table[] = {
 	{
 	{
 		.procname	= "debug",
 		.procname	= "debug",
 		.data		= &pfm_sysctl.debug,
 		.data		= &pfm_sysctl.debug,
@@ -552,7 +552,7 @@ static ctl_table pfm_ctl_table[]={
 	},
 	},
 	{}
 	{}
 };
 };
-static ctl_table pfm_sysctl_dir[] = {
+static struct ctl_table pfm_sysctl_dir[] = {
 	{
 	{
 		.procname	= "perfmon",
 		.procname	= "perfmon",
 		.mode		= 0555,
 		.mode		= 0555,
@@ -560,7 +560,7 @@ static ctl_table pfm_sysctl_dir[] = {
 	},
 	},
  	{}
  	{}
 };
 };
-static ctl_table pfm_sysctl_root[] = {
+static struct ctl_table pfm_sysctl_root[] = {
 	{
 	{
 		.procname	= "kernel",
 		.procname	= "kernel",
 		.mode		= 0555,
 		.mode		= 0555,