lkml.org 
[lkml]   [2000]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] isa_{read,write}{w,l} fixed
From
Date
Russell King <rmk@arm.linux.org.uk> writes:

>
> Err, but that's not guaranteed to produce what you expect. Although GCC
> (and ANSI compilers) are not allowed to re-order the elements of a
> structure, they are allowed to add padding (unused bytes) between elements
> of the structure. (Yes, we've encountered this before).
>

If I don't miss, the __attribute__((packed)) should "take care" of this, no?

--
fg

# rm *;o
o: command not found

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.288 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site