qcacmn: Fix compilation error in 4.4v Kernel
Fix compilation errors in Kernel 4.4 version. seq_printf function syntax is changed in v4.4 Linux kernel Change-Id: I013171e5bbd4e5641c1a74d22003271c88c63232 CRs-fixed: 1026152
This commit is contained in:

committed by
Vishwajith Upendra

parent
9381e603e4
commit
5826ae9ec5
@@ -43,6 +43,22 @@
|
||||
|
||||
#include <linux/debugfs.h>
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0))
|
||||
/* TODO Cleanup this backported function */
|
||||
int qcacld_bp_seq_printf(struct seq_file *m, const char *f, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args, f);
|
||||
seq_printf(m, f, args);
|
||||
va_end(args);
|
||||
|
||||
return m->count;
|
||||
}
|
||||
|
||||
#define seq_printf(m, fmt, ...) qcacld_bp_seq_printf((m), fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#define WMI_MIN_HEAD_ROOM 64
|
||||
|
||||
#ifdef WMI_INTERFACE_EVENT_LOGGING
|
||||
|
Reference in New Issue
Block a user