mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
media: camera: Fix build for Linux v6.8+
In Linux v6.8, the 'g_frame_interval' and 's_frame_interval' function pointers were removed from the 'v4l2_subdev_video_ops' structure and replaced by 'get_frame_interval' and 'set_frame_interval' that were added to the 'v4l2_subdev_pad_ops' structure. This change was previously fixed for the Tegra CSI driver by adding the necessary conftest changes. A new update to the Tegra Cam V4L2 causes the build to fail for Linux v6.8+ kernels because of the same issue. Fix up the Tegra Cam V4L2 driver in the same way as the Tegra CSI driver, but update the name of the conftest test to indicate that this is applicable for both the 'get_frame_interval' and 'set_frame_interval' function pointers. Bug 4448428 Bug 4807063 Change-Id: Ica47f3aaece0bf81e2adc3c431056ea51b64a893 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3231775 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Brad Griffis <bgriffis@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f00b8b2cd4
commit
91416b264c
@@ -189,7 +189,7 @@ 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 += v4l2_subdev_pad_ops_struct_has_get_frame_interval
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += v4l2_subdev_pad_ops_struct_has_get_set_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_GENERIC_COMPILE_TESTS += is_export_symbol_present_drm_gem_prime_fd_to_handle
|
||||
|
||||
@@ -8217,10 +8217,12 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_V4L2_ASYNC_NF_ADD_SUBDEV_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
v4l2_subdev_pad_ops_struct_has_get_frame_interval)
|
||||
v4l2_subdev_pad_ops_struct_has_get_set_frame_interval)
|
||||
#
|
||||
# Determine if struct v4l2_subdev_pad_ops has the 'get_frame_interval'
|
||||
# function pointer.
|
||||
# and 'set_frame_interval' function pointers. Note that it is only
|
||||
# necessary to check for the presence of one because both were added
|
||||
# by the same commit.
|
||||
#
|
||||
# Added by commit 287fe160834a ("media: v4l2-subdev: Turn
|
||||
# .[gs]_frame_interval into pad operations") in Linux v6.8.
|
||||
@@ -8233,7 +8235,7 @@ compile_test() {
|
||||
}
|
||||
"
|
||||
compile_check_conftest "$CODE" \
|
||||
"NV_V4L2_SUBDEV_PAD_OPS_STRUCT_HAS_GET_FRAME_INTERVAL" "" "types"
|
||||
"NV_V4L2_SUBDEV_PAD_OPS_STRUCT_HAS_GET_SET_FRAME_INTERVAL" "" "types"
|
||||
;;
|
||||
|
||||
v4l2_subdev_pad_ops_struct_has_dv_timings)
|
||||
|
||||
Reference in New Issue
Block a user