Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2014 11:12:13 -0800
From:      Justin Hibbits <jrh29@alumni.cwru.edu>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Build failure on PowerPC in pf
Message-ID:  <CAHSQbTC2Cy1KE3itH1B0N6e=J2qKE59sqeycV8CxrUzVUh86XA@mail.gmail.com>
In-Reply-To: <CAHSQbTAT4qkf_rGvUVqOsxT5OvxZYbhuavrrp4GNieA6Pt6-UQ@mail.gmail.com>
References:  <CAHSQbTAT4qkf_rGvUVqOsxT5OvxZYbhuavrrp4GNieA6Pt6-UQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 26, 2014 at 10:32 AM, Justin Hibbits <jrh29@alumni.cwru.edu> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTC2Cy1KE3itH1B0N6e=J2qKE59sqeycV8CxrUzVUh86XA>