[PATCH] Flask: drop bogus struct forwards decls

Jan Beulich posted 1 patch 1 week, 6 days ago
[PATCH] Flask: drop bogus struct forwards decls
Posted by Jan Beulich 1 week, 6 days ago
struct avc_entry doesn't need forward-declaring, it's entirely local to
avc.c.

The other struct-s are Linux ones, which aren't used anywhere at all.
(struct inode appears in commented out code in rbtree.h.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
Noticed while looking for patterns similar to what Andrew's
https://lists.xen.org/archives/html/xen-devel/2026-11/msg00798.html
eliminates.

--- a/xen/xsm/flask/include/avc.h
+++ b/xen/xsm/flask/include/avc.h
@@ -20,18 +20,6 @@
 
 extern bool flask_enforcing;
 
-/*
- * An entry in the AVC.
- */
-struct avc_entry;
-
-struct task_struct;
-struct vfsmount;
-struct dentry;
-struct inode;
-struct sock;
-struct sk_buff;
-
 /* Auxiliary data to use in generating the audit record. */
 struct avc_audit_data {
     char    type;