Bug 15711

Summary: /sys/alpha/alpha/autoconf.c lacks inclusion on opt_nfs.h
Product: Base System Reporter: Wilko Bulte <wilko>
Component: alphaAssignee: freebsd-alpha (Nobody) <alpha>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Wilko Bulte 1999-12-27 07:20:01 UTC
	/sys/alpha/alpha/autoconf.c does not have opt_nfs.h included.
 	This makes the following code a NO-OP:

void
cpu_rootconf()
{
        int     order = 0; 
#if defined(NFS) && defined(NFS_ROOT)
#if !defined(BOOTP_NFSROOT)
        if (nfs_diskless_valid) 
#endif 
                rootdevnames[order++] = "nfs:";
#endif 

	An NFS root is therefore never considered by the kernel.

Fix: 

Add:

	#include "opt_nfs.h"
How-To-Repeat: 
	Any kernel built with options NFS and options NFS_ROOT
Comment 1 Peter Wemm freebsd_committer freebsd_triage 1999-12-27 07:51:14 UTC
State Changed
From-To: open->closed

#include "opt_nfs.h" added 
/home/ncvs/src/sys/alpha/alpha/autoconf.c,v  <--  autoconf.c 
new revision: 1.37; previous revision: 1.36