[RFC][PATCH] compat_uint64_t type
Andreas Schwab
schwab at suse.de
Mon Apr 17 16:05:23 CEST 2006
Dmitry Mishin <dim at openvz.org> writes:
> On Monday 17 April 2006 15:51, Andreas Schwab wrote:
>> Dmitry Mishin <dim at openvz.org> writes:
>> > diff --git a/include/asm-ia64/compat.h b/include/asm-ia64/compat.h
>> > index 40d01d8..3e6417b 100644
>> > --- a/include/asm-ia64/compat.h
>> > +++ b/include/asm-ia64/compat.h
>> > @@ -34,6 +34,8 @@ typedef s32 compat_long_t;
>> > typedef u32 compat_uint_t;
>> > typedef u32 compat_ulong_t;
>> >
>> > +typedef u64 __attribute__((aligned(4))) compat_uint64_t;
>>
>> The aligned attribute cannot decrease alignment.
> With my gcc (3.3.5) it can.
You're right, this is a special case (in general it can't without the
packed attribute).
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the netfilter-devel
mailing list