NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/40001: Shared variable only defined for NFS client



>Number:         40001
>Category:       kern
>Synopsis:       Shared variable only defined for NFS client
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 22 07:55:00 +0000 2008
>Originator:     heasley
>Release:        NetBSD 5.99.01
>Organization:
        
>Environment:
        
        
System: NetBSD birch 5.99.01 NetBSD 5.99.01 (birch) #5: Wed Nov 12 02:04:37 UTC 
2008 root@birch:/sys/arch/amd64/compile/birch amd64
Architecture: x86_64
Machine: amd64
>Description:
A NFSSERVER only kernel does not compile because nuidhash_max is defined in
client-only code.
>How-To-Repeat:
        
>Fix:
Index: nfs_iod.c
===================================================================
RCS file: /cvsroot/src/sys/nfs/nfs_iod.c,v
retrieving revision 1.1
diff -u -r1.1 nfs_iod.c
--- nfs_iod.c   19 Nov 2008 18:36:09 -0000      1.1
+++ nfs_iod.c   22 Nov 2008 06:32:07 -0000
@@ -75,7 +75,7 @@
 #include <nfs/nfsrtt.h>
 #include <nfs/nfs_var.h>
 
-int nuidhash_max = NFS_MAXUIDHASH;
+extern int nuidhash_max;
 
 /*
  * locking order:
Index: nfs_subs.c
===================================================================
RCS file: /cvsroot/src/sys/nfs/nfs_subs.c,v
retrieving revision 1.210
diff -u -r1.210 nfs_subs.c
--- nfs_subs.c  19 Nov 2008 18:36:09 -0000      1.210
+++ nfs_subs.c  22 Nov 2008 06:32:08 -0000
@@ -116,6 +116,8 @@
 
 #include <netinet/in.h>
 
+int nuidhash_max = NFS_MAXUIDHASH;
+
 static u_int32_t nfs_xid;
 
 /*

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index