Skip to content

Commit

Permalink
freebsd: remove __FBSDID macro use
Browse files Browse the repository at this point in the history
With FreeBSD's switch to git the $FreeBSD$ string is no longer expanded
and they have mostly been removed upstream.  Stop using __FBSDID and
remove the no-longer needed sys/cdefs.h includes.

Signed-off-by: Brooks Davis <brooks.davis@sri.com>
  • Loading branch information
brooksdavis committed Nov 14, 2023
1 parent 35da345 commit 73d1f0e
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 75 deletions.
3 changes: 0 additions & 3 deletions lib/libshare/os/freebsd/nfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
* Copyright (c) 2020, 2022 by Delphix. All rights reserved.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/vfs.h>

Expand Down
3 changes: 0 additions & 3 deletions lib/libspl/os/freebsd/mnttab.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
* functions.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/mount.h>
#include <sys/mntent.h>
Expand Down
3 changes: 0 additions & 3 deletions lib/libzfs/os/freebsd/libzfs_zmount.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
* This file implements Solaris compatible zmount() function.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/mount.h>
#include <sys/uio.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_atomic.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/lock.h>
#include <sys/mutex.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_dtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/queue.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_kmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/byteorder.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_kstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
* [2] https://illumos.org/man/9f/kstat_create
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/jail.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/priv.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_procfs_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/list.h>
#include <sys/mutex.h>
#include <sys/procfs_list.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_sunddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/jail.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_sysevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_taskq.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/kmem.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/counter.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/kmem.h>
#include <sys/kmem_cache.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/spl/spl_zone.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/zfs/crypto_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
* Portions of this file are derived from sys/geom/eli/g_eli_hmac.c
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/errno.h>

Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/zfs/dmu_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/dmu.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/zfs/kmod_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/param.h>
#include <sys/buf.h>
#include <sys/cmn_err.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/zfs/sysctl_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/zfs/zfs_file_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/dmu.h>
#include <sys/dmu_impl.h>
#include <sys/dmu_recv.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/zfs/zfs_ioctl_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/param.h>
#include <sys/conf.h>
Expand Down
3 changes: 0 additions & 3 deletions module/os/freebsd/zfs/zfs_ioctl_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*
*/

#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/nvpair.h>
Expand Down

0 comments on commit 73d1f0e

Please sign in to comment.