netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: define __packed for the userspace code
@ 2010-08-22 11:12 Changli Gao
  2010-08-22 11:23 ` Changli Gao
  0 siblings, 1 reply; 8+ messages in thread
From: Changli Gao @ 2010-08-22 11:12 UTC (permalink / raw)
  To: David S. Miller; +Cc: Eric Dumazet, linux-kernel, netdev, Changli Gao

This commit

 commit bc10502dba37d3b210efd9f3867212298f13b78e
 Author: Eric Dumazet <eric.dumazet@gmail.com>
 Date:   Thu Jun 3 03:21:52 2010 -0700

    net: use __packed annotation

makes use of __packed in the userspace code. So we'd better define __packed
for the userspace code too.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
---
 include/linux/compiler.h |    4 ++++
 include/linux/if_pppox.h |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index c1a62c5..515b174 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -304,4 +304,8 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
  */
 #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
 
+#ifndef __packed
+# define __packed __attribute__((packed))
+#endif
+
 #endif /* __LINUX_COMPILER_H */

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-23  4:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-22 11:12 [PATCH] net: define __packed for the userspace code Changli Gao
2010-08-22 11:23 ` Changli Gao
2010-08-22 13:07   ` Arnd Bergmann
2010-08-22 13:47     ` Changli Gao
2010-08-23  1:36       ` David Miller
2010-08-23  2:29         ` Changli Gao
2010-08-23  2:36           ` David Miller
2010-08-23  4:16             ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).