Module Name:    src
Committed By:   dholland
Date:           Mon Jul 29 16:40:46 UTC 2013

Modified Files:
        src/sys/ufs/lfs: lfs_vnops.c ulfs_quota2.c

Log Message:
Fix build both with and without options LFS_EI.


To generate a diff of this commit:
cvs rdiff -u -r1.256 -r1.257 src/sys/ufs/lfs/lfs_vnops.c
cvs rdiff -u -r1.12 -r1.13 src/sys/ufs/lfs/ulfs_quota2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/lfs/lfs_vnops.c
diff -u src/sys/ufs/lfs/lfs_vnops.c:1.256 src/sys/ufs/lfs/lfs_vnops.c:1.257
--- src/sys/ufs/lfs/lfs_vnops.c:1.256	Mon Jul 29 16:39:37 2013
+++ src/sys/ufs/lfs/lfs_vnops.c	Mon Jul 29 16:40:46 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: lfs_vnops.c,v 1.256 2013/07/29 16:39:37 dholland Exp $	*/
+/*	$NetBSD: lfs_vnops.c,v 1.257 2013/07/29 16:40:46 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.256 2013/07/29 16:39:37 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.257 2013/07/29 16:40:46 dholland Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -621,6 +621,7 @@ lfs_mknod(void *v)
 	if (vap->va_rdev != VNOVAL) {
 		struct ulfsmount *ump = ip->i_ump;
 		struct lfs *fs = ip->i_lfs;
+		(void)fs; /* temporary: needed when LFS_EI is off */
 		/*
 		 * Want to be able to use this to make badblock
 		 * inodes, so don't truncate the dev number.

Index: src/sys/ufs/lfs/ulfs_quota2.c
diff -u src/sys/ufs/lfs/ulfs_quota2.c:1.12 src/sys/ufs/lfs/ulfs_quota2.c:1.13
--- src/sys/ufs/lfs/ulfs_quota2.c:1.12	Mon Jul 29 16:39:37 2013
+++ src/sys/ufs/lfs/ulfs_quota2.c	Mon Jul 29 16:40:46 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ulfs_quota2.c,v 1.12 2013/07/29 16:39:37 dholland Exp $	*/
+/*	$NetBSD: ulfs_quota2.c,v 1.13 2013/07/29 16:40:46 dholland Exp $	*/
 /*  from NetBSD: ufs_quota2.c,v 1.35 2012/09/27 07:47:56 bouyer Exp  */
 /*  from NetBSD: ffs_quota2.c,v 1.4 2011/06/12 03:36:00 rmind Exp  */
 
@@ -29,7 +29,7 @@
   */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulfs_quota2.c,v 1.12 2013/07/29 16:39:37 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulfs_quota2.c,v 1.13 2013/07/29 16:40:46 dholland Exp $");
 
 #include <sys/buf.h>
 #include <sys/param.h>
@@ -308,6 +308,8 @@ quota2_q2ealloc(struct ulfsmount *ump, i
 	struct lfs *fs = ump->um_lfs;
 	const int needswap = ULFS_MPNEEDSWAP(fs);
 
+	(void)fs; /* temporary: needed when LFS_EI is off */
+
 	KASSERT(mutex_owned(&dq->dq_interlock));
 	KASSERT(mutex_owned(&lfs_dqlock));
 	error = getq2h(ump, type, &hbp, &q2h, B_MODIFY);
@@ -457,6 +459,8 @@ quota2_check(struct inode *ip, int vtype
 	const int needswap = ULFS_MPNEEDSWAP(fs);
 	int i;
 
+	(void)fs; /* temporary: needed when LFS_EI is off */
+
 	if ((error = getinoquota2(ip, change > 0, change != 0, bp, q2e)) != 0)
 		return error;
 	if (change == 0) {
@@ -593,6 +597,8 @@ lfsquota2_handle_cmd_put(struct ulfsmoun
 	struct lfs *fs = ump->um_lfs;
 	const int needswap = ULFS_MPNEEDSWAP(fs);
 
+	(void)fs; /* temporary: needed when LFS_EI is off */
+
 	/* make sure we can index by the fs-independent idtype */
 	CTASSERT(QUOTA_IDTYPE_USER == ULFS_USRQUOTA);
 	CTASSERT(QUOTA_IDTYPE_GROUP == ULFS_GRPQUOTA);
@@ -798,6 +804,8 @@ quota2_fetch_q2e(struct ulfsmount *ump, 
 	struct lfs *fs = ump->um_lfs;
 	const int needswap = ULFS_MPNEEDSWAP(fs);
 
+	(void)fs; /* temporary: needed when LFS_EI is off */
+
 	error = lfs_dqget(NULLVP, qk->qk_id, ump, qk->qk_idtype, &dq);
 	if (error)
 		return error;
@@ -835,6 +843,8 @@ quota2_fetch_quotaval(struct ulfsmount *
 	const int needswap = ULFS_MPNEEDSWAP(fs);
 	id_t id2;
 
+	(void)fs; /* temporary: needed when LFS_EI is off */
+
 	error = lfs_dqget(NULLVP, qk->qk_id, ump, qk->qk_idtype, &dq);
 	if (error)
 		return error;
@@ -874,6 +884,8 @@ lfsquota2_handle_cmd_get(struct ulfsmoun
 	const int needswap = ULFS_MPNEEDSWAP(fs);
 	id_t id2;
 
+	(void)fs; /* temporary: needed when LFS_EI is off */
+
 	/*
 	 * Make sure the FS-independent codes match the internal ones,
 	 * so we can use the passed-in objtype without having to
@@ -1134,6 +1146,8 @@ q2cursor_getkeys(struct ulfsmount *ump, 
 	uint64_t offset;
 	int error;
 
+	(void)fs; /* temporary: needed when LFS_EI is off */
+
 	/*
 	 * Read the header block.
 	 */

Reply via email to