lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 12 Nov 2014 15:55:05 +0000
From:	Brian Haslett <knotwurk@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	trivial@...nel.org
Subject: PATCH kernel/acct.c to fix compiler warning

This is the warning:
kernel/acct.c: In function 'do_acct_process':
kernel/acct.c:475:24: warning: unused variable 'ns' [-Wunused-variable]
  struct pid_namespace *ns = acct->ns;

and this is the patch..:
.
Signed-off-by: Brian P. Haslett <knotwurk@...il.com>
--- a/kernel/acct.c 2014-11-11 10:25:49.000000000 +0000
+++ b/kernel/acct.c 2014-11-11 10:25:40.000000000 +0000
@@ -472,7 +472,9 @@ static void do_acct_process(struct bsd_a
    acct_t ac;
    unsigned long flim;
    const struct cred *orig_cred;
+#if ACCT_VERSION == 3
    struct pid_namespace *ns = acct->ns;
+#endif
    struct file *file = acct->file;

    /*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists