I needed the xen-4.1 equivalent of the attached patch to get xen to compile on Fedora 17 with gcc-4.7. It seems that gcc-4.7 doesn''t like it when you mix definitions of a function as void function(void); and asmlinkage void function(void); in .c and .h files. The patch (for 4.2) fixes three cases where they are inconsistent. Michael Young _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2012-Jan-15 21:44 UTC
Re: [PATCH] compile fixes for xen with gcc-4.7 on Fedora 17
On 15/01/2012 20:53, "M A Young" <m.a.young@durham.ac.uk> wrote:> I needed the xen-4.1 equivalent of the attached patch to get xen to > compile on Fedora 17 with gcc-4.7. It seems that gcc-4.7 doesn''t like it > when you mix definitions of a function as > void function(void); > and > asmlinkage void function(void); > in .c and .h files. The patch (for 4.2) fixes three cases where they are > inconsistent.I wonder why we''re bothering with asmlinkage at all. It''s defined to nothin on x86-64, and regparm((0)) is actually the default for i386 anyway. I think we can just kill off asmlinkage, so I''ll do that instead. -- Keir> Michael Young > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel