Răsfoiți Sursa

[PATCH] Fix pragma packing in ip2 driver

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>
David Howells 19 ani în urmă
părinte
comite
a020ff412f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/char/ip2/i2pack.h

+ 1 - 1
drivers/char/ip2/i2pack.h

@@ -358,7 +358,7 @@ typedef struct _failStat
 #define MB_OUT_STRIPPED    0x40  // Board has read all output from fifo 
 #define MB_OUT_STRIPPED    0x40  // Board has read all output from fifo 
 #define MB_FATAL_ERROR     0x20  // Board has encountered a fatal error
 #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
 #endif      // I2PACK_H