mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
da0881a68f
commit
8330485de6
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue