Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2018 06:50:34 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r336083 - stable/11/sys/kern
Message-ID:  <201807080650.w686oYAh063506@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Jul  8 06:50:34 2018
New Revision: 336083
URL: https://svnweb.freebsd.org/changeset/base/336083

Log:
  MFC r335980:
  Silence warnings about unused variables when RACCT is defined but RCTL
  is not.

Modified:
  stable/11/sys/kern/kern_jail.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_jail.c
==============================================================================
--- stable/11/sys/kern/kern_jail.c	Sun Jul  8 06:49:11 2018	(r336082)
+++ stable/11/sys/kern/kern_jail.c	Sun Jul  8 06:50:34 2018	(r336083)
@@ -3940,8 +3940,10 @@ prison_racct_attach(struct prison *pr)
 static void
 prison_racct_modify(struct prison *pr)
 {
+#ifdef RCTL
 	struct proc *p;
 	struct ucred *cred;
+#endif
 	struct prison_racct *oldprr;
 
 	ASSERT_RACCT_ENABLED();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807080650.w686oYAh063506>