From owner-svn-src-stable@freebsd.org Tue Apr 26 19:04:44 2016 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A001FB1CEB0 for ; Tue, 26 Apr 2016 19:04:44 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm8-vm0.bullet.mail.bf1.yahoo.com (nm8-vm0.bullet.mail.bf1.yahoo.com [98.139.213.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5745019D8 for ; Tue, 26 Apr 2016 19:04:44 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1461697481; bh=SK/AS5XKsUk3CVNC7iZ0jJ7EED5b0WqlutT+T+OACuo=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=IJ35yekmg6aPcDigMA4XB4uq7EsZiOkWs3s1tNxSH7n+R+X6pSIW+EzYRA+Vkkeq/ff0lXqgh3MQTEpfgi1PfrEHshSr0SBqUb9FrR2ESReo8TfF+blc+Mod2aFYPNbLsm4yKwSFqIwMvH8x4Y4mOboxWypYn5CU4D+a2losaln4HutpHAmuR/zN9RwdqU7wx/ugww+oHe01lxlGAsjVxEjq6BSLX3Z9X1gcwfaDT3w65HeYOx2gTBZbmcZY1br82phtENIRd8IDWb++t/x/4iOB0tuLXgfrGvSDBpqOqnocke1jDlr13nJCIjZ2ka0X3Sw2GUxcjv0RlH3Z+5sOhw== Received: from [66.196.81.173] by nm8.bullet.mail.bf1.yahoo.com with NNFMP; 26 Apr 2016 19:04:41 -0000 Received: from [68.142.230.72] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 26 Apr 2016 19:04:41 -0000 Received: from [127.0.0.1] by smtp229.mail.bf1.yahoo.com with NNFMP; 26 Apr 2016 19:04:41 -0000 X-Yahoo-Newman-Id: 580794.43182.bm@smtp229.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 8Oo1hMEVM1n4_WnrWksTuG2x4cTrowprsmMYJSb_NZVHmZK SFnoYOGkqROUizEZNLV_yCruVukBDJED8DHU4u9L34xgaQAId22q.A7iraMl eKSRQqev53DqLAKSrxyxB8eDgEE6OOrDff97C5HkzBhJGRx48euHDB_bM3yg QBeXEHcbXq8j4kG0sH4z39rJd79jr5Dm6QQW283m0hcnOrJ2AVfQDJXYrAo. gD72AO0Emg7rRNvoh4EazujLdH5OM6FkYQz4VNsD3xeSA4hbqA7AWOJgDmFg WyTE75t8W40qMGADuCctbj7GuPHiiBIKmf8xHxOl5UUTg_hvDiYU1K4fC6Mz apa_PsCgVgE5DznxjWLjghjrNEXjHeWXrWEX95H.gCUSltn_HrSKpii.uLuQ 9fBeWS9ikaadgduVnO_0hhPfe0CELtI0M59sqf3FTfunq13oCSQSHuLdIxRq DhI0zJMc89cO.JshB30eytiXFg4CkwFTSzYzz0FyhvewS9juw9MxlLUkYkS9 l.2jJDV.VHxECJIQif.S4ZANzgUMu1Gv3 X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: Re: svn: stable/10/sys: amd64/amd64 amd64/linux amd64/linux32 compat/linux dev/cxgbe/tom i386/linux vm To: Maxim Sobolev References: <201604261739.u3QHdtSd082499@repo.freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org From: Pedro Giffuni Message-ID: <64931143-1496-56b9-8dc7-f11cbb0c06ed@FreeBSD.org> Date: Tue, 26 Apr 2016 14:04:53 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2016 19:04:44 -0000 Hello On 04/26/16 13:42, Maxim Sobolev wrote: > Given the widespread use of those two macros, maybe we need howmany.9 > and roundup.9 manual pages with detailed formal description? > Particularly interested in how "return" supposed to be typed. Another > thing is that would be nice is some kind of automatic > #error/#warning/printf/KASSERT/panic when (X < Y || Y <= 0) & > defined(INVARIANTS). > > -Max > I agree, we need those documented. There's also rounddown, roundup2 and rounddown2. FWIW, I am tired of these massive replacements, and will likely take a break before trying rounddown. Pedro. > On Tue, Apr 26, 2016 at 10:39 AM, Pedro F. Giffuni > wrote: > > Author: pfg > Date: Tue Apr 26 17:39:54 2016 > New Revision: 298653 > URL: https://svnweb.freebsd.org/changeset/base/298653 > > Log: > MFC r298482: > Cleanup redundant parenthesis from existing howmany()/roundup() > macro uses. > > Requested by: dchagin > > Modified: > stable/10/sys/amd64/amd64/pmap.c > stable/10/sys/amd64/linux/linux_sysvec.c > stable/10/sys/amd64/linux32/linux32_sysvec.c > stable/10/sys/compat/linux/linux_file.c > stable/10/sys/dev/cxgbe/tom/t4_tom.c > stable/10/sys/i386/linux/linux_sysvec.c > stable/10/sys/vm/vm_radix.c > Directory Properties: > stable/10/ (props changed) >