ivc: Add wrapper header for ivc.h to avoid multiple inclusion

The ivc.h is not protected for multiple inclusion and so
it is generating error for multiple definition when included
from the source code.

Add wrapper header to protect the multiple inclusion of the ivc.h.

This will make the OOT driers to compile against all core kernel
which does not have proper ivc.h fix.

Change-Id: Ibe85da017d60f525b05d04cd6a5ea15c5b312057
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2784877
Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2022-09-30 09:08:15 +00:00
committed by mobile promotions
parent 1c7751c581
commit a6fd90fb31
3 changed files with 13 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
#include <linux/blkdev.h>
#include <linux/blk-mq.h>
#include <linux/bio.h>
#include <soc/tegra/ivc.h>
#include <soc/tegra/ivc-priv.h>
#include <soc/tegra/ivc_ext.h>
#include <soc/tegra/virt/hv-ivc.h>
#include <linux/workqueue.h>

View File

@@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef __TEGRA_IVC_PRIV_H
#define __TEGRA_IVC_PRIV_H
#include <soc/tegra/ivc.h>
#endif /* __TEGRA_IVC_PRIV_H */

View File

@@ -7,7 +7,7 @@
#define __TEGRA_IVC_EXT_H
#include <linux/types.h>
#include <soc/tegra/ivc.h>
#include <soc/tegra/ivc-priv.h>
/**
* tegra_ivc_channel_notified - notifies the peer device