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

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
CLEANFILES =
dist_noinst_DATA =
INSTALL_DATA_HOOKS =

View File

@@ -1,3 +1,4 @@
#!/bin/sh
# SPDX-License-Identifier: CDDL-1.0
autoreconf -fiv "$(dirname "$0")" && rm -rf "$(dirname "$0")"/autom4te.cache

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
bin_SCRIPTS =
bin_PROGRAMS =
sbin_SCRIPTS =

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
raidz_test_CFLAGS = $(AM_CFLAGS) $(KERNEL_CFLAGS)
raidz_test_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
zdb_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
zdb_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS)

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
include $(srcdir)/%D%/zed.d/Makefile.am
zed_CFLAGS = $(AM_CFLAGS)

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
zedconfdir = $(sysconfdir)/zfs/zed.d
dist_zedconf_DATA = \
%D%/zed-functions.sh \

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
sbin_PROGRAMS += zfs
CPPCHECKTARGETS += zfs

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
sbin_PROGRAMS += zinject
CPPCHECKTARGETS += zinject

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
zpool_CFLAGS = $(AM_CFLAGS)
zpool_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUUID_CFLAGS)

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
zfsexec_PROGRAMS += zpool_influxdb
CPPCHECKTARGETS += zpool_influxdb

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: CDDL-1.0
zstream_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
sbin_PROGRAMS += zstream

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.
#

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.

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]

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' \

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.

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Enabled -fsanitize=address if supported by $CC.
dnl #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check if cppcheck is available.
dnl #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check if GNU parallel is available.
dnl #

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

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 #

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 #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check if shellcheck and/or checkbashisms are available.
dnl #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Set the target system
dnl #

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_compare_version.html
# ===========================================================================

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_count_cpus.html
# ===========================================================================

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
# ===========================================================================

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_restore_flags.html
# ===========================================================================

View File

@@ -1,3 +1,4 @@
# SPDX-License-Identifier: FSFAP
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_save_flags.html
# ===========================================================================

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

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

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

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

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.

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 5.0: access_ok() drops 'type' parameter:
dnl #

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

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

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

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

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 4.8 API,
dnl #

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

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()

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()

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.38 API change
dnl #

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

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

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.

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 #

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 #

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.

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.

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()

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 6.12 removed f_version from struct file
dnl #

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

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:

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

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()

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Handle differences in kernel FPU code.
dnl #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 5.2 API change
dnl #

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

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

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

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.12 API
dnl #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check for generic io accounting interface.
dnl #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.17 API change,
dnl #

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 2.6.x API change
dnl #

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

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 5.12 API
dnl #

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

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

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # 3.6 API change
dnl #

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

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

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.

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [
dnl #

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.

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(),

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',

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

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()

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.

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,

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

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.

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check for make_request_fn interface.
dnl #

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

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Supported mkdir() interfaces checked newest to oldest.
dnl #

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

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>

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>

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)

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Detect objtool functionality.
dnl #

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,

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Linux 6.16 removed readahead_page
dnl #

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")

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

View File

@@ -1,3 +1,4 @@
dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # Check for pin_user_pages_unlocked().
dnl #

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

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

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