Fred78290 / nct6687d

Linux kernel module for Nuvoton NCT6687-R
GNU General Public License v2.0
215 stars 42 forks source link

Build fail implicit declaration of function ‘array3_size’ #33

Closed daocodedao closed 8 months ago

daocodedao commented 2 years ago

uname -a Linux NNB01 4.15.0-171-generic #180-Ubuntu SMP Wed Mar 2 17:25:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux linux-headers-4.15.0-171-generic

fxbox/driver/nct6687/4.15.0-171-generic/nct6687.c: In function ‘nct6687_create_attr_group’: /fxbox/driver/nct6687/4.15.0-171-generic/nct6687.c:394:25: error: implicit declaration of function ‘array3_size’; did you mean ‘jhash_size’? [-Werror=implicit-function-declaration] su = devm_kzalloc(dev, array3_size(repeat, count, sizeof(*su)), GFP_KERNEL); ^~~ jhash_size cc1: some warnings being treated as errors