[2.6 patch] make selinux_write_opts() static - Kernel

This is a discussion on [2.6 patch] make selinux_write_opts() static - Kernel ; This patch makes the needlessly global selinux_write_opts() static. Signed-off-by: Adrian Bunk --- b75a9f11d832d4f819b69f02b615c53889faec09 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 63f131f..3179e40 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -957,7 +957,8 @@ out_err: return rc; } -void selinux_write_opts(struct seq_file *m, struct security_mnt_opts *opts) +static ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [2.6 patch] make selinux_write_opts() static

  1. [2.6 patch] make selinux_write_opts() static

    This patch makes the needlessly global selinux_write_opts() static.

    Signed-off-by: Adrian Bunk

    ---
    b75a9f11d832d4f819b69f02b615c53889faec09
    diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
    index 63f131f..3179e40 100644
    --- a/security/selinux/hooks.c
    +++ b/security/selinux/hooks.c
    @@ -957,7 +957,8 @@ out_err:
    return rc;
    }

    -void selinux_write_opts(struct seq_file *m, struct security_mnt_opts *opts)
    +static void selinux_write_opts(struct seq_file *m,
    + struct security_mnt_opts *opts)
    {
    int i;
    char *prefix;

    --
    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/

  2. Re: [2.6 patch] make selinux_write_opts() static

    On Tue, 22 Jul 2008, Adrian Bunk wrote:

    > This patch makes the needlessly global selinux_write_opts() static.
    >
    > Signed-off-by: Adrian Bunk


    Thanks.

    Applied to
    git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#devel

    --
    James Morris

    --
    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/

+ Reply to Thread