conftest: Add devm_tegra_core_dev_init_opp_table_common

Add a test to the conftest script to check if the function
devm_tegra_core_dev_init_opp_table_common() is present in the kernel and
use the definition generated in the host1x driver.

Bug 3820317

Change-Id: Id04da12c8ced7129141036aaa26375113c544374
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3026923
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Jon Hunter
2023-12-02 15:55:06 +00:00
committed by mobile promotions
parent 591949a2f1
commit 732a0db90e
6 changed files with 25 additions and 6 deletions

View File

@@ -6553,6 +6553,24 @@ compile_test() {
compile_check_conftest "$CODE" "NV_DEVICE_ADD_DISK_HAS_INT_RETURN_TYPE" "" "types"
;;
devm_tegra_core_dev_init_opp_table_common)
#
# Determine whether devm_tegra_core_dev_init_opp_table_common is
# present.
#
# devm_tegra_core_dev_init_opp_table_common was added in commit
# 9131c6331726 ("soc/tegra: Add devm_tegra_core_dev_init_opp_table_common()")
# in Linux v5.17.
#
CODE="
#include <linux/thermal.h>
void conftest_devm_tegra_core_dev_init_opp_table_common(void) {
devm_tegra_core_dev_init_opp_table_common();
}"
compile_check_conftest "$CODE" "NV_DEVM_TEGRA_CORE_DEV_INIT_OPP_TABLE_COMMON_PRESENT" "" "functions"
;;
devm_thermal_of_zone_register)
#
# Determine whether devm_thermal_of_zone_register is present.