lkml.org 
[lkml]   [2013]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 22/24] kernel: Convert use of typedef ctl_table to struct ctl_table
    Date
    This typedef is unnecessary and should just be removed.

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    kernel/sysctl.c | 2 +-
    kernel/utsname_sysctl.c | 6 +++---
    2 files changed, 4 insertions(+), 4 deletions(-)

    diff --git a/kernel/sysctl.c b/kernel/sysctl.c
    index bcb35ab..a083aeb 100644
    --- a/kernel/sysctl.c
    +++ b/kernel/sysctl.c
    @@ -192,7 +192,7 @@ static int proc_dostring_coredump(struct ctl_table *table, int write,
    /* Note: sysrq code uses it's own private copy */
    static int __sysrq_enabled = SYSRQ_DEFAULT_ENABLE;

    -static int sysrq_sysctl_handler(ctl_table *table, int write,
    +static int sysrq_sysctl_handler(struct ctl_table *table, int write,
    void __user *buffer, size_t *lenp,
    loff_t *ppos)
    {
    diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
    index 4f69f9a..09af144 100644
    --- a/kernel/utsname_sysctl.c
    +++ b/kernel/utsname_sysctl.c
    @@ -17,7 +17,7 @@

    #ifdef CONFIG_PROC_SYSCTL

    -static void *get_uts(ctl_table *table, int write)
    +static void *get_uts(struct ctl_table *table, int write)
    {
    char *which = table->data;
    struct uts_namespace *uts_ns;
    @@ -32,7 +32,7 @@ static void *get_uts(ctl_table *table, int write)
    return which;
    }

    -static void put_uts(ctl_table *table, int write, void *which)
    +static void put_uts(struct ctl_table *table, int write, void *which)
    {
    if (!write)
    up_read(&uts_sem);
    @@ -44,7 +44,7 @@ static void put_uts(ctl_table *table, int write, void *which)
    * Special case of dostring for the UTS structure. This has locks
    * to observe. Should this be in kernel/sys.c ????
    */
    -static int proc_do_uts_string(ctl_table *table, int write,
    +static int proc_do_uts_string(struct ctl_table *table, int write,
    void __user *buffer, size_t *lenp, loff_t *ppos)
    {
    struct ctl_table uts_table;
    --
    1.8.1.2.459.gbcd45b4.dirty


    \
     
     \ /
      Last update: 2013-10-23 01:21    [W:4.072 / U:0.176 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site