public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Compilation problem in arch/ia64/sn/kernel/setup.c
@ 2004-03-15  6:34 Sourav Sen
  2004-03-15 16:59 ` Jesse Barnes
  2004-03-15 21:40 ` David Mosberger
  0 siblings, 2 replies; 3+ messages in thread
From: Sourav Sen @ 2004-03-15  6:34 UTC (permalink / raw)
  To: linux-ia64

Hello,

In arch/ia64/sn/kernel/setup.c in 2.6.4 + IA64 patch,
the array, platform_intr_list[] is declared
as:

#ifdef CONFIG_IA64_MCA
extern int platform_intr_list[];
#endif

but is used without that (CONFIG_IA64_MCA) guard.
So, I have done the following to get around the
compilation problem. Somebody knowledgeable on
this will be able to validate if this is the
right way.

regards
Sourav

--- arch/ia64/sn/kernel/setup.c.orig    Mon Mar 15 05:58:30 2004
+++ arch/ia64/sn/kernel/setup.c Mon Mar 15 05:59:14 2004
@@ -311,7 +311,9 @@
        else
                sn_rtc_cycles_per_second = ticks_per_sec;
 
+#ifdef CONFIG_IA64_MCA
        platform_intr_list[ACPI_INTERRUPT_CPEI] = IA64_CPE_VECTOR;
+#endif
 
 
        if ( IS_RUNNING_ON_SIMULATOR() )


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compilation problem in arch/ia64/sn/kernel/setup.c
  2004-03-15  6:34 Compilation problem in arch/ia64/sn/kernel/setup.c Sourav Sen
@ 2004-03-15 16:59 ` Jesse Barnes
  2004-03-15 21:40 ` David Mosberger
  1 sibling, 0 replies; 3+ messages in thread
From: Jesse Barnes @ 2004-03-15 16:59 UTC (permalink / raw)
  To: linux-ia64

The patch looks fine, but I wonder if we really need CONFIG_IA64_MCA
anymore, does anyone really want to run without it?

Jesse

On Mon, Mar 15, 2004 at 11:52:03AM +0530, Sourav Sen wrote:
> Hello,
> 
> In arch/ia64/sn/kernel/setup.c in 2.6.4 + IA64 patch,
> the array, platform_intr_list[] is declared
> as:
> 
> #ifdef CONFIG_IA64_MCA
> extern int platform_intr_list[];
> #endif
> 
> but is used without that (CONFIG_IA64_MCA) guard.
> So, I have done the following to get around the
> compilation problem. Somebody knowledgeable on
> this will be able to validate if this is the
> right way.
> 
> regards
> Sourav
> 
> --- arch/ia64/sn/kernel/setup.c.orig    Mon Mar 15 05:58:30 2004
> +++ arch/ia64/sn/kernel/setup.c Mon Mar 15 05:59:14 2004
> @@ -311,7 +311,9 @@
>         else
>                 sn_rtc_cycles_per_second = ticks_per_sec;
>  
> +#ifdef CONFIG_IA64_MCA
>         platform_intr_list[ACPI_INTERRUPT_CPEI] = IA64_CPE_VECTOR;
> +#endif
>  
>  
>         if ( IS_RUNNING_ON_SIMULATOR() )
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compilation problem in arch/ia64/sn/kernel/setup.c
  2004-03-15  6:34 Compilation problem in arch/ia64/sn/kernel/setup.c Sourav Sen
  2004-03-15 16:59 ` Jesse Barnes
@ 2004-03-15 21:40 ` David Mosberger
  1 sibling, 0 replies; 3+ messages in thread
From: David Mosberger @ 2004-03-15 21:40 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Mon, 15 Mar 2004 08:59:39 -0800, jbarnes@sgi.com (Jesse Barnes) said:

  Jesse> The patch looks fine, but I wonder if we really need
  Jesse> CONFIG_IA64_MCA anymore, does anyone really want to run
  Jesse> without it?

Good point.  MCA used to be rather big because of all the
decoding-crap, but now that's cleaned up, so perhaps there is no
reason to keep CONFIG_IA64_MCA anymore (even the usual Ski simulator
config has CONFIG_IA64_MCA turned on, even though the supporting
firmware-emulator doesn't really do anything about MCAs at the
moment).

	--david

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-15 21:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-15  6:34 Compilation problem in arch/ia64/sn/kernel/setup.c Sourav Sen
2004-03-15 16:59 ` Jesse Barnes
2004-03-15 21:40 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox