diff --git a/scripts/conftest/Makefile b/scripts/conftest/Makefile index e6b7de28..e6dafa95 100644 --- a/scripts/conftest/Makefile +++ b/scripts/conftest/Makefile @@ -185,6 +185,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra264_chip_id NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_dev_iommu_get_stream_id NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_priv +NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_ops_struct_has_get_trip_type NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_send_xchar_has_u8_arg NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_write_has_u8_ptr_arg NV_CONFTEST_FUNCTION_COMPILE_TESTS += tty_operations_struct_set_termios_has_const_ktermios_arg diff --git a/scripts/conftest/conftest.sh b/scripts/conftest/conftest.sh index 3e54c89e..a2cab3d4 100755 --- a/scripts/conftest/conftest.sh +++ b/scripts/conftest/conftest.sh @@ -8093,6 +8093,23 @@ compile_test() { compile_check_conftest "$CODE" "NV_THERMAL_ZONE_DEVICE_PRIV_PRESENT" "" "functions" ;; + thermal_zone_device_ops_struct_has_get_trip_type) + # + # Determine if the 'thermal_zone_device_ops' structure has the 'get_trip_type' function pointer. + # + # Commit 35d8dbbb25ad ("thermal: core: Drop unused .get_trip_*() + # callbacks") removed function get_trip_type function pointer in + # thermal_zone_device_ops struct in Linux v6.5. + # + CODE=" + #include + void conftest_thermal_zone_device_ops_has_get_trip_type(struct thermal_zone_device_ops *ops) { + ops->get_trip_type = NULL; + }" + + compile_check_conftest "$CODE" "NV_THERMAL_ZONE_DEVICE_OPS_STRUCT_HAS_GET_TRIP_TYPE" "" "types" + ;; + tegra_dev_iommu_get_stream_id) # # Determine if the function tegra_dev_iommu_get_stream_id is present.