X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fm32r%2Fkernel%2Fmodule.c;h=8d4205794380f93612f9dc62974e8895427f5912;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=2d5c384488bd8086bda7f5d9e66a360501de47fe;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/arch/m32r/kernel/module.c b/arch/m32r/kernel/module.c index 2d5c38448..8d4205794 100644 --- a/arch/m32r/kernel/module.c +++ b/arch/m32r/kernel/module.c @@ -14,6 +14,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include #include #include @@ -31,7 +32,11 @@ void *module_alloc(unsigned long size) { if (size == 0) return NULL; +#ifdef CONFIG_MMU return vmalloc_exec(size); +#else + return vmalloc(size); +#endif }