From: Peter K. <pk...@us...> - 2001-09-18 08:32:50
|
The following files were modified in linux/drivers/char/bluetooth: Name Old version New version Comment ---- ----------- ----------- ------- hci_vendor.c 1.52 1.53=20=20=20=20=20=20=20=20=20=20=20=20 sdp.c 1.77 1.78=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Added the packed attribute to a couple of structs. The diff of the modified file(s): --- hci_vendor.c 2001/09/07 12:53:24 1.52 +++ hci_vendor.c 2001/09/18 08:32:50 1.53 @@ -468,13 +468,13 @@ u8 ch_id:6; u8 first:1; u8 last:1; -} payload_descr; +} __attribute__ ((packed)) payload_descr; =20 typedef struct csr_msg { payload_descr p_descr; u8 msg[0]; -} csr_msg; +} __attribute__ ((packed)) csr_msg; =20 typedef struct csr_bccmd { @@ -484,7 +484,7 @@ u16 var_id; u16 status; u16 payload[0]; -} csr_bccmd; +} __attribute__ ((packed)) csr_bccmd; =20=20=20 typedef struct csr_bccmd_ps { @@ -492,12 +492,12 @@ u16 ps_len; /* len of only ps_val */ u16 unused; /* always 0x0000 */ u16 ps_val[0]; -} csr_bccmd_ps; +} __attribute__ ((packed)) csr_bccmd_ps; =20 typedef struct csr_rssi_rep {=20=20 u16 rssi; -} csr_rssi_rep; +} __attribute__ ((packed)) csr_rssi_rep; =20 typedef struct csr_packstat_rep {=20=20 @@ -506,14 +506,14 @@ u16 n_corr; u16 rssi; u16 rssi_valid; -} csr_packstat_rep; +} __attribute__ ((packed)) csr_packstat_rep; =20 typedef struct csr_biterr_rep {=20=20 u16 index; u16 val_last; u16 val_tot; -} csr_biterr_rep; +} __attribute__ ((packed)) csr_biterr_rep; =20 static u16 csr_count =3D 0; =20 --- sdp.c 2001/06/14 10:34:53 1.77 +++ sdp.c 2001/09/18 08:32:50 1.78 @@ -294,12 +294,12 @@ u16 sdp_con_id; u16 len; u8 data[0]; -} data_struct; +} __attribute__ ((packed)) data_struct; =20 struct database_query { u32 count; u8 query[256]; -} database_query; +} __attribute__ ((packed)) database_query; =20 sdp_con sdp_con_list[MAX_NBR_SDP]; =20 |