Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFC: hci: Fix sparse: cast to restricted __be16

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>

authored by

Christophe Ricard and committed by
Samuel Ortiz
74157ef5 cc3a9f72

+1 -1
+1 -1
net/nfc/hci/core.c
··· 225 225 goto exit; 226 226 } 227 227 228 - targets->sens_res = be16_to_cpu(*(u16 *)atqa_skb->data); 228 + targets->sens_res = be16_to_cpu(*(__be16 *)atqa_skb->data); 229 229 targets->sel_res = sak_skb->data[0]; 230 230 231 231 r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,