[LTP] [PATCH v2] hugetlb: checking if hugepage is supported on target system

Li Wang liwang@redhat.com
Fri Nov 27 06:32:18 CET 2015


Hi,

On Thu, Nov 26, 2015 at 9:49 PM, Cyril Hrubis <chrubis@suse.cz> wrote:

> Hi!
> > > forgot "static"?
> > >
> >
> > no, it will be conflict with the prototype in mem.h and get compiler
> error
> > like:
> > -------
> > hugemmap05.c:253: error: static declaration of ???cleanup??? follows
> non-static
> > declaration
> >
> /mnt/tests/kernel/distribution/ltp/generic/ltp-full-20150903/testcases/kernel/mem/include/mem.h:100:
> > note: previous declaration of ???cleanup??? was here
> > hugemmap05.c:295: error: static declaration of ???setup??? follows
> non-static
> > declaration
> >
> /mnt/tests/kernel/distribution/ltp/generic/ltp-full-20150903/testcases/kernel/mem/include/mem.h:101:
> > note: previous declaration of ???setup??? was here
> > make: *** [hugemmap05] Error 1
>
> Why have you added the function into the mem/include/mem.h in the first
> place? There is kernel/mem/hugetlb/lib/ directory allready, just make
> use of it.
>

sounds good. how about moving the current hugetlb/lib/* two file:

ipcshm.h ---> hugetlb.h
libipc.c    ----> hugetlb.c

and re-write some functions in it?
then we can take a good use of it to build a lib_hugetlb.a.

if all of you have no objection, I can do that.


-- 
Regards,
Li Wang
Email: liwang@redhat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20151127/f3d51b5e/attachment.html>


More information about the Ltp mailing list