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: <dlstevens@...>
Cc: <davem@...>, <netdev@...>, <yoshfuji@...>
Date: Saturday, April 26, 2008 - 1:09 am

In article <OF326F3AF9.7322F5FB-ON88257437.00174874-88257437.00194F7B@us.ibm.com> (at Fri, 25 Apr 2008 21:36:29 -0700), David Stevens <dlstevens@us.ibm.com> says:


__compat_sockaddr_storage{} is intended for defining **self-containing**
sockaddr_stroage{} aligned like 32bit archs - aligned(4).

Even your code - sockaddr_storage{} might be aligned on 64bit even on
32bit archs.  If the alignment rules of 32bit were different between
32bit and 64bit, most (if not all) compat layers must have been changed.
See?

The attribute((packed)) is overkill and evil.  Please remove that.
Per-member attribute is ugly and the definition is not self-contained.
So, please define __compat_sockaddr_storage{}.

--yoshfuji
--
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 ..., 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