compat: Fix autoconf probe for pcie_mpss
[~emulex/for-vlad/old/compat.git] / compat / compat-3.15.c
1 #include <linux/export.h>
2 #include <linux/vmalloc.h>
3
4 #define kvfree LINUX_BACKPORT(kvfree)
5 void kvfree(const void *addr)
6 {
7         if (is_vmalloc_addr(addr))
8                 vfree(addr);
9         else
10                 kfree(addr);
11 }
12 EXPORT_SYMBOL(kvfree);