summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/bluetooth.h
diff options
context:
space:
mode:
authorGustavo F. Padovan2010-07-19 07:00:13 +0200
committerMarcel Holtmann2010-07-21 19:39:13 +0200
commit66c853cc21bd387a9a2109dcf3b3d53cc9ee9edf (patch)
tree7cff1a1c452f0cdd3420523b0f5f966900c2336a /include/net/bluetooth/bluetooth.h
parentBluetooth: Enable L2CAP Extended features by default (diff)
downloadkernel-qcow2-linux-66c853cc21bd387a9a2109dcf3b3d53cc9ee9edf.tar.gz
kernel-qcow2-linux-66c853cc21bd387a9a2109dcf3b3d53cc9ee9edf.tar.xz
kernel-qcow2-linux-66c853cc21bd387a9a2109dcf3b3d53cc9ee9edf.zip
Bluetooth: Use __packed annotation
To make net/ and include/net/ code consistent use __packed instead of __attribute__ ((packed)). Bluetooth subsystem was one of the last net subsys still using __attribute__ ((packed)). Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/bluetooth.h')
-rw-r--r--include/net/bluetooth/bluetooth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index d6b150c679ff..27a902d9b3a9 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -84,7 +84,7 @@ enum {
/* BD Address */
typedef struct {
__u8 b[6];
-} __attribute__((packed)) bdaddr_t;
+} __packed bdaddr_t;
#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})