32-bit compile warning
Brandon Philips
brandon at ifup.org
Thu Apr 3 17:24:50 PDT 2008
On 16:19 Thu 03 Apr 2008, Zach Brown wrote:
> Alex Chiang wrote:
> > * Brandon Philips <brandon at ifup.org>:
> >> I am unsure of how to fix up the casting to make GCC quiet on this one.
> >>
> >> CC [M] /home/philips/projects/crfs/lk/super.o
> >> /home/philips/projects/crfs/lk/super.c: In function ???crfs_fill_super???:
> >> /home/philips/projects/crfs/lk/super.c:113: warning: cast to pointer from integer of different size
> >
> > Hrm, that looks a little scary. Casting a 64 bit pointer to a 32
> > bit value?
>
> Yeah. Using a fixed-width field for the pointer avoids having to deal
> with compat junk that would be needed if we had a raw pointer in there.
Nope that doesn't work either.
More information about the crfs-devel
mailing list