Skip to content

Commit 7345316

Browse files
Umang Jaingregkh
authored andcommitted
staging: vchiq_debugfs: Use forward declarations
Use forward declarations for struct vchiq_state and vchiq_instance. We can then drop the vchiq_core.h header from vchiq_debugfs.h. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Link: https://lore.kernel.org/r/20241107194806.90408-4-umang.jain@ideasonboard.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1ee792f commit 7345316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#ifndef VCHIQ_DEBUGFS_H
55
#define VCHIQ_DEBUGFS_H
66

7-
#include "vchiq_core.h"
7+
struct vchiq_state;
8+
struct vchiq_instance;
89

910
struct vchiq_debugfs_node {
1011
struct dentry *dentry;

0 commit comments

Comments
 (0)