Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with kernel 6.8 #191

Open
fcarreno-git opened this issue Sep 22, 2024 · 5 comments
Open

Build error with kernel 6.8 #191

fcarreno-git opened this issue Sep 22, 2024 · 5 comments
Assignees

Comments

@fcarreno-git
Copy link

make -C module install
make[1]: Entering directory '/home/fcarreno/Baixades/rdisk/rapiddisk-master/module'
make -C /lib/modules/6.8.0-45-lowlatency/build M=/home/fcarreno/Baixades/rdisk/rapiddisk-master/module
make[2]: Entering directory '/usr/src/linux-headers-6.8.0-45-lowlatency'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
CC [M] /home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.o
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:166:5: warning: no previous prototype for ‘dm_io_async_bvec’ [-Wmissing-prototypes]
166 | int dm_io_async_bvec(unsigned int num_regions, struct dm_io_region *where,
| ^~~~~~~~~~~~~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c: In function ‘dm_io_async_bvec’:
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:202:16: error: too few arguments to function ‘dm_io’
202 | return dm_io(&iorq, num_regions, where, NULL);
| ^~~~~
In file included from /home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:46:
./include/linux/dm-io.h:82:5: note: declared here
82 | int dm_io(struct dm_io_request *io_req, unsigned int num_regions,
| ^~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c: At top level:
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:257:6: warning: no previous prototype for ‘rc_io_callback’ [-Wmissing-prototypes]
257 | void rc_io_callback(unsigned long error, void *context)
| ^~~~~~~~~~~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:373:5: warning: no previous prototype for ‘rc_do_complete’ [-Wmissing-prototypes]
373 | int rc_do_complete(struct kcached_job *job)
| ^~~~~~~~~~~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:415:6: warning: no previous prototype for ‘kcached_client_destroy’ [-Wmissing-prototypes]
415 | void kcached_client_destroy(struct cache_context *dmc)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:823:5: warning: no previous prototype for ‘rc_map’ [-Wmissing-prototypes]
823 | int rc_map(struct dm_target *ti, struct bio *bio)
| ^~~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:1263:12: warning: no previous prototype for ‘rc_init’ [-Wmissing-prototypes]
1263 | int __init rc_init(void)
| ^~~~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:1283:6: warning: no previous prototype for ‘rc_exit’ [-Wmissing-prototypes]
1283 | void rc_exit(void)
| ^~~~~~~
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c: In function ‘dm_io_async_bvec’:
/home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.c:203:1: error: control reaches end of non-void function [-Werror=return-type]
203 | }
| ^
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:243: /home/fcarreno/Baixades/rdisk/rapiddisk-master/module/rapiddisk-cache.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.8.0-45-lowlatency/Makefile:1925: /home/fcarreno/Baixades/rdisk/rapiddisk-master/module] Error 2
make[2]: *** [Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.8.0-45-lowlatency'
make[1]: *** [Makefile:37: all] Error 2
make[1]: Leaving directory '/home/fcarreno/Baixades/rdisk/rapiddisk-master/module'
make: *** [Makefile:29: module] Error 2

@fcarreno-git fcarreno-git changed the title Build error with kernel 6.0 Build error with kernel 6.8 Sep 22, 2024
@bberberov
Copy link
Contributor

Which release was this run on? Is it 24.04LTS?

@fcarreno-git
Copy link
Author

Yes, Kubuntu 24.04.1 LTS x86_64

@anbe42
Copy link
Contributor

anbe42 commented Oct 17, 2024

This should already be fixed in Git by #188.

@pkoutoupis
Copy link
Owner

I will cut a new release/label in the coming weeks but just llike @anbe42 states, it should be on master. @fcarreno-git please try master.

@fcarreno-git
Copy link
Author

Hi Petros,
I've tried new master version and it worked fine !
Thanks and congratulations for your work.
rapiddisk-install.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants