Skip to content

Commit

Permalink
[PATCH] ARM: Fix new-ABI layout of struct stat64
Browse files Browse the repository at this point in the history
Add __attribute__((packed)) to ensure that the stat64 structure is
correctly laid out no matter which ABI the kernel is compiled for.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Jul 4, 2005
1 parent 68070bd commit 17af691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-arm/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ struct stat64 {
unsigned long st_ctime_nsec;

unsigned long long st_ino;
};
} __attribute__((packed));

#endif

0 comments on commit 17af691

Please sign in to comment.