diff --git a/scripts/conftest/Makefile b/scripts/conftest/Makefile index 6991f81a..715365da 100644 --- a/scripts/conftest/Makefile +++ b/scripts/conftest/Makefile @@ -209,6 +209,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += __v4l2_async_nf_add_subdev NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_subdev_pad_ops_struct_has_get_frame_interval NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_subdev_pad_ops_struct_has_dv_timings NV_CONFTEST_FUNCTION_COMPILE_TESTS += vm_area_struct_has_const_vm_flags +NV_CONFTEST_FUNCTION_COMPILE_TESTS += of_property_read_reg NV_CONFTEST_GENERIC_COMPILE_TESTS += is_export_symbol_present_drm_gem_prime_fd_to_handle NV_CONFTEST_GENERIC_COMPILE_TESTS += is_export_symbol_present_drm_gem_prime_handle_to_fd NV_CONFTEST_FUNCTION_COMPILE_TESTS += crypto_engine_ctx_struct_removed_test diff --git a/scripts/conftest/conftest.sh b/scripts/conftest/conftest.sh index eb632c33..10cdd005 100755 --- a/scripts/conftest/conftest.sh +++ b/scripts/conftest/conftest.sh @@ -8528,6 +8528,21 @@ compile_test() { compile_check_conftest "$CODE" "NV_CONFTEST_REMOVE_STRUCT_CRYPTO_ENGINE_CTX" "" "functions" ;; + of_property_read_reg) + # + # Determine if the function of_property_read_reg is present or not. + # + # The API is added with commit ff61bacd77f2 + # ("of/address: Add of_property_read_reg() helper") in Linux 6.4. + # + CODE=" + #include + void conftest_of_property_read_reg_present(void) { + of_property_read_reg(); + }" + + compile_check_conftest "$CODE" "NV_OF_PROPERTY_READ_REG_PRESENT" "" "functions" + ;; # When adding a new conftest entry, please use the correct format for # specifying the relevant upstream Linux kernel commit.