Re: [PATCH] NOMMU: Work around the lack of vmap()/vunmap() infirmware_loading_store() [ver #2]

From: Mike Frysinger
Date: Wed Mar 23 2011 - 23:41:47 EST

On Thu, Apr 8, 2010 at 09:51, David Howells wrote:
> Work around the lack of vmap()/vunmap() in firmware_loading_store() when
> operating in NOMMU mode. Âvmap() cannot be implemented as there's no virtual
> mapping available.
> Instead, in NOMMU mode, make available a function (vcoalesce()) that can
> coalesce the supplied data into one big buffer and store as the address vmap()
> would've returned.
> This can be #defined to vmap() in NOMMU mode by interested parties.

seems this patch missed updating vunmap():

void vunmap(const void *addr)

that BUG() just needs to be changed to a kfree(addr) ...
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at