too many open-coded instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
}
#endif
+static inline void kvfree(const void *x)
+{
+ /* include order mess... */
+ extern void kfree(const void *);
+ extern void vfree(const void *);
+ if (is_vmalloc_addr(x))
+ vfree(x);
+ else
+ kfree(x);
+}
+
static inline void compound_lock(struct page *page)
{
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
char *aa_split_fqname(char *args, char **ns_name);
void aa_info_message(const char *str);
void *__aa_kvmalloc(size_t size, gfp_t flags);
-void kvfree(void *buffer);
static inline void *kvmalloc(size_t size)
{
}
return buffer;
}
-
-/**
- * kvfree - free an allocation do by kvmalloc
- * @buffer: buffer to free (MAYBE_NULL)
- *
- * Free a buffer allocated by kvmalloc
- */
-void kvfree(void *buffer)
-{
- if (is_vmalloc_addr(buffer))
- vfree(buffer);
- else
- kfree(buffer);
-}