icp: remove global icp includes

Only include the required icp headers.  There's no need to
include sys/zfs_context.h and pull in all of the zfs headers.

Sponsored-by: https://despairlabs.com/sponsor/
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #17861
This commit is contained in:
Brian Behlendorf 2025-10-30 17:41:25 -07:00
parent 913bdbf4d1
commit a49158c064
4 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,6 @@ AM_CPPFLAGS = \
-include $(top_builddir)/zfs_config.h \
-I$(top_builddir)/include \
-I$(top_srcdir)/include \
-I$(top_srcdir)/module/icp/include \
-I$(top_srcdir)/lib/libspl/include \
-I$(top_srcdir)/lib/libspl/include/os/@ac_system_l@ \
-I$(top_srcdir)/lib/libzpool/include

View File

@ -38,6 +38,8 @@ extern "C" {
#endif
#include <sys/zfs_context.h>
#include <sys/types.h>
#include <sys/uio.h>
/* Cryptographic Mechanisms */

View File

@ -1,6 +1,9 @@
libicp_la_CCASFLAGS = $(AM_CCASFLAGS)
libicp_la_CFLAGS = $(AM_CFLAGS) $(KERNEL_CFLAGS) $(LIBRARY_CFLAGS)
libicp_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
libicp_la_CPPFLAGS += -I$(top_srcdir)/module/icp/include
noinst_LTLIBRARIES += libicp.la
nodist_libicp_la_SOURCES = \

View File

@ -31,7 +31,6 @@
*/
#include <sys/zfs_context.h>
#include <sys/crypto/common.h>
#include <sys/crypto/impl.h>
#include <sys/crypto/sched_impl.h>