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

NFC: st21nfca: 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
cc3a9f72 12b25dbf

+1 -1
+1 -1
drivers/nfc/st21nfca/st21nfca.c
··· 363 363 goto exit; 364 364 } 365 365 366 - *atqa = be16_to_cpu(*(u16 *) atqa_skb->data); 366 + *atqa = be16_to_cpu(*(__be16 *) atqa_skb->data); 367 367 368 368 exit: 369 369 kfree_skb(atqa_skb);