[Pvfs2-developers] [PATCH] Xen configure checks addition
Pete Wyckoff
pw at osc.edu
Mon May 7 19:22:15 EDT 2007
dmlb2000 at gmail.com wrote on Mon, 07 May 2007 15:29 -0700:
> This patch is to kernel.m4 and adds the appropriate configure checks
> to make sure building against a xen kernel works okay.
>
> mainly its just adding the #ifdef CONFIG_XEN then include the appropriate files.
[..]
> AC_TRY_COMPILE([
> #define __KERNEL__
> + #ifdef CONFIG_XEN
> + #include <linux/types.h>
> + #define __XEN_INTERFACE_VERSION__ CONFIG_XEN_INTERFACE_VERSION
> + #include <xen/interface/xen.h>
> + #endif
> #include <linux/fs.h>
> void i_size_write(struct inode *inode,
> loff_t i_size)
This is ``ick''. Every kernel file that wants to compile with Xen
has to include these five lines? Is there a better way to do it?
Your goal is admirable, but I can't imagine anyone sane would put up
with this requirement.
-- Pete
More information about the Pvfs2-developers
mailing list