Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

too many arguments to function ‘zs_create_pool’ #5

Description

@skobkin

@ 080b772

$ make
make -C "/lib/modules/4.13.7-gentoo-skobkin/build" M=/home/skobkin/tmp/zsmapbench modules
make[1]: Entering directory '/usr/src/linux-4.13.7-gentoo'
  CC [M]  /home/skobkin/tmp/zsmapbench/zsmapbench.o
/home/skobkin/tmp/zsmapbench/zsmapbench.c: In function ‘zsmb_kthread’:
/home/skobkin/tmp/zsmapbench/zsmapbench.c:35:9: error: too many arguments to function ‘zs_create_pool’
  pool = zs_create_pool("zsmapbench", GFP_NOIO | __GFP_HIGHMEM);
         ^~~~~~~~~~~~~~
In file included from /home/skobkin/tmp/zsmapbench/zsmapbench.c:14:0:
./include/linux/zsmalloc.h:44:17: note: declared here
 struct zs_pool *zs_create_pool(const char *name);
                 ^~~~~~~~~~~~~~
/home/skobkin/tmp/zsmapbench/zsmapbench.c:48:16: error: too few arguments to function ‘zs_malloc’
   handles[i] = zs_malloc(pool, size);
                ^~~~~~~~~
In file included from /home/skobkin/tmp/zsmapbench/zsmapbench.c:14:0:
./include/linux/zsmalloc.h:47:15: note: declared here
 unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t flags);
               ^~~~~~~~~
make[2]: *** [scripts/Makefile.build:309: /home/skobkin/tmp/zsmapbench/zsmapbench.o] Error 1
make[1]: *** [Makefile:1512: _module_/home/skobkin/tmp/zsmapbench] Error 2
make[1]: Leaving directory '/usr/src/linux-4.13.7-gentoo'
make: *** [Makefile:7: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions