Skip to content

Commit

Permalink
[PATCH] Fix pragma packing in ip2 driver
Browse files Browse the repository at this point in the history
This fixes the pragma packing in the ip2 driver by popping the previous
setting rather than explicitly assuming that the correct setting is 4.

This also gets around a compiler bug in the FRV compiler when building
allmodconfig.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
David Howells authored and Linus Torvalds committed Jan 4, 2006
1 parent 8802684 commit a020ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/ip2/i2pack.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ typedef struct _failStat
#define MB_OUT_STRIPPED 0x40 // Board has read all output from fifo
#define MB_FATAL_ERROR 0x20 // Board has encountered a fatal error

#pragma pack(4) // Reset padding to command-line default
#pragma pack() // Reset padding to command-line default

#endif // I2PACK_H

0 comments on commit a020ff4

Please sign in to comment.