mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
media: Use conftest to find if v4l2_async_subdev_nf_init() present
Use conftest to find if function v4l2_async_subdev_nf_init() is present
or not.
In Linux 6.5, with change commit bda8953e8c3e7e ("media: v4l: async:
Drop v4l2_async_nf_parse_fwnode_endpoints()"), added the function
v4l2_async_subdev_nf_init() and dropped v4l2_async_nf_init().
Bug 4346767
Change-Id: I345db2acf0a07d05722611d9eacc7134aff0c35a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3028766
(cherry picked from commit 3839cecd1c)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3053708
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
711d4aee8d
commit
1f0954f43d
@@ -7509,6 +7509,23 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_V4L2_ASYNC_MATCH_TYPE_ENUM_PRESENT" "" "types"
|
||||
;;
|
||||
|
||||
v4l2_async_subdev_nf_init)
|
||||
#
|
||||
# Determine if the function v4l2_async_subdev_nf_init() present or not.
|
||||
#
|
||||
# In Linux 6.5, with change commit bda8953e8c3e7e ("media: v4l: async:
|
||||
# Drop v4l2_async_nf_parse_fwnode_endpoints()"), added the function
|
||||
# v4l2_async_subdev_nf_init() and dropped v4l2_async_nf_init().
|
||||
#
|
||||
CODE="
|
||||
#include <media/v4l2-async.h>
|
||||
void conftest_v4l2_async_subdev_nf_init(void) {
|
||||
v4l2_async_subdev_nf_init();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_V4L2_ASYNC_SUBDEV_NF_INIT_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