build: add SPDX license tags to build system files

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #18077
This commit is contained in:
Rob Norris
2025-12-20 16:45:07 +11:00
committed by Brian Behlendorf
parent aca58dbb65
commit 85391ee931
212 changed files with 212 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
#
# cppcheck for userspace nodist_*_SOURCES are kernel code and cppcheck goes crazy on them.
#
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
#
# Default build rules for all user space components, every Makefile.am
# should include these rules and override or extend them as needed.
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
# Global ShellCheck exclusions:
#
# ShellCheck can't follow non-constant source. Use a directive to specify location. [SC1090]
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
subst_sed_cmd = \
-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
-e 's|@bindir[@]|$(bindir)|g' \
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Set the target cpu architecture. This allows the
dnl # following syntax to be used in a Makefile.am.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Enabled -fsanitize=address if supported by $CC.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check if cppcheck is available.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check if GNU parallel is available.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # The majority of the python scripts are written to be compatible
dnl # with Python 3.6. This option is intended to
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # ZFS_AC_PYTHON_MODULE(module_name, [action-if-true], [action-if-false])
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Set the flags used for sed in-place edits.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check if shellcheck and/or checkbashisms are available.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Set the target system
dnl #
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_compare_version.html
# ===========================================================================
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_count_cpus.html
# ===========================================================================
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-or-later WITH Autoconf-exception-macro
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
# ===========================================================================
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_restore_flags.html
# ===========================================================================
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_save_flags.html
# ===========================================================================
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
PHONY += deb-kmod deb-dkms deb-utils deb deb-local native-deb-local \
native-deb-utils native-deb-kmod native-deb
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
# find_system_lib.m4 - Macros to search for a system library. -*- Autoconf -*-
dnl requires pkg.m4 from pkg-config
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFULLR
# gettext.m4 serial 70 (gettext-0.20)
dnl Copyright (C) 1995-2014, 2016, 2018 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFULLR
# host-cpu-c-abi.m4 serial 11
dnl Copyright (C) 2002-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
+1
View File
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFULLR
# iconv.m4 serial 21
dnl Copyright (C) 2000-2002, 2007-2014, 2016-2019 Free Software Foundation,
dnl Inc.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 5.0: access_ok() drops 'type' parameter:
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.1 API change,
dnl # posix_acl_equiv_mode now wants an umode_t instead of a mode_t
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.16 API change
dnl # add_disk grew a must-check return code
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.10 kernel, check number of args of __assign_str() for trace:
dnl
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.37 API change
dnl # The dops->d_automount() dentry operation was added as a clean
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 4.8 API,
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.12 API change removes BIO_MAX_PAGES in favor of bio_max_segs()
dnl # which will handle the logic of setting the upper-bound to a
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.39 API change,
dnl # blk_start_plug() and blk_finish_plug()
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.38 API change,
dnl # Added blkdev_get_by_path()
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.38 API change
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.33 API change
dnl # Added eops->commit_metadata() callback to allow the underlying
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Certain kernel build options are not supported. These must be
dnl # detected at configure time and cause a build failure. Otherwise
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # On certain architectures `__copy_from_user_inatomic`
dnl # is a GPL exported variable and cannot be used by OpenZFS.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # cpu_has_feature() may referencing GPL-only cpu_feature_keys on powerpc
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Ensure the DECLARE_EVENT_CLASS macro is available to non-GPL modules.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.28 API change
dnl # Added d_obtain_alias() helper function.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.33 API change
dnl # Discard granularity and alignment restrictions may now be set.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.18 API change
dnl # - generic_drop_inode() renamed to inode_generic_drop()
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.12 removed f_version from struct file
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_COPY_SPLICE_READ], [
dnl #
dnl # Kernel 6.5 - generic_file_splice_read was removed in favor
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Starting from Linux 5.13, flush_dcache_page() becomes an inline
dnl # function and may indirectly referencing GPL-only symbols:
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.28 API change,
dnl # check if fmode_t typedef is defined
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.38 API change
dnl # follow_down() renamed follow_down_one(). The original follow_down()
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Handle differences in kernel FPU code.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 5.2 API change
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.38 API change
dnl # The .get_sb callback has been replaced by a .mount callback
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.6 API change,
dnl # fsync_bdev was removed in favor of sync_blockdev
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.3 API change
dnl # The generic_fadvise() function is present since 4.19 kernel
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.12 API
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check for generic io accounting interface.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.17 API change,
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.x API change
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.0 API change
dnl # struct iattr has two unions for the uid and gid
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.12 API
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_CREATE], [
dnl #
dnl # 6.3 API change
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_GETATTR], [
dnl #
dnl # Linux 6.3 API
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.6 API change
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_PERMISSION], [
dnl #
dnl # 6.3 API change
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_SETATTR], [
dnl #
dnl # Linux 6.3 API
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.19 API change. inode->i_state no longer accessible directly; helper
dnl # functions exist.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.28 API change
dnl # Added insert_inode_locked() helper function.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.39 API change,
dnl # The is_owner_or_cap() macro was renamed to inode_owner_or_capable(),
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.18: some architectures and config option causes the kasan_ inline
dnl # functions to reference the GPL-only symbol 'kasan_flag_enabled',
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.37 API change
dnl # kmap_atomic changed from assigning hard-coded named slot to using
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.11 API change
dnl # kmap_atomic() was deprecated in favor of kmap_local_page()
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Enabled by default it provides a minimal level of memory tracking.
dnl # A total count of bytes allocated is kept for each alloc and free.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_KTHREAD_COMPLETE_AND_EXIT], [
dnl #
dnl # 5.17 API,
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.5 API change,
dnl # Since usernamespaces were introduced in kernel version 3.5, it
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.8 API change,
dnl # User namespaces, use kuid_t in place of uid_t where available.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check for make_request_fn interface.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Determine an available miscellaneous minor number which can be used
dnl # for the /dev/zfs device. This is needed because kernel module
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Supported mkdir() interfaces checked newest to oldest.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_MKNOD], [
dnl #
dnl # 6.3 API change
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_FLAG_ERROR], [
ZFS_LINUX_TEST_SRC([mm_page_flag_error], [
#include <linux/page-flags.h>
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_SIZE], [
ZFS_LINUX_TEST_SRC([page_size], [
#include <linux/mm.h>
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.18 API change
dnl # ns->ops->type was moved to ns->ns.ns_type (struct ns_common)
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Detect objtool functionality.
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 5.16 no longer allows directly calling wait_on_page_bit, and
dnl # instead requires you to call folio-specific functions. In this case,
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 6.16 removed readahead_page
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.17 API: PDE_DATA() renamed to pde_data(),
dnl # 359745d78351c6f5442435f81549f0207ece28aa ("proc: remove PDE_DATA() completely")
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.10 API change,
dnl # The "count" was moved into ref->data, from ref
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check for pin_user_pages_unlocked().
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.6 API Change
dnl # The proc_ops structure was introduced to replace the use of
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_RECLAIMED], [
dnl #
dnl # 6.4 API change
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 6.5 removes register_sysctl_table
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_RENAME], [
dnl #
dnl # 4.9 API change,
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.11 API change
dnl # revalidate_disk_size() has been removed entirely.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # SB_DYING exists since Linux 6.6
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
# dnl
# dnl 5.8 (735e4ae5ba28) introduced a superblock scoped errseq_t to use to
# dnl record writeback errors for syncfs() to return. Up until 5.17, when
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.9 API change,
dnl # Moved things from linux/sched.h to linux/sched/rt.h
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.2 API change
dnl # The security_inode_init_security() API has been changed to include
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 3.2 API change
dnl # set_nlink()
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_SETATTR_PREPARE], [
dnl #
dnl # 4.9 API change
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.6 API change,
dnl # 'sget' now takes the mount flags as an argument.
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 3.3 API
dnl #
+1
View File
@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.1 API change
dnl # The super_block structure now stores a per-filesystem shrinker.

Some files were not shown because too many files have changed in this diff Show More