lkml.org 
[lkml]   [2004]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.6.9-rc4-mm1 HPET compile problems on AMD64
    Badari Pulavarty <pbadari@us.ibm.com> wrote:
    >
    > I get following error while linking kernel on 2.6.9-rc4-mm1.
    > x86_64/kernel/time.c seems to have a dependency on char/hpet.c
    > driver. Its forcing me to use CONFIG_HPET.
    >
    > LD .tmp_vmlinux1
    > arch/x86_64/kernel/built-in.o(.init.text+0x2071): In function
    > `late_hpet_init':
    > arch/x86_64/kernel/entry.S:259: undefined reference to `hpet_alloc'
    > make: *** [.tmp_vmlinux1] Error 1
    >
    > ...
    >
    > [hpet_alloc_fix.patch text/plain (638 bytes)]
    > --- linux.org/arch/x86_64/kernel/time.c 2004-10-11 09:17:15.613107488 -0700
    > +++ linux/arch/x86_64/kernel/time.c 2004-10-11 09:14:05.983935504 -0700
    > @@ -727,6 +727,7 @@ static unsigned int __init pit_calibrate
    > return (end - start) / 50;
    > }
    >
    > +#ifdef CONFIG_HPET
    > static __init int late_hpet_init(void)
    > {
    > struct hpet_data hd;
    > @@ -773,6 +774,7 @@ static __init int late_hpet_init(void)
    > return 0;
    > }
    > fs_initcall(late_hpet_init);
    > +#endif

    I assume you have CONFIG_HPET=n and CONFIG_HPET_TIMER=n?

    Andi, what's going on here? Should the hpet functions in
    arch/x86_64/kernel/time.c be inside CONFIG_HPET_TIMER?

    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:06    [W:0.022 / U:0.620 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site