wifi driver: move STRUCT_PACKED to compiler.h
authorEunBong Song <eunb.song@samsung.com>
Mon, 31 Jul 2017 08:22:50 +0000 (01:22 -0700)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:48 +0000 (21:15 -0700)
There are duplication define for STRUCT_PACKED in wifi driver.
This patch moves STRUCT_PACKED define to compiler.h.

Change-Id: Ie9af489177364347e3a9c7e260f64df7104ffe95
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/wpa_supplicant/src/utils/common.h
os/drivers/wireless/scsc/utils_scsc.h
os/include/tinyara/compiler.h

index 4aa0f5b..c9b25d2 100644 (file)
@@ -373,7 +373,6 @@ static inline void WPA_PUT_LE64(u8 *a, u64 val)
 
 #ifdef __GNUC__
 #define PRINTF_FORMAT(a,b) __attribute__ ((format (printf, (a), (b))))
-#define STRUCT_PACKED __attribute__ ((packed))
 #else
 #define PRINTF_FORMAT(a,b)
 #define STRUCT_PACKED
index cffb1e8..18f4b0a 100644 (file)
@@ -45,8 +45,6 @@ extern "C" {
 #define __bitwise
 #endif
 
-#define STRUCT_PACKED __attribute__ ((__packed__))
-
 #ifndef __packed
 #define __packed __attribute__((__packed__))
 #endif
index 047e5c9..ce7c632 100644 (file)
 #define DSEG
 #define CODE
 
+
+#define STRUCT_PACKED __attribute__ ((packed))
+
 /* Handle cases where sizeof(int) is 16-bits, sizeof(long) is 32-bits, and
  * pointers are 16-bits.
  */