From owner-svn-src-user@FreeBSD.ORG Tue Mar 6 23:37:54 2012 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FDF2106566B; Tue, 6 Mar 2012 23:37:54 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6F9AD8FC17; Tue, 6 Mar 2012 23:37:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q26Nbsex062557; Tue, 6 Mar 2012 23:37:54 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q26NbsPM062555; Tue, 6 Mar 2012 23:37:54 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201203062337.q26NbsPM062555@svn.freebsd.org> From: Attilio Rao Date: Tue, 6 Mar 2012 23:37:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232631 - user/attilio/vmcontention/sys/vm X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2012 23:37:54 -0000 Author: attilio Date: Tue Mar 6 23:37:53 2012 New Revision: 232631 URL: http://svn.freebsd.org/changeset/base/232631 Log: Fix a compile time bug by adding a check just after the struct definition Modified: user/attilio/vmcontention/sys/vm/vm_radix.c Modified: user/attilio/vmcontention/sys/vm/vm_radix.c ============================================================================== --- user/attilio/vmcontention/sys/vm/vm_radix.c Tue Mar 6 23:08:02 2012 (r232630) +++ user/attilio/vmcontention/sys/vm/vm_radix.c Tue Mar 6 23:37:53 2012 (r232631) @@ -72,7 +72,6 @@ (((vm_pindex_t)1 << ((h) * VM_RADIX_WIDTH)) - 1)) CTASSERT(VM_RADIX_HEIGHT >= VM_RADIX_LIMIT); -CTASSERT(sizeof(struct vm_radix_node) < PAGE_SIZE); CTASSERT((sizeof(u_int) * NBBY) >= VM_RADIX_LIMIT); struct vm_radix_node { @@ -80,6 +79,8 @@ struct vm_radix_node { volatile uint32_t rn_count; /* Valid children. */ }; +CTASSERT(sizeof(struct vm_radix_node) < PAGE_SIZE); + static uma_zone_t vm_radix_node_zone; #ifndef UMA_MD_SMALL_ALLOC