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

From: Mark Brown
Date: Fri May 08 2020 - 09:00:30 EST


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.

Attachment: signature.asc
Description: PGP signature