From owner-freebsd-current@FreeBSD.ORG Wed Feb 26 19:12:15 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A19634EE for ; Wed, 26 Feb 2014 19:12:15 +0000 (UTC) Received: from mail-ea0-x22e.google.com (mail-ea0-x22e.google.com [IPv6:2a00:1450:4013:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3731E1FE7 for ; Wed, 26 Feb 2014 19:12:15 +0000 (UTC) Received: by mail-ea0-f174.google.com with SMTP id h14so1195938eaj.33 for ; Wed, 26 Feb 2014 11:12:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=AMbRJsdO2AFqXA2m+rFJJWonX9H65zH3N2QGDadm/5g=; b=GHdbJN8sKi86jEMQDtJwCI2P4WOHpDOg2VUFMVhShCL2o7sf5qwBQI4p6kQRqNISX0 l5GNBa7YfQliLw3fmBmOlsPRBdDal0Kw5uWYCjTk+IbwbMccVUF4AfA3SfOOFF5wa2jD HQzq/nZCJZdBD7EfZJcXDnPg0A1vRYOvpYOXStZIGr9RovaUnfjN4YnWHXEbJU7+T2SG Vkofpjs/em5UkPNftSkUlyAZ9wDPf+lJNRAo+5xI4Pqa3xitg3JMabGUzcWWgzTtTPof U9V6srxiul8jHJfmsJkDUPAFUCgMSIh+1B9UOd/oC4qw8yJz39Vd/1Mr1cYy9ztEeR5S W1Eg== MIME-Version: 1.0 X-Received: by 10.204.244.199 with SMTP id lr7mr5369bkb.128.1393441933572; Wed, 26 Feb 2014 11:12:13 -0800 (PST) Sender: chmeeedalf@gmail.com Received: by 10.205.21.68 with HTTP; Wed, 26 Feb 2014 11:12:13 -0800 (PST) In-Reply-To: References: Date: Wed, 26 Feb 2014 11:12:13 -0800 X-Google-Sender-Auth: JabtD0-UwV0lcYr2-56mAj_f4xY Message-ID: Subject: Re: Build failure on PowerPC in pf From: Justin Hibbits To: FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 19:12:15 -0000 On Wed, Feb 26, 2014 at 10:32 AM, Justin Hibbits wrote: > Building on PowerPC I see the following failure: > > cc1: warnings being treated as errors > > /home/chmeee/freebsd/head/sys/modules/pf/../../netpfil/pf/pf_ioctl.c: > In function 'pfioctl': > /home/chmeee/freebsd/head/sys/modules/pf/../../netpfil/pf/pf_ioctl.c:1357:warning: > cast to pointer from integer of different size [-Wint-to-pointer-cast] > /home/chmeee/freebsd/head/sys/modules/pf/../../netpfil/pf/pf_ioctl.c:1359:warning: > cast to pointer from integer of different size [-Wint-to-pointer-cast] > /home/chmeee/freebsd/head/sys/modules/pf/../../netpfil/pf/pf_ioctl.c:1361:warning: > cast to pointer from integer of different size [-Wint-to-pointer-cast] > > struct pf_rule has counter_u64_t entries, which are actually pointers > to uint64_t's. These pointers get assigned from the result of > counter_u64_fetch(), which returns a uint64_t. Looks to me like > there's a bug in here, but I have no idea what to do to fix it. And > I'm surprised this hasn't been reported against other 32-bit > architectures. > > - Justin Replying to myself, it looks like this was broken by r261882. - Justin