Re: [RFC Patch v1 37/55] ARC: dynamic loadable module support

2012-11-15 Thread Vineet Gupta
On Monday 12 November 2012 07:23 PM, Arnd Bergmann wrote: > On Monday 12 November 2012, vineet.gup...@synopsys.com wrote: >> +void *module_alloc(unsigned long size) >> +{ >> + if (size == 0) >> + return NULL; >> + >> + return vmalloc(size); >> + >> +} >> + >> +void module_

Re: [RFC Patch v1 37/55] ARC: dynamic loadable module support

2012-11-12 Thread Arnd Bergmann
On Monday 12 November 2012, vineet.gup...@synopsys.com wrote: > +void *module_alloc(unsigned long size) > +{ > + if (size == 0) > + return NULL; > + > + return vmalloc(size); > + > +} > + > +void module_free(struct module *module, void *region) > +{ > + vfree(region)

[RFC Patch v1 37/55] ARC: dynamic loadable module support

2012-11-12 Thread Vineet.Gupta1
From: Vineet Gupta Signed-off-by: Vineet Gupta --- arch/arc/include/asm/module.h |4 ++ arch/arc/kernel/Makefile |1 + arch/arc/kernel/module.c | 117 + 3 files changed, 122 insertions(+), 0 deletions(-) create mode 100644 arch/arc/ker