mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
v4l2: Add conftest for v4l2 API changes in Linux 6.6
Add conftest to determine the API changes/deprecation
for V4L2 in Linux6.6. The changes are:
The device argument is added in the API v4l2_async_nf_init() with
commit b8ec754ae4c5 ("media: v4l: async: Set v4l2_device and subdev
in async notifier init") in Linux 6.6.
The API is removed with commit bda8953e8c3e ("media: v4l: async: Drop
v4l2_async_nf_parse_fwnode_endpoints()") in Linux 6.6
Bug 4346767
Change-Id: Ia225be8b4fb17003ec2899e872573dc05e9fde87
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3042900
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
0679fc19d6
commit
8df8cfc8e6
@@ -162,6 +162,8 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_connection_struct_present
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_match_type_enum_present
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_subdev_nf_init
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_notifier_init
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_async_nf_init_has_v4l2_dev_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += __v4l2_async_nf_add_subdev
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += vm_area_struct_has_const_vm_flags
|
||||
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
|
||||
|
||||
@@ -7663,6 +7663,39 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_V4L2_ASYNC_NOTIFIER_INIT_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
v4l2_async_nf_init_has_v4l2_dev_arg)
|
||||
#
|
||||
# Determine if the function v4l2_async_nf_init() has v4l2_dev argument or not.
|
||||
#
|
||||
# The device argument is added in the API v4l2_async_nf_init() with commit
|
||||
# b8ec754ae4c5 ("media: v4l: async: Set v4l2_device and subdev in async notifier init")
|
||||
# in Linux 6.6.
|
||||
#
|
||||
CODE="
|
||||
#include <media/v4l2-async.h>
|
||||
void conftest_v4l2_async_nf_init_has_v4l2_dev_arg(void) {
|
||||
v4l2_async_nf_init(NULL, NULL);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_V4L2_ASYNC_NF_INIT_HAS_V4L2_DEV_ARG" "" "types"
|
||||
;;
|
||||
|
||||
__v4l2_async_nf_add_subdev)
|
||||
#
|
||||
# Determine if the function __v4l2_async_nf_add_subdev() present or not.
|
||||
#
|
||||
# The API is removed with commit bda8953e8c3e ("media: v4l: async: Drop
|
||||
# v4l2_async_nf_parse_fwnode_endpoints()") in Linux 6.6
|
||||
#
|
||||
CODE="
|
||||
#include <media/v4l2-async.h>
|
||||
void conftest_v4l2_async_nf_add_subdev_present(void) {
|
||||
__v4l2_async_nf_add_subdev();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_V4L2_ASYNC_NF_ADD_SUBDEV_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
crypto_engine_ctx_struct_removed_test)
|
||||
#
|
||||
# Determine if struct 'crypto_engine_ctx' is removed in linux kernel.
|
||||
|
||||
Reference in New Issue
Block a user