conftest: Fix test for SLAB_MEM_SPREAD

The conftest test for detecting if the definition SLAB_MEM_SPREAD is
present is not working as expected because it is using the 'functions'
type which is intended for only checking if a function is present or
not. Fix this by correcting the type to 'types'.

Bug 4471899

Change-Id: Iba3c9fe70a97793576d9f188d50628acb55f44df
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
(cherry picked from commit b8b92d5d5f)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3111545
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Jon Hunter
2024-04-03 13:06:11 +01:00
committed by mobile promotions
parent 91e87c9346
commit 91ee86eced

View File

@@ -7390,7 +7390,7 @@ compile_test() {
slab_flags_t flags = SLAB_MEM_SPREAD; slab_flags_t flags = SLAB_MEM_SPREAD;
}" }"
compile_check_conftest "$CODE" "NV_SLAB_MEM_SPREAD" "" "functions" compile_check_conftest "$CODE" "NV_SLAB_MEM_SPREAD" "" "types"
;; ;;
snd_soc_card_jack_new_has_no_snd_soc_jack_pins) snd_soc_card_jack_new_has_no_snd_soc_jack_pins)