From: "Michael Paesold" Subject: Re: Error compiling with CONFIG_PROFILING (xenoprof) Date: Mon, 10 Apr 2006 13:28:32 +0200 Message-ID: <00e701c65c91$e69a8f20$d801a8c0@zaphod> References: <00a701c65c83$8cb26310$d801a8c0@zaphod> <65e385dda31af24104770ee1e2244232@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Xen Devel List-Id: xen-devel@lists.xenproject.org Keir Fraser wrote: > On 10 Apr 2006, at 10:45, Michael Paesold wrote: >> >> Here is the build error: >> arch/i386/oprofile/xenoprof.c:315: error: unknown field `set_active' >> specified in initializer >> arch/i386/oprofile/xenoprof.c:315: warning: initialization from >> incompatible pointer type >> make[1]: *** [arch/i386/oprofile/xenoprof.o] Error 1 >> make: *** [arch/i386/oprofile] Error 2 >> >> >> That is from linux 2.6.16.1 with xen patched into the kernel from "make >> mkpatches". I can supply the kernel config as well as my kernel source >> RPM to recreate the problem, if that helps. > > You're missing the extra patch in file > patches/linux-2.6.16/xenoprof-generic.patch. Thanks! I had missed that patch when updating to that changeset. > 'make mkpatches' should be incorporating the extra patches from > patches/linux-2.6.16 -- if it isn't then it needs fixing to do so. I think "make mkpatches" is correct, but I missed the additional patch. To use the patch from mkpatches and apply them to a vanilla kernel, one also needs to apply all patches from patches/linux-2.6.16. "make mkpatches" creates diffs between vanilla+patches/linux-2.6.16 and xenified+patches/linux-2.6.16). Best Regards, Michael Paesold