mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacmn: sizeof_field support for 4.16+ kernel
sizeof_field is defined from kernel 4.16. So use sizeof_field instead of FIELD_SIZEOF from kernel 4.16. Change-Id: I291531ea86499a7c0ba52fbb6607b19dff533111 CRs-Fixed: 2666512
This commit is contained in:
parent
124f623a19
commit
2be79bf9fd
1 changed files with 8 additions and 1 deletions
|
|
@ -336,8 +336,15 @@ struct qdf_nbuf_cb {
|
|||
} u;
|
||||
}; /* struct qdf_nbuf_cb: MAX 48 bytes */
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0))
|
||||
QDF_COMPILE_TIME_ASSERT(qdf_nbuf_cb_size,
|
||||
(sizeof(struct qdf_nbuf_cb)) <= FIELD_SIZEOF(struct sk_buff, cb));
|
||||
(sizeof(struct qdf_nbuf_cb)) <=
|
||||
sizeof_field(struct sk_buff, cb));
|
||||
#else
|
||||
QDF_COMPILE_TIME_ASSERT(qdf_nbuf_cb_size,
|
||||
(sizeof(struct qdf_nbuf_cb)) <=
|
||||
FIELD_SIZEOF(struct sk_buff, cb));
|
||||
#endif
|
||||
|
||||
/**
|
||||
* access macros to qdf_nbuf_cb
|
||||
|
|
|
|||
Loading…
Reference in a new issue