linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* pmd_alloc() usage incorrect?
@ 2005-10-09 20:23 Grant Grundler
  2005-10-10  1:37 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Grundler @ 2005-10-09 20:23 UTC (permalink / raw)
  To: linuxppc-dev

Hi,
I stumbled across what looks like incorrect code in
arch/ppc/kernel/dma-mapping.c:

static int __init dma_alloc_init(void)
{
...
        do {
                pgd = pgd_offset(&init_mm, CONSISTENT_BASE);
                pmd = pmd_alloc(&init_mm, pgd, CONSISTENT_BASE);
                if (!pmd) {
...

Doesn't pmd_alloc() want a pud_t * for the second parameter?
ie also need to call pud_alloc() or the equivalent.

I've very little clue how this works...just looking at different
bits of code in my quest to understand it well enough to enable
USE_HPPA_IOREMAP in include/asm-parisc/io.h.

ciao,
grant

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

end of thread, other threads:[~2005-10-10  1:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-09 20:23 pmd_alloc() usage incorrect? Grant Grundler
2005-10-10  1:37 ` Benjamin Herrenschmidt

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).