kkamagui / bitleaker

This tool can decrypt a BitLocker-locked partition with the TPM vulnerability
Other
181 stars 35 forks source link

implicit declaration of function ‘ioremap_nocache #13

Open Thinkcore88 opened 1 year ago

Thinkcore88 commented 1 year ago

Any chance to fix this error (newest ubuntu):

error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration] 60 | buffer = (char) ioremap_nocache(RESERVED_START, RESERVED_SIZE); | ^~~~~~~ /home/karol/bitleaker/bitleaker-kernel-module/bitleaker-kernel-module.c:60:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 60 | buffer = (char) ioremap_nocache(RESERVED_START, RESERVED_SIZE); | ^ /home/karol/bitleaker/bitleaker-kernel-module/bitleaker-kernel-module.c:85:9: error: implicit declaration of function ‘iounmap’; did you mean ‘do_munmap’? [-Werror=implicit-function-declaration] 85 | iounmap(buffer); | ^~~ | do_munmap cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:257: /home/karol/bitleaker/bitleaker-kernel-module/bitleaker-kernel-module.o] Error 1 make[1]: [Makefile:1850: /home/karol/bitleaker/bitleaker-kernel-module] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic' make: *** [Makefile:4: all] Error 2 Finished.