NetBSD Problem Report #39752

From neswold@nezdev.fnal.gov  Thu Oct 16 23:09:03 2008
Return-Path: <neswold@nezdev.fnal.gov>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1417263BC83
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 16 Oct 2008 23:09:03 +0000 (UTC)
Message-Id: <20081016200900.D17701F87@nezdev.fnal.gov>
Date: Thu, 16 Oct 2008 15:09:00 -0500 (CDT)
From: neswold@fnal.gov
Reply-To: neswold@fnal.gov
To: gnats-bugs@gnats.NetBSD.org
Subject: Problem building NOSWAP kernel under 4.0.1.
X-Send-Pr-Version: 3.95

>Number:         39752
>Category:       kern
>Synopsis:       Cannot build a NOSWAP kernel for 4.0.1-RELEASE
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 16 23:10:00 +0000 2008
>Closed-Date:    Wed Jun 01 22:56:51 +0000 2016
>Last-Modified:  Wed Jun 01 22:56:51 +0000 2016
>Originator:     Richard Neswold
>Release:        NetBSD 4.0.1_RELEASE
>Organization:
	Fermi National Accelerator Laboratory
>Environment:
System: NetBSD nezdev.fnal.gov 4.0.0_PATCH NetBSD 4.0.0_PATCH (VME7805) #1: Fri Apr 25 14:29:20 CDT 2008 neswold@nezdev.fnal.gov:/usr/local/build/VME7805 i386
Architecture: i386
Machine: i386
>Description:
	I tried upgrading my 4.0.0_PATCH system to 4.0.1_RELEASE and had problems building
	the new kernel. This system is a VME processor board. It has 1GB RAM and a compact
	flash for a hard drive, so I didn't want to enable swapping. I was able to build
	a kernel under 4.0.0, but with the latest 4.0 source, the linker can't find
	uvmpd_trydropswap().:
>How-To-Repeat:
	Try to build a 4.0.1 kernel without swapping enabled (take "options VMSWAP" out of your
	kernel configuration.)
>Fix:
	I patched my source to remove the error. I set the function to always return FALSE when
	there's no swapping enabled -- indicating the slot wasn't freed. The patch is:

	Index: uvm/uvm_pdaemon.c
	===================================================================
	RCS file: /cvsroot/src/sys/uvm/uvm_pdaemon.c,v
	retrieving revision 1.80
	diff -d -w -b -d -w -u -b -r1.80 uvm_pdaemon.c
	--- uvm/uvm_pdaemon.c	1 Nov 2006 10:18:27 -0000	1.80
	+++ uvm/uvm_pdaemon.c	16 Oct 2008 19:56:10 -0000
	@@ -610,6 +610,20 @@
		return result;
	 }

	+#else
	+
	+/*
	+ * uvmpd_trydropswap: try to free any swap allocated to this page.
	+ *
	+ * => return TRUE if a slot is successfully freed.
	+ */
	+
	+boolean_t
	+uvmpd_trydropswap(struct vm_page *pg __attribute__((unused)))
	+{
	+	return FALSE;
	+}
	+
	 #endif /* defined(VMSWAP) */

	 /*

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Wed, 01 Jun 2016 22:56:51 +0000
State-Changed-Why:
Fixed differently by pooka@ on Sep 7 04:45:22 2010 UTC


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.