+/*
+ * Canary function to check for '__vmalloc_node_range()' at compile time.
+ *
+ * From 'include/linux/vmalloc.h':
+ *
+ * extern void *__vmalloc_node_range(unsigned long size, unsigned long align,
+ * unsigned long start, unsigned long end, gfp_t gfp_mask,
+ * pgprot_t prot, unsigned long vm_flags, int node,
+ * const void *caller);
+ */
+static inline
+void *__canary____lttng_vmalloc_node_range(unsigned long size, unsigned long align,
+ unsigned long start, unsigned long end, gfp_t gfp_mask,
+ pgprot_t prot, unsigned long vm_flags, int node,
+ const void *caller)
+{
+ return __vmalloc_node_range(size, align, start, end, gfp_mask, prot,
+ vm_flags, node, caller);
+}
+