Skip to content
Browse files

copy-builtin: SPL must be in Kbuild first (again)

Commit bced7e3 accidentally reintroduced issue #7595 which was
previously addressed by 517d247.  Re-apply the original fix to
resolve the issue and include a comment to make it clear the
ordering is important.

Reviewed-by: Ryan Moeller <>
Reviewed-by: Matthew Thode <>
Signed-off-by: Brian Behlendorf <>
Closes #9302
Closes #9208
  • Loading branch information...
behlendorf committed Sep 11, 2019
1 parent 25f06d6 commit 490e23cdf498d6aedb449c9dc606ae4e114d18b7
Showing with 7 additions and 0 deletions.
  1. +7 −0 copy-builtin
@@ -12,9 +12,16 @@ usage()
KERNEL_DIR="$(readlink --canonicalize-existing "$1")"


# When integrated in to a monolithic kernel the spl module must appear
# first. This ensures its module initialization function is run before
# any of the other module initialization functions which depend on it.

for MODULE_DIR in module/* module/os/linux/*
[ -d "$MODULE_DIR" ] || continue
[ "spl" = "${MODULE_DIR##*/}" ] && continue
[ "os" = "${MODULE_DIR#*/}" ] && continue

0 comments on commit 490e23c

Please sign in to comment.
You can’t perform that action at this time.