mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
conftest: Add test for of_property_read_reg
Add test for of_property_read_reg function presence, used by the host1x driver. Change-Id: I2f735dece273cae6bc3c75f40704be6d08eb213d Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3253531 Reviewed-by: svcacv <svcacv@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Santosh BS <santoshb@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
5f7d8f89c6
commit
adaf80c7df
@@ -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
|
||||
|
||||
@@ -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 <linux/of_address.h>
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user