projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc3a9f7
)
NFC: hci: Fix sparse: cast to restricted __be16
author
Christophe Ricard
<christophe.ricard@gmail.com>
Mon, 31 Mar 2014 22:34:01 +0000
(
00:34
+0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 21 Apr 2014 22:37:29 +0000
(
00:37
+0200)
Fixing "sparse: cast to restricted __be16" message when building with
make C=1 CF=-D__CHECK_ENDIAN__
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/hci/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/nfc/hci/core.c
b/net/nfc/hci/core.c
index c4d251a6fd6791b9836c6332af87ab4091b4163b..47403705197e85930d9f3e480d2e2d5dbd2012fa 100644
(file)
--- a/
net/nfc/hci/core.c
+++ b/
net/nfc/hci/core.c
@@
-225,7
+225,7
@@
int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
goto exit;
}
- targets->sens_res = be16_to_cpu(*(
u
16 *)atqa_skb->data);
+ targets->sens_res = be16_to_cpu(*(
__be
16 *)atqa_skb->data);
targets->sel_res = sak_skb->data[0];
r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,