public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] Bluetooth: trivial: Correct types
@ 2012-03-12 13:59 Andrei Emeltchenko
  2012-03-12 13:59 ` [PATCH 2/4] Bluetooth: Fix type in cpu_to_le conversion Andrei Emeltchenko
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Andrei Emeltchenko @ 2012-03-12 13:59 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

Fix sparse warnigns below:
...
net/bluetooth/hci_sysfs.c:458:33: warning: cast to restricted __be32
net/bluetooth/hci_sysfs.c:458:47: warning: cast to restricted __be16
...

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 net/bluetooth/hci_sysfs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index bc15429..0a4e7ab 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -444,8 +444,8 @@ static const struct file_operations blacklist_fops = {
 
 static void print_bt_uuid(struct seq_file *f, u8 *uuid)
 {
-	u32 data0, data4;
-	u16 data1, data2, data3, data5;
+	__be32 data0, data4;
+	__be16 data1, data2, data3, data5;
 
 	memcpy(&data0, &uuid[0], 4);
 	memcpy(&data1, &uuid[4], 2);
-- 
1.7.9.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-03-16 15:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-12 13:59 [PATCH 1/4] Bluetooth: trivial: Correct types Andrei Emeltchenko
2012-03-12 13:59 ` [PATCH 2/4] Bluetooth: Fix type in cpu_to_le conversion Andrei Emeltchenko
2012-03-12 17:35   ` Marcel Holtmann
2012-03-12 13:59 ` [PATCH 3/4] Bluetooth: Fix opcode access in hci_complete Andrei Emeltchenko
2012-03-12 17:38   ` Marcel Holtmann
2012-03-12 13:59 ` [PATCH 4/4] Bluetooth: trivial: Remove sparse warnings Andrei Emeltchenko
2012-03-12 17:36   ` Marcel Holtmann
2012-03-13  8:16     ` Andrei Emeltchenko
2012-03-12 17:39 ` [PATCH 1/4] Bluetooth: trivial: Correct types Marcel Holtmann
2012-03-16 15:36 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox