]> Pileus Git - ~andy/linux/commitdiff
Bluetooth: Enable -D__CHECK_ENDIAN__ for sparse by default
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 2 Oct 2013 05:59:25 +0000 (22:59 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Oct 2013 06:10:05 +0000 (09:10 +0300)
The Bluetooth protocol and hardware is pretty much all little endian
and so when running sparse via "make C=2" for example, enable the
endian checks by default.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/Makefile
net/bluetooth/Makefile

index 4afae20df512cb6d88ce61b6d11c489d25eb88b2..9fe8a875a8277b51c069ce682d6ece31c922d426 100644 (file)
@@ -30,3 +30,5 @@ hci_uart-$(CONFIG_BT_HCIUART_LL)      += hci_ll.o
 hci_uart-$(CONFIG_BT_HCIUART_ATH3K)    += hci_ath.o
 hci_uart-$(CONFIG_BT_HCIUART_3WIRE)    += hci_h5.o
 hci_uart-objs                          := $(hci_uart-y)
+
+ccflags-y += -D__CHECK_ENDIAN__
index dea6a287daca88b666eaee999043a3abf6dd853a..6a791e73e39d936f0d9958d506c540c5a2805727 100644 (file)
@@ -11,3 +11,5 @@ obj-$(CONFIG_BT_HIDP) += hidp/
 bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \
        hci_sock.o hci_sysfs.o l2cap_core.o l2cap_sock.o smp.o sco.o lib.o \
        a2mp.o amp.o
+
+subdir-ccflags-y += -D__CHECK_ENDIAN__