lkml.org 
[lkml]   [2022]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] audit: remove obvious unnecessary header files
Paul Moore <paul@paul-moore.com> 于2022年8月31日周三 01:04写道:
>
>
> Hi Wuchi, can you explain what process you used to determine that
> these header file includes were unnecessary?

When reading the code, if I don't found the user of the *.h in the *.c
file,I will think that is unnecessary. For example, #include
<linux/kthread.h> in the audit.c, I don't found the use of kthread* in
the file.
But, I just build that without "W=1 " , the after test robot show that I
was wrong. and I don't sure that if it is true to remove some header
files.

thanks
wuchi
>
> --
> paul-moore.com

\
 
 \ /
  Last update: 2022-08-31 02:20    [W:0.073 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site