Manouchehri / smi2021

smi2021 v4l2 kernel driver
25 stars 13 forks source link

cant find saa7115 when building as module #38

Closed skeyvin closed 1 year ago

skeyvin commented 1 year ago

running make M=drivers/media/i2c modules gives a proper saa7115.ko which i load but make M=drivers/media/usb/smi2021 modules givessaa7115.h not found all the commands are in the root of the kernel tree. i tried with the old makefile but tha only makes a .mod file not a full .ko file

after changing files to #36 i get drivers/media/usb/smi2021/smi2021_main.c:529:9: error: unknown type name ‘mm_segment_t’ still unable to resolve this

https://github.com/animeavi/smi2021 fixed it