mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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:
committed by
mobile promotions
parent
1c7751c581
commit
a6fd90fb31
@@ -10,7 +10,7 @@
|
|||||||
#include <linux/blkdev.h>
|
#include <linux/blkdev.h>
|
||||||
#include <linux/blk-mq.h>
|
#include <linux/blk-mq.h>
|
||||||
#include <linux/bio.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/ivc_ext.h>
|
||||||
#include <soc/tegra/virt/hv-ivc.h>
|
#include <soc/tegra/virt/hv-ivc.h>
|
||||||
#include <linux/workqueue.h>
|
#include <linux/workqueue.h>
|
||||||
|
|||||||
11
include/soc/tegra/ivc-priv.h
Normal file
11
include/soc/tegra/ivc-priv.h
Normal 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 */
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
#define __TEGRA_IVC_EXT_H
|
#define __TEGRA_IVC_EXT_H
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <soc/tegra/ivc.h>
|
#include <soc/tegra/ivc-priv.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tegra_ivc_channel_notified - notifies the peer device
|
* tegra_ivc_channel_notified - notifies the peer device
|
||||||
|
|||||||
Reference in New Issue
Block a user