linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* asm-generic/tlb.h and check_pgt_cache()
@ 2008-01-31 11:54 Haavard Skinnemoen
  2008-01-31 12:18 ` Paul Mundt
  2008-01-31 13:03 ` Adrian Bunk
  0 siblings, 2 replies; 9+ messages in thread
From: Haavard Skinnemoen @ 2008-01-31 11:54 UTC (permalink / raw)
  To: linux-arch; +Cc: Thomas Gleixner, Jeremy Fitzhardinge, David Brownell

Hi,

Commit a5a19c63f4e55e32dc0bc3d936d7f94793d8b380 from x86.git seems to
have broken several architectures, including alpha (fixed by
c18d1250c7425dddd2633ce4eaf03d5015e68a0f) and avr32 (not fixed yet).

The problem seems to be that asm-generic/tlb.h references
check_pgt_cache(), which is defined in asm/pgalloc.h on most
architectures, so removing that include seems like the wrong thing to
do. x86, however, defines it in asm/pgtable.h which is apparently
included indirectly through other headers.

One way to fix this would be to move the check_pgt_cache() definition
over to asm/pgtable.h, but I suspect this would complicate things a lot
on architectures that use quicklists since they need the QUICK_*
definitions from pgalloc.h in order to implement check_pgt_cache. I
have patches that make avr32 use quicklists as well, so I'm a bit
hesitant to do this.

Another way to fix it would be to include asm/pgalloc.h elsewhere, e.g.
from asm/tlb.h right before including asm-generic/tlb.h. Or perhaps we
should move check_pgt_cache() into asm/tlb.h on all architectures and
include asm/pgalloc.h as needed?

I don't know how many architectures are currently broken -- if it's
only avr32, I can probably come up with a way to fix it on my own. But
if there are others, I thought it might be a good idea to coordinate
things.

Haavard

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

end of thread, other threads:[~2008-02-01  0:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-31 11:54 asm-generic/tlb.h and check_pgt_cache() Haavard Skinnemoen
2008-01-31 12:18 ` Paul Mundt
2008-01-31 13:03 ` Adrian Bunk
2008-01-31 15:36   ` Adrian Bunk
2008-01-31 16:31   ` Jeremy Fitzhardinge
2008-01-31 16:53     ` Adrian Bunk
2008-01-31 17:39       ` Jeremy Fitzhardinge
2008-02-01  0:09     ` Paul Mundt
2008-02-01  0:31       ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).