public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Circular dependency between asm/system.h and asm/processor.h (Was:
@ 2002-05-08 21:49 Andreas Schwab
  2002-05-11  0:03 ` David Mosberger
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2002-05-08 21:49 UTC (permalink / raw)
  To: linux-ia64

David Mosberger <davidm@napali.hpl.hp.com> writes:

|> The latest ia64 patch relative to 2.4.18 is now available
|> at ftp://ftp.kernel.org/pub/linux/kernel/ports/ia64/v2.4/
|> in file:
|> 
|> 	linux-2.4.18-ia64-020410.diff.gz

local_irq_restore in asm/system.h needs IA64_PSR_I which is only defined
in asm/processor.h.  linux/tqueue.h defines the inline function queue_task
that uses spin_unlock_irqrestore, which is defined in terms of
local_irq_restore, so it does not compile because IA64_PSR_I is undefined.
But asm/processor.h already depends on asm/system.h, so we cannot just
include it there.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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

* Re: Circular dependency between asm/system.h and asm/processor.h (Was:
  2002-05-08 21:49 Circular dependency between asm/system.h and asm/processor.h (Was: Andreas Schwab
@ 2002-05-11  0:03 ` David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2002-05-11  0:03 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Wed, 08 May 2002 23:49:10 +0200, Andreas Schwab <schwab@suse.de> said:

  Andreas> local_irq_restore in asm/system.h needs IA64_PSR_I which is
  Andreas> only defined in asm/processor.h.  linux/tqueue.h defines
  Andreas> the inline function queue_task that uses
  Andreas> spin_unlock_irqrestore, which is defined in terms of
  Andreas> local_irq_restore, so it does not compile because
  Andreas> IA64_PSR_I is undefined.  But asm/processor.h already
  Andreas> depends on asm/system.h, so we cannot just include it
  Andreas> there.

I moved the PSR and DCR bit definitions into kregs.h and include this
file in system.h.  That seems cleaner and will avoid recursive
dependencies.

Thanks,

	--david


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

end of thread, other threads:[~2002-05-11  0:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-08 21:49 Circular dependency between asm/system.h and asm/processor.h (Was: Andreas Schwab
2002-05-11  0:03 ` David Mosberger

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