Skip to contentSkip to conversation

fdisk: remove packed definitions

PATCH Applied Davidlohr Bueso 2 participants 2 messages Dec 20, 2011 – Dec 22, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 fdisk: remove packed definitions

From: Davidlohr Bueso <[email protected]>

---
 fdisk/fdisk.h |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
fdisk/fdisk.h +0 -6
index 84be09c..d8832e9 100644
@@ -26,12 +26,6 @@
 #define cround(n)	(display_in_cyl_units ? ((n)/units_per_sector)+1 : (n))
 #define scround(x)	(((x)+units_per_sector-1)/units_per_sector)
 
-#if defined(__GNUC__) && (defined(__arm__) || defined(__alpha__))
-# define PACKED __attribute__ ((packed))
-#else
-# define PACKED
-#endif
-
 struct partition {
 	unsigned char boot_ind;         /* 0x80 - active */
 	unsigned char head;             /* starting head */
Signature · 1 line
1.7.4.1
#1 lore raw

Hi!

fdisk/fdisk.h line 31

Quoted 13 lines · Davidlohr Bueso
fdisk/fdisk.h +0 -6
@@ -26,12 +26,6 @@
 #define cround(n)	(display_in_cyl_units ? ((n)/units_per_sector)+1 : (n))
 #define scround(x)	(((x)+units_per_sector-1)/units_per_sector)
 
-#if defined(__GNUC__) && (defined(__arm__) || defined(__alpha__))
-# define PACKED __attribute__ ((packed))
-#else
-# define PACKED
-#endif
-
 struct partition {
 	unsigned char boot_ind;         /* 0x80 - active */
 	unsigned char head;             /* starting head */

Why not merge this commit with the previous one? They are for the same logical change, and otherwise it termporarily introduces a warning.

regards,
guillem