[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1320882969.6923.29.camel@Joe-Laptop>
Date: Wed, 09 Nov 2011 15:56:09 -0800
From: Joe Perches <joe@...ches.com>
To: David Miller <davem@...emloft.net>
Cc: steffen.klassert@...unet.com, netdev@...r.kernel.org,
timo.teras@....fi
Subject: Re: dst->obsolete has become pointless
On Wed, 2011-11-09 at 14:20 -0500, David Miller wrote:
> From: Joe Perches <joe@...ches.com>
> Date: Wed, 09 Nov 2011 04:49:08 -0800
>
> > On Tue, 2011-11-08 at 13:59 -0500, David Miller wrote:
> >> net: Kill pointless and misleading checks on dst->obsolete.
> > []
> >> Therefore rename it to dst->freed, and make it take on only the values
> >> "0" and "1".
> >> diff --git a/include/net/dst.h b/include/net/dst.h
> > []
> >> @@ -55,7 +55,7 @@ struct dst_entry {
> >> #define DST_NOCOUNT 0x0020
> >>
> >> short error;
> >> - short obsolete;
> >> + unsigned short freed;
> >
> > perhaps
> > bool freed;
> > bool __pad3;
> > just to mark the available space a bit more obviously.
>
> Hmmm, what is a bool's defined type anyways? It is a char on every
> architecture and ABI?
As far as I know, other than being large enough to
store a 1 and 0, it's implementation defined.
Just like an unsigned short.
I _believe_ gcc uses unsigned char width for
_Bool in all normal cases though.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists