lkml.org 
[lkml]   [2006]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[-mm patch] kernel/params.c: make param_array() static
    On Fri, Feb 24, 2006 at 03:10:02AM -0800, Andrew Morton wrote:
    >...
    > Changes since 2.6.16-rc4-mm1:
    >...
    > +remove-module_parm.patch
    >...
    > Current 2.6.16 queue. Some of these are a bit questionable at this stage.
    >...


    param_array() in kernel/params.c can now become static.


    Signed-off-by: Adrian Bunk <bunk@stusta.de>

    ---

    include/linux/moduleparam.h | 7 -------
    kernel/params.c | 12 ++++++------
    2 files changed, 6 insertions(+), 13 deletions(-)

    --- linux-2.6.16-rc4-mm2-full/include/linux/moduleparam.h.old 2006-02-25 04:39:11.000000000 +0100
    +++ linux-2.6.16-rc4-mm2-full/include/linux/moduleparam.h 2006-02-25 04:40:01.000000000 +0100
    @@ -162,13 +162,6 @@
    extern int param_set_copystring(const char *val, struct kernel_param *kp);
    extern int param_get_string(char *buffer, struct kernel_param *kp);

    -int param_array(const char *name,
    - const char *val,
    - unsigned int min, unsigned int max,
    - void *elem, int elemsize,
    - int (*set)(const char *, struct kernel_param *kp),
    - int *num);
    -
    /* for exporting parameters in /sys/parameters */

    struct module;
    --- linux-2.6.16-rc4-mm2-full/kernel/params.c.old 2006-02-25 04:40:07.000000000 +0100
    +++ linux-2.6.16-rc4-mm2-full/kernel/params.c 2006-02-25 04:42:55.000000000 +0100
    @@ -265,12 +265,12 @@
    }

    /* We cheat here and temporarily mangle the string. */
    -int param_array(const char *name,
    - const char *val,
    - unsigned int min, unsigned int max,
    - void *elem, int elemsize,
    - int (*set)(const char *, struct kernel_param *kp),
    - int *num)
    +static int param_array(const char *name,
    + const char *val,
    + unsigned int min, unsigned int max,
    + void *elem, int elemsize,
    + int (*set)(const char *, struct kernel_param *kp),
    + int *num)
    {
    int ret;
    struct kernel_param kp;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-02-25 14:20    [W:0.026 / U:29.640 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site