[PATCH] ipe: remove headers that are included but not used
Fan Wu
wufan at kernel.org
Wed Dec 3 22:25:49 UTC 2025
On Wed, Dec 3, 2025 at 11:37 AM Yicong Hui <yiconghui at gmail.com> wrote:
>
> Remove headers that are included but not used in audit.c, audit.c,
> policy.c within the IPE module
>
> Change have been tested through kunit, kernel compiles and passes kunit
> tests
>
> Signed-off-by: Yicong Hui <yiconghui at gmail.com>
> ---
> security/ipe/audit.c | 1 -
> security/ipe/policy.c | 1 -
> security/ipe/policy_fs.c | 1 -
> 3 files changed, 3 deletions(-)
...
Hi Yicong,
Thanks for the patch. This kind of cleanup is appreciated.
Commit message typo: "audit. c, audit.c, policy. c" - audit. c is listed
twice.
I was trying to verify whether ipe.h is really not needed and found
that these files are missing explicit dependencies. policy.c and
policy_fs.c use rcu, mutex, and slab functions but rely on transitive
includes. After removing ipe.h, they still compile because eval.h
also happens to provide these dependencies indirectly.
I'm happy to merge a patch removing unused headers like ipe.h, but
would like to see the implicit dependencies resolved as well. Would
you mind tracing the complete dependencies and adding the explicit
includes in v2?
-Fan
More information about the Linux-security-module-archive
mailing list