git: 1c5e68711760 - main - mlx5: purge EOL release compatibility

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 04 Feb 2023 16:20:31 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=1c5e68711760712e5ddb95b138179bec65b314f8

commit 1c5e68711760712e5ddb95b138179bec65b314f8
Author:     Elliott Mitchell <ehem+freebsd@m5p.com>
AuthorDate: 2022-06-23 00:53:47 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-02-04 16:13:09 +0000

    mlx5: purge EOL release compatibility
    
    Remove FreeBSD 10 support code
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/603
    Differential Revision: https://reviews.freebsd.org/D35560
---
 sys/dev/mlx5/mlx5_fpga/mlx5fpga_core.c             | 2 --
 sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_main.c | 2 --
 2 files changed, 4 deletions(-)

diff --git a/sys/dev/mlx5/mlx5_fpga/mlx5fpga_core.c b/sys/dev/mlx5/mlx5_fpga/mlx5fpga_core.c
index 402a212d2f3d..26022ad09f74 100644
--- a/sys/dev/mlx5/mlx5_fpga/mlx5fpga_core.c
+++ b/sys/dev/mlx5/mlx5_fpga/mlx5fpga_core.c
@@ -568,8 +568,6 @@ void mlx5_fpga_client_unregister(struct mlx5_fpga_client *client)
 }
 EXPORT_SYMBOL(mlx5_fpga_client_unregister);
 
-#if (__FreeBSD_version >= 1100000)
 MODULE_DEPEND(mlx5fpga, linuxkpi, 1, 1, 1);
-#endif
 MODULE_DEPEND(mlx5fpga, mlx5, 1, 1, 1);
 MODULE_VERSION(mlx5fpga, 1);
diff --git a/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_main.c b/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_main.c
index 6cd165c434f9..f0d31c4affee 100644
--- a/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_main.c
+++ b/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_main.c
@@ -36,9 +36,7 @@
 #include <dev/mlx5/mlx5_fpga_tools/tools.h>
 #include <dev/mlx5/mlx5_fpga_tools/tools_char.h>
 
-#if (__FreeBSD_version >= 1100000)
 MODULE_DEPEND(mlx5fpga_tools, linuxkpi, 1, 1, 1);
-#endif
 MODULE_DEPEND(mlx5fpga_tools, mlx5, 1, 1, 1);
 MODULE_DEPEND(mlx5fpga_tools, mlx5fpga, 1, 1, 1);
 MODULE_VERSION(mlx5fpga_tools, 1);