[parisc-linux] warning: long unsigned int format, time_t arg

Matthew Wilcox willy@debian.org
Sun, 21 Sep 2003 20:32:29 +0100


On Sun, Sep 21, 2003 at 03:16:23PM -0400, John David Anglin wrote:
> > > /* Note these change from narrow to wide kernels */
> > > #ifdef __LP64__
> > > typedef unsigned long           __kernel_size_t;
> > > typedef long                    __kernel_ssize_t;
> > > typedef long                    __kernel_ptrdiff_t;
> > > typedef long                    __kernel_time_t;
> > > #else
> > > typedef unsigned int            __kernel_size_t;
> > > typedef int                     __kernel_ssize_t;
> > > typedef int                     __kernel_ptrdiff_t;
> > > typedef int                     __kernel_time_t;
> > > #endif
> > > 
> > > On narrow kernels, int and long are the same.  So, why not use long
> > > for both narrow and wide?  Then, the ifdef can be eliminated.
> > 
> > I think it's because gcc complains ;-)
> 
> Possibly, but the pa seems to be about the only port doing this.

We're one of the few ports that builds both 32 and 64 bits from the same
port (actually, we were the first).  MIPS recently converted, and S390
before them.  PPC might in the future, and I doubt Sparc ever will.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk