login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
22
Re: [PATCH] net: define __packed for the userspace code
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Changli Gao
Subject:
Re: [PATCH] net: define __packed for the userspace code
Date: Sunday, August 22, 2010 - 6:47 am
On Sun, Aug 22, 2010 at 9:07 PM, Arnd Bergmann <arnd@arndb.de> wrote:
quoted text
> On Sunday 22 August 2010 13:23:42 Changli Gao wrote: >> On Sun, Aug 22, 2010 at 7:12 PM, Changli Gao <xiaosuo@gmail.com> wrote: >> > 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. >> > >> >> Oh, sorry. This patch can't work as include/linux/compiler.h isn't >> exported to the userspace. But where should we define __packed for the >> userspace code? include/linux/types.h? > > I would try to avoid making those structures packed to start with. > From what I can see, they structures annotated in the above commit > mostly don't even require explicit packing because they are already > packed. Not marking them packed makes the code portable to non-gcc > compilers. >
Maybe __packed is used somewhere to hint that some members of a structure maybe unaligned. -- Regards, Changli Gao(
xiaosuo@gmail.com
) --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] net: define __packed for the userspace code
, Changli Gao
, (Sun Aug 22, 4:12 am)
Re: [PATCH] net: define __packed for the userspace code
, Changli Gao
, (Sun Aug 22, 4:23 am)
Re: [PATCH] net: define __packed for the userspace code
, Arnd Bergmann
, (Sun Aug 22, 6:07 am)
Re: [PATCH] net: define __packed for the userspace code
, Changli Gao
, (Sun Aug 22, 6:47 am)
Re: [PATCH] net: define __packed for the userspace code
, David Miller
, (Sun Aug 22, 6:36 pm)
Re: [PATCH] net: define __packed for the userspace code
, David Miller
, (Sun Aug 22, 7:36 pm)
Re: [PATCH] net: define __packed for the userspace code
, David Miller
, (Sun Aug 22, 9:16 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Colocation donated by:
Syndicate