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
git: | |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Raimund Bauer | [wishlist] graphical diff |
| Paolo Ciarrocchi | git --version |
| Junio C Hamano | Re: Implementing branch attributes in git config |
| Renato S. Yamane | Error -71 on device descriptor read/all |
| Luke -Jr | Re: bcm33xx port |
| Rik van Riel | [PATCH -mm 00/24] VM pageout scalability improvements (V12) |
| Willy Tarreau | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| qw er | OpenBSD sucks |
| Predrag Punosevac | Re: cwm keybindings misbehavior |
| Steve B | Intel Atom and D945GCLF2 |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| C Wayne Huling | Re: Can males come from... |
| David Willmore | Re: Intel, the Pentium and Linux |
| Al Billings | Porting MUDS |
