mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
blk: vblk: Enable Ioctl in tegra_hv_vblk
Previous code was using the struct request.completion_data to pass the struct ioctl_request to the processing thread. This member variable is removed from kernel v6.5. Change contains: [1] Moving this variable from struct request to struct struct vblk_dev. [2] Copyright Banner is updated This makes the passing of the struct ioctl_request independent of linux kernel transition Bug 4311184 Change-Id: I3dd2c4ee9861516db770adcba345362395bf3fa3 Signed-off-by: gokull <gokull@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314801 Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -232,7 +232,6 @@ NV_CONFTEST_GENERIC_COMPILE_TESTS += is_export_symbol_present_queue_limits_set
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += crypto_engine_ctx_struct_removed_test
|
||||
NV_CONFTEST_MACRO_COMPILE_TESTS ?=
|
||||
NV_CONFTEST_SYMBOL_COMPILE_TESTS ?=
|
||||
NV_CONFTEST_TYPE_COMPILE_TESTS += request_struct_has_completion_data_arg
|
||||
|
||||
$(eval $(call NV_GENERATE_COMPILE_TEST_HEADER,functions,$(NV_CONFTEST_FUNCTION_COMPILE_TESTS)))
|
||||
$(eval $(call NV_GENERATE_COMPILE_TEST_HEADER,generic,$(NV_CONFTEST_GENERIC_COMPILE_TESTS)))
|
||||
|
||||
@@ -8161,23 +8161,6 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_REGISTER_SHRINKER_HAS_FMT_ARG" "" "types"
|
||||
;;
|
||||
|
||||
request_struct_has_completion_data_arg)
|
||||
#
|
||||
# Determine if the 'struct request' has the 'completion_data' member.
|
||||
#
|
||||
# In Linux v6.5, commit dc8cbb65dc17 ("block: remove dead struc
|
||||
# request->completion_data field") removes the 'completion_data' member
|
||||
# from the 'struct request'.
|
||||
#
|
||||
CODE="
|
||||
#include <linux/blk-mq.h>
|
||||
int conftest_request_struct_has_completion_data_arg(void) {
|
||||
return offsetof(struct request, completion_data);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_REQUEST_STRUCT_HAS_COMPLETION_DATA_ARG" "" "types"
|
||||
;;
|
||||
|
||||
shrinker_alloc)
|
||||
#
|
||||
# Determine if the shrinker alloc present or not.
|
||||
|
||||
Reference in New Issue
Block a user