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: <netdev@...>, <netdev-owner@...>, <yoshfuji@...>
Date: Saturday, April 26, 2008 - 3:09 am

From: David Stevens <dlstevens@us.ibm.com>
Date: Sat, 26 Apr 2008 00:00:49 -0700


You're right about this point of course:

--------------------
struct foo {
	int a;
	unsigned long b;
};

struct foo_align4 {
	int a;
	unsigned long b;
} __attribute__((aligned(4)));

int main(void)
{
	printf("Normal: 'b' offset is %Zu\n",
	       __builtin_offsetof(struct foo, b));
	printf("Align4: 'b' offset is %Zu\n",
	       __builtin_offsetof(struct foo_align4, b));
	return 0;
}
--------------------

gives:

--------------------
Normal: 'b' offset is 8
Align4: 'b' offset is 8
--------------------

on sparc64.

So if we need to use packed because of that specific problem here,
fine.
--
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 Miller, (Sat Apr 26, 3:09 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