analogdevicesinc / linux

Linux kernel variant from Analog Devices; see README.md for details
https://github.com/analogdevicesinc/linux
Other
428 stars 828 forks source link

Make module error #2397

Closed ducanh1699 closed 7 months ago

ducanh1699 commented 7 months ago

Hello everyone, I am new to build kernel Image. When I build adrv9009 with option M modulizers in menuconfig I have the error: Error: modpost:"jesd204 _get_active_links_num" [drivers/iio/adc/ad9009_drv.ko] undefined! I follow all step in: https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/adrv9009 and https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842481/Build+kernel Something worng or missing in my config when making ? Tks for your answers!

mhennerich commented 7 months ago

I'll create a fix and PR for this. In the meantime add:

EXPORT_SYMBOL_GPL(jesd204_get_active_links_num);

underneath the function definition in jesd204-core.c Thanks for reporting

mhennerich commented 7 months ago

Please see: https://github.com/analogdevicesinc/linux/pull/2399

ducanh1699 commented 7 months ago

Tks

ducanh1699 commented 7 months ago

@mhennerich I'm sorry but I have another question. Because I just change the adrv9009 to adrv9025 and in the ADRV9025 does not have attribute "profile_config" like adrv9009 so how to change out_voltage_sampling_frequency ? Can you help me about this? Tks ^^