login
Header Space

 
 

Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kernels.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@...>
Cc: <davem@...>, <netdev@...>, <yoshfuji@...>
Date: Saturday, April 26, 2008 - 12:36 am

YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> wrote on 04/25/2008 
08:33:59 PM:


        I just tried it and the compiler seems to do that for this case,
but the gcc documentation says explicitly that you need both packed and
aligned if you want it to be a specific value. aligned(4) is a minimum
only and the compiler would be free to add pad still as long as the
padded value was also 4-byte aligned.
        In this case, we want no pad, so packed is the relevant part. If
had a char followed by a struct as in your previous example, the right
way to get 4-byte alignment is both aligned(4) and packed. Leaving off
packed would allow 8-byte or 16-byte (or 12 :-)) alignment, too.

*, 

        This code is for both v4 and v6, so I'd rather it not be in
net/ipv4/compat.c. I didn't try without CONFIG_INET, -- will look
at that.


        I don't understand this comment. If you're suggesting I
put these in an include file, I didn't because this is the only
file that uses them and I don't want them to be visible to any
other code. If you mean something else, please explain.


        I'll look at it.

                                thanks!

                                        +-DLS


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kern..., YOSHIFUJI Hideaki / , (Thu Apr 24, 4:02 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 2:37 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 2:59 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 3:24 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 1:14 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 11:33 pm)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., David Stevens, (Sat Apr 26, 12:36 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 1:09 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 12:53 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 1:56 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 1:38 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 4:16 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 2:46 pm)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 4:43 pm)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 5:28 am)
speck-geostationary