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:
Rajesh Chauhan
2022-09-22 08:55:15 -07:00
committed by Madan Koyyalamudi
parent c85603d008
commit f4b6b093c6
4 changed files with 5 additions and 3 deletions

View File

@@ -953,7 +953,6 @@ enum timer_yield_status {
};
#if DP_PRINT_ENABLE
#include <stdarg.h> /* va_list */
#include <qdf_types.h> /* qdf_vprint */
#include <cdp_txrx_handle.h>

View File

@@ -28,7 +28,6 @@
/* Include Files */
#include <qdf_types.h> /* For QDF_MODULE_ID... */
#include <stdarg.h> /* For va_list... */
#include <qdf_status.h>
#include <qdf_nbuf.h>
#include <i_qdf_types.h>

View File

@@ -29,7 +29,6 @@
/* Include Files */
#include <i_qdf_types.h>
#include <stdarg.h>
#ifdef TSOSEG_DEBUG
#include <qdf_atomic.h>
#endif

View File

@@ -42,6 +42,11 @@
#ifdef __KERNEL__
#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/mutex.h>
#include <linux/types.h>