Re: [PATCH v11 02/11] lib/test_linear_ranges: add a test for the 'linear_ranges'

From: Vaittinen, Matti
Date: Fri May 08 2020 - 09:08:48 EST


Thanks a ton for head's up Mark!

On Fri, 2020-05-08 at 14:00 +0100, Mark Brown wrote:
> On Thu, May 07, 2020 at 09:06:08AM +0300, Matti Vaittinen wrote:
> > Add a KUnit test for the linear_ranges helper.
>
> This fails to build an x86 allmodconfig:
>
> ERROR: modpost: "linear_range_values_in_range_array"
> [lib/test_linear_ranges.ko] undefined!
> ERROR: modpost: "linear_range_get_selector_high"
> [lib/test_linear_ranges.ko] undefined!
> ERROR: modpost: "linear_range_get_selector_low_array"
> [lib/test_linear_ranges.ko] undefined!
> ERROR: modpost: "linear_range_get_value_array"
> [lib/test_linear_ranges.ko] undefined!
> make[2]: *** [/mnt/kernel/scripts/Makefile.modpost:94: __modpost]
> Error 1
> make[1]: *** [/mnt/kernel/Makefile:1319: modules] Error 2
> make: *** [Makefile:180: sub-make] Error 2
>
> The test code needs to select the library.

I'll add the select LINEAR_RANGES to KConfig and resend.

--Matti