From b23fab8e20f28f83b51a0cf64a921e817375fce3 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 27 Nov 2006 13:50:02 +0000 Subject: [LINUX] Import kasprintf patch from upstream. kasprintf has been merged upstream with a slightly different protoype to the one in Xen. Import this patch and fixup the Xen tree to fit. Signed-off-by: Ian Campbell --- unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unmodified_drivers/linux-2.6/compat-include') diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index ea0e6b308f..4a5aa7f9f9 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -64,4 +64,9 @@ void *kzalloc(size_t size, int flags); #define end_that_request_last(req, uptodate) end_that_request_last(req) #endif +#if defined(_LINUX_KERNEL_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) +extern char *kasprintf(gfp_t gfp, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); +#endif + #endif -- cgit v1.2.3