Re: Real-Time Preemption Patch -RT-2.6.12-final-V0.7.51-26 failed ,to compile

From: Daniel Walker (dwalker_at_mvista.com)
Date: 07/11/05

  • Next message: Micheal Marineau: "Re: [PATCH][help?] Radeonfb acpi resume"
    To: Steven Wooding <steve@wooding.uklinux.net>
    Date:	Mon, 11 Jul 2005 11:46:38 -0700
    
    

    This may help ..

    Index: linux-2.6.12/arch/x86_64/kernel/mce.c
    ===================================================================
    --- linux-2.6.12.orig/arch/x86_64/kernel/mce.c 2005-06-17 19:48:29.000000000 +0000
    +++ linux-2.6.12/arch/x86_64/kernel/mce.c 2005-07-11 18:44:42.000000000 +0000
    @@ -15,6 +15,8 @@
     #include <linux/sysdev.h>
     #include <linux/miscdevice.h>
     #include <linux/fs.h>
    +#include <linux/semaphore.h>
    +
     #include <asm/processor.h>
     #include <asm/msr.h>
     #include <asm/mce.h>

    On Mon, 2005-07-11 at 19:13 +0100, Steven Wooding wrote:
    > Hi,
    >
    > I wonder if someone can help a newbie to the Real-Time Preemption
    > Patch. After appling the lastest patch (-RT-2.6.12-final-V0.7.51-26) to the
    > 2.6.12 vanilla kernel I get the following error when compiling the
    > patched kernel:
    >
    > arch/x86_64/kernel/mce.c: In function 'mce_read':
    > arch/x86_64/kernel/mce.c:383: warning: type defaults to 'int' in
    > declarationd of 'DECLARE_MUTEX'
    > arch/x86_64/kernel/mce.c:383: warning: parameter names (without types)
    > in function declaration
    > arch/x86_64/kernel/mce.c:392:error: 'mce_read_sem' undeclared (first
    > use in this function)
    >
    > Then the mce.o fails to get made and the make stops.
    >
    > I've tried compiling the vanilla 2.6.12 kernel without the patch and
    > that works fine. It is strange that the error should be in
    > arch/x86_64/kernel/mce.c as this is not altered by the patch. I've also tried saying
    > no to MCE support, but got the some error.
    >
    > I'm using RHEL 4 on a SMP system (gcc version 3.4.3).
    >
    > Thanks,
    >
    > Steve.
    >
    > PS Please CC me on replies. Thanks.
    >
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    > Please read the FAQ at http://www.tux.org/lkml/

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Micheal Marineau: "Re: [PATCH][help?] Radeonfb acpi resume"

    Relevant Pages

    • Re: [PATCH] race condition in procfs
      ... > hard to run on a vanilla kernel. ... > could) but often doing a -j8 kernel compile in a vserver is enough. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • PROBLEM: Compile Break 2.6.0-test2
      ... Keywords (i.e., modules, networking, kernel): ... drivers/char/riscom8.h:85: field `tqueue_hangup' has incomplete type ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch ide-dev 3/9] merge LBA28 and LBA48 Host Protected Area support code
      ... >> I have generic question about HPA, ... > Please retry with vanilla kernel. ... Note this is still with the SUSE 2.6.8 vendor kernel and I don't know ... Same machine / OS, just connecting different drives. ...
      (Linux-Kernel)
    • Re: [Bug #14141] order 2 page allocation failures in iwlagn
      ... The 1st kernel had the expected "freeze" while reading commits in gitk; ... - without the revert 'background_writeout' is called a lot less frequently, ... 2.6.31.1-write-congestion-wait i.e. kernel with patch reverted ... The vanilla kernel is not waiting in wb_kupdate at all. ...
      (Linux-Kernel)
    • RE: Unknown Issue.
      ... and then I tried to run or edit different programs and files and nothing ... I've not tried to reproduce it on a non-gentoo kernel as the original ... one that i had the problem was a vanilla kernel;) (as i know your ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)