Skip to contentSkip to conversation

Fix pragma packing in ip2 driver

PATCH New David Howells 1 participant 1 message Jan 4, 2006 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix pragma packing in ip2 driver

The attached patch 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.

---
warthog>diffstat -p1 ip2-pragma-2615rc5.diff

 drivers/char/ip2/i2pack.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/char/ip2/i2pack.h +1 -1
diff -urp linux-2.6.15-rc5/drivers/char/ip2/i2pack.h linux-2.6.15-rc5-frv/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_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