mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvidia: vblk: fix compilation error
in Linux v5.18 the following upstream commit removes genhd.h and now only blkdev.h is needed. commit 322cbb50de711814c42fb088f6d31901502c711a Author: Christoph Hellwig <hch@lst.de> Date: Mon Jan 24 10:39:13 2022 +0100 block: remove genhd.h Using this change we are fixing below compilation error while upgrading the stable kernel. /dvs/git/dirty/git-master_linux/out/nvidia/kernel-nvidia-oot/ nvidia-oot/drivers/block/tegra_virt_storage/tegra_vblk.h:9:10: fatal error: linux/genhd.h: No such file or directory 9 | #include <linux/genhd.h> | ^~~~~~~~~~~~~~~ compilation terminated. Bug 3733730 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Change-Id: Ib110b749ca48fed092fcadb9a6ab47d81cc25397 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2784497 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
9ad6f3c84e
commit
272be41c99
@@ -6,7 +6,10 @@
|
||||
#ifndef _TEGRA_VBLK_H_
|
||||
#define _TEGRA_VBLK_H_
|
||||
|
||||
#include <linux/version.h>
|
||||
#if KERNEL_VERSION(5, 19, 0) > LINUX_VERSION_CODE
|
||||
#include <linux/genhd.h>
|
||||
#endif
|
||||
#include <linux/blkdev.h>
|
||||
#include <linux/blk-mq.h>
|
||||
#include <linux/bio.h>
|
||||
|
||||
Reference in New Issue
Block a user