projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12b25db
)
NFC: st21nfca: Fix sparse: cast to restricted __be16
author
Christophe Ricard
<christophe.ricard@gmail.com>
Mon, 31 Mar 2014 22:34:00 +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>
drivers/nfc/st21nfca/st21nfca.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st21nfca/st21nfca.c
b/drivers/nfc/st21nfca/st21nfca.c
index
9e9b9f1
..
32d5e87
100644
(file)
--- a/
drivers/nfc/st21nfca/st21nfca.c
+++ b/
drivers/nfc/st21nfca/st21nfca.c
@@
-363,7
+363,7
@@
static int st21nfca_get_iso14443_3_atqa(struct nfc_hci_dev *hdev, u16 *atqa)
goto exit;
}
- *atqa = be16_to_cpu(*(
u
16 *) atqa_skb->data);
+ *atqa = be16_to_cpu(*(
__be
16 *) atqa_skb->data);
exit:
kfree_skb(atqa_skb);