[EMAIL PROTECTED] 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
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to