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

too many arguments to function ‘zs_create_pool’ #5

Open
skobkin opened this issue Oct 23, 2017 · 0 comments
Open

too many arguments to function ‘zs_create_pool’ #5

skobkin opened this issue Oct 23, 2017 · 0 comments

Comments

@skobkin
Copy link

skobkin commented Oct 23, 2017

@ 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
jpalus added a commit to jpalus/zsmapbench that referenced this issue Aug 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant