From owner-freebsd-doc@FreeBSD.ORG Mon Aug 30 13:10:05 2010 Return-Path: Delivered-To: freebsd-docs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E679A106566C for ; Mon, 30 Aug 2010 13:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D69188FC21 for ; Mon, 30 Aug 2010 13:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7UDA5WP013114 for ; Mon, 30 Aug 2010 13:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7UDA5BP013107; Mon, 30 Aug 2010 13:10:05 GMT (envelope-from gnats) Date: Mon, 30 Aug 2010 13:10:05 GMT Message-Id: <201008301310.o7UDA5BP013107@freefall.freebsd.org> To: freebsd-docs@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/124111: commit references a PR X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2010 13:10:06 -0000 The following reply was made to PR kern/124111; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/124111: commit references a PR Date: Mon, 30 Aug 2010 13:08:27 +0000 (UTC) Author: tijl Date: Mon Aug 30 13:08:13 2010 New Revision: 211995 URL: http://svn.freebsd.org/changeset/base/211995 Log: MFC r182959: Remove warning about static LDT segment allocation. Applications continue using it after ~7 years since warning was introduced, and there is no reason to discourage them. PR: kern/124111 Approved by: kib (mentor) Modified: stable/6/sys/i386/i386/sys_machdep.c Directory Properties: stable/6/sys/ (props changed) stable/6/sys/contrib/pf/ (props changed) stable/6/sys/dev/cxgb/ (props changed) Modified: stable/6/sys/i386/i386/sys_machdep.c ============================================================================== --- stable/6/sys/i386/i386/sys_machdep.c Mon Aug 30 13:05:21 2010 (r211994) +++ stable/6/sys/i386/i386/sys_machdep.c Mon Aug 30 13:08:13 2010 (r211995) @@ -500,9 +500,6 @@ i386_get_ldt(td, uap) return(error); } -static int ldt_warnings; -#define NUM_LDT_WARNINGS 10 - int i386_set_ldt(td, uap, descs) struct thread *td; @@ -549,12 +546,6 @@ i386_set_ldt(td, uap, descs) } if (!(uap->start == LDT_AUTO_ALLOC && uap->num == 1)) { - /* complain a for a while if using old methods */ - if (ldt_warnings++ < NUM_LDT_WARNINGS) { - printf("Warning: pid %d used static ldt allocation.\n", - td->td_proc->p_pid); - printf("See the i386_set_ldt man page for more info\n"); - } /* verify range of descriptors to modify */ largest_ld = uap->start + uap->num; if (uap->start >= MAX_LD || _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"