From owner-svn-src-head@freebsd.org Fri Nov 13 08:17:20 2015 Return-Path: Delivered-To: svn-src-head@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 D61CFA2DE43; Fri, 13 Nov 2015 08:17:20 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9BCD11081; Fri, 13 Nov 2015 08:17:20 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5A0811FE022; Fri, 13 Nov 2015 09:17:11 +0100 (CET) Subject: Re: svn commit: r290711 - head/sys/ofed/drivers/infiniband/core To: cem@FreeBSD.org References: <201511121012.tACACKTI075143@repo.freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Hans Petter Selasky Message-ID: <56459CEE.4090007@selasky.org> Date: Fri, 13 Nov 2015 09:18:54 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 08:17:20 -0000 Hi, On 11/12/15 18:17, Conrad Meyer wrote: > These should cast through (u)intptr_t rather than unsigned long. > This is Linux code, and they use "unsigned long" for pointer casts everywhere, trying to not break their style. BTW: I added to linux_compat.c: CTASSERT(sizeof(unsigned long) == sizeof(uintptr_t)); And it survived my "tinderbox" build and I was surprised! --HPS