mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 18:21:35 +03:00
Building the Tegra VBLK driver fails on various Linux v5.x versions due to mismatches in arguments. Reviewing the Linux history the arguments to the following functions changed in the following Linux versions ... 1. Linux v5.15 - The function __alloc_disk_node() is updated to pass an additional argument of type 'struct request_queue'. 2. Linux v5.16 - The functions blk_get_request() and blk_put_request() are replaced by blk_mq_alloc_request() and blk_mq_free_request(), respectively. 3. Linux v5.17 - Removes the argument of type 'struct gendisk' from the function blk_execute_rq(). 4. Linux v5.18 - Removes the header 'linux/genhd.h'. 5. Linux v6.0 - Replaces the function __alloc_disk_node() with blk_mq_alloc_disk_for_queue(). Update the Tegra VBLK driver to ensure that the correct functions and header files are used per the exact Linux version. Bug 3820317 Change-Id: Ia04ea78d1edcf7674030379159599949f13f3120 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2791669 Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>