qcacmn: include stdarg header file with correct path
For kernel version 5.15 or later, include linux/stdarg.h in i_qdf_types.h and for older versions include stdarg.h. Also remove inclusion of stdarg.h from dp_internal.h, qdf_trace.h and qdf_types.h files. Change-Id: I2eaa1af06fda0ac07a1be3d245f197de0b85719d CRs-Fixed: 3295172
This commit is contained in:

committed by
Madan Koyyalamudi

parent
c85603d008
commit
f4b6b093c6
@@ -953,7 +953,6 @@ enum timer_yield_status {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if DP_PRINT_ENABLE
|
#if DP_PRINT_ENABLE
|
||||||
#include <stdarg.h> /* va_list */
|
|
||||||
#include <qdf_types.h> /* qdf_vprint */
|
#include <qdf_types.h> /* qdf_vprint */
|
||||||
#include <cdp_txrx_handle.h>
|
#include <cdp_txrx_handle.h>
|
||||||
|
|
||||||
|
@@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
/* Include Files */
|
/* Include Files */
|
||||||
#include <qdf_types.h> /* For QDF_MODULE_ID... */
|
#include <qdf_types.h> /* For QDF_MODULE_ID... */
|
||||||
#include <stdarg.h> /* For va_list... */
|
|
||||||
#include <qdf_status.h>
|
#include <qdf_status.h>
|
||||||
#include <qdf_nbuf.h>
|
#include <qdf_nbuf.h>
|
||||||
#include <i_qdf_types.h>
|
#include <i_qdf_types.h>
|
||||||
|
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
/* Include Files */
|
/* Include Files */
|
||||||
#include <i_qdf_types.h>
|
#include <i_qdf_types.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#ifdef TSOSEG_DEBUG
|
#ifdef TSOSEG_DEBUG
|
||||||
#include <qdf_atomic.h>
|
#include <qdf_atomic.h>
|
||||||
#endif
|
#endif
|
||||||
|
@@ -42,6 +42,11 @@
|
|||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
#include <generated/autoconf.h>
|
#include <generated/autoconf.h>
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
|
||||||
|
#include <linux/stdarg.h>
|
||||||
|
#else
|
||||||
|
#include <stdarg.h>
|
||||||
|
#endif
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
Reference in New Issue
Block a user