git: 12c56d7dc488 - main - mlx5: idiomatic use of preprocessor, in particular paths
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Feb 2022 14:46:17 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=12c56d7dc48821d84cc29e66f5d7f45e2ed8fd11 commit 12c56d7dc48821d84cc29e66f5d7f45e2ed8fd11 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-02-01 10:49:42 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-02-01 12:45:57 +0000 mlx5: idiomatic use of preprocessor, in particular paths MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/dev/mlx5/mlx5_core/mlx5_alloc.c | 3 +-- sys/dev/mlx5/mlx5_core/mlx5_cmd.c | 3 +-- sys/dev/mlx5/mlx5_core/mlx5_cq.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_eq.c | 4 ++-- sys/dev/mlx5/mlx5_core/mlx5_eswitch.c | 4 ++-- sys/dev/mlx5/mlx5_core/mlx5_fs_cmd.c | 4 ++-- sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c | 4 ++-- sys/dev/mlx5/mlx5_core/mlx5_fw.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_health.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_mad.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_main.c | 6 +++--- sys/dev/mlx5/mlx5_core/mlx5_mcg.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_mpfs.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_mr.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_pd.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_port.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_qp.c | 6 ++---- sys/dev/mlx5/mlx5_core/mlx5_rl.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_srq.c | 4 ++-- sys/dev/mlx5/mlx5_core/mlx5_tls.c | 5 ++--- sys/dev/mlx5/mlx5_core/mlx5_transobj.c | 5 ++--- sys/dev/mlx5/mlx5_core/mlx5_uar.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_vport.c | 2 +- sys/dev/mlx5/mlx5_core/mlx5_wq.c | 4 ++-- 25 files changed, 36 insertions(+), 42 deletions(-) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_alloc.c b/sys/dev/mlx5/mlx5_core/mlx5_alloc.c index 097e1c90207c..79aecb8aa252 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_alloc.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_alloc.c @@ -34,8 +34,7 @@ #include <linux/dma-mapping.h> #include <linux/vmalloc.h> #include <dev/mlx5/driver.h> - -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> /* Handling for queue buffers -- we allocate a bunch of memory and * register it in a memory region at HCA virtual address 0. If the diff --git a/sys/dev/mlx5/mlx5_core/mlx5_cmd.c b/sys/dev/mlx5/mlx5_core/mlx5_cmd.c index 2eaca4d83c6a..b2aec33e55c7 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_cmd.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_cmd.c @@ -40,8 +40,7 @@ #include <linux/ktime.h> #include <dev/mlx5/driver.h> #include <dev/mlx5/cmd.h> - -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> static int mlx5_copy_from_msg(void *to, struct mlx5_cmd_msg *from, int size); static void mlx5_free_cmd_msg(struct mlx5_core_dev *dev, diff --git a/sys/dev/mlx5/mlx5_core/mlx5_cq.c b/sys/dev/mlx5/mlx5_core/mlx5_cq.c index 50da5ec0ae3f..8f873bde6073 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_cq.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_cq.c @@ -34,7 +34,7 @@ #include <dev/mlx5/driver.h> #include <rdma/ib_verbs.h> #include <dev/mlx5/cq.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> #include <sys/epoch.h> diff --git a/sys/dev/mlx5/mlx5_core/mlx5_eq.c b/sys/dev/mlx5/mlx5_core/mlx5_eq.c index 9339b4cb8ecb..d51e97cd3e90 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_eq.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_eq.c @@ -33,8 +33,8 @@ #include <dev/mlx5/port.h> #include <dev/mlx5/mlx5_ifc.h> #include <dev/mlx5/mlx5_fpga/core.h> -#include "mlx5_core.h" -#include "eswitch.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/eswitch.h> #ifdef RSS #include <net/rss_config.h> diff --git a/sys/dev/mlx5/mlx5_core/mlx5_eswitch.c b/sys/dev/mlx5/mlx5_core/mlx5_eswitch.c index eff46501089a..6d3be72427c9 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_eswitch.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_eswitch.c @@ -34,8 +34,8 @@ #include <dev/mlx5/vport.h> #include <dev/mlx5/fs.h> #include <dev/mlx5/mpfs.h> -#include "mlx5_core.h" -#include "eswitch.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/eswitch.h> #define UPLINK_VPORT 0xFFFF diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_cmd.c b/sys/dev/mlx5/mlx5_core/mlx5_fs_cmd.c index e44feacf687e..1985bc97ce98 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_fs_cmd.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_cmd.c @@ -34,8 +34,8 @@ #include <dev/mlx5/device.h> #include <dev/mlx5/fs.h> -#include "fs_core.h" -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/fs_core.h> +#include <dev/mlx5/mlx5_core/mlx5_core.h> int mlx5_cmd_update_root_ft(struct mlx5_core_dev *dev, enum fs_ft_type type, diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c index f01b96fcb5aa..860c2331f03a 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c @@ -30,8 +30,8 @@ #include <linux/module.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" -#include "fs_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/fs_core.h> #include <linux/string.h> #include <linux/compiler.h> diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fw.c b/sys/dev/mlx5/mlx5_core/mlx5_fw.c index 3980c0a76402..c6118a6dbb21 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_fw.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_fw.c @@ -30,7 +30,7 @@ #include <dev/mlx5/driver.h> #include <linux/module.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> static int mlx5_cmd_query_adapter(struct mlx5_core_dev *dev, u32 *out, int outlen) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_health.c b/sys/dev/mlx5/mlx5_core/mlx5_health.c index 8f0565b2ed01..f75093b1d9db 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_health.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_health.c @@ -36,7 +36,7 @@ #include <linux/delay.h> #include <dev/mlx5/driver.h> #include <dev/mlx5/mlx5_ifc.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> #define MLX5_HEALTH_POLL_INTERVAL (2 * HZ) #define MAX_MISSES 3 diff --git a/sys/dev/mlx5/mlx5_core/mlx5_mad.c b/sys/dev/mlx5/mlx5_core/mlx5_mad.c index 18b2b902e2bc..e4bb111d5654 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_mad.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_mad.c @@ -31,7 +31,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb, u16 opmod, u8 port) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_main.c b/sys/dev/mlx5/mlx5_core/mlx5_main.c index 57ef629223d4..0745d19b2725 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_main.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_main.c @@ -47,9 +47,9 @@ #include <dev/mlx5/mlx5_ifc.h> #include <dev/mlx5/mlx5_fpga/core.h> #include <dev/mlx5/mlx5_lib/mlx5.h> -#include "mlx5_core.h" -#include "eswitch.h" -#include "fs_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/eswitch.h> +#include <dev/mlx5/mlx5_core/fs_core.h> #ifdef PCI_IOV #include <sys/nv.h> #include <dev/pci/pci_iov.h> diff --git a/sys/dev/mlx5/mlx5_core/mlx5_mcg.c b/sys/dev/mlx5/mlx5_core/mlx5_mcg.c index 2b791978e7fd..aa9c94a843b7 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_mcg.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_mcg.c @@ -32,7 +32,7 @@ #include <linux/module.h> #include <dev/mlx5/driver.h> #include <rdma/ib_verbs.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) { diff --git a/sys/dev/mlx5/mlx5_core/mlx5_mpfs.c b/sys/dev/mlx5/mlx5_core/mlx5_mpfs.c index b18ae211d37a..4d59c739105e 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_mpfs.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_mpfs.c @@ -36,7 +36,7 @@ #include <dev/mlx5/mpfs.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> #define MPFS_LOCK(dev) spin_lock(&(dev)->mpfs.spinlock) #define MPFS_UNLOCK(dev) spin_unlock(&(dev)->mpfs.spinlock) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_mr.c b/sys/dev/mlx5/mlx5_core/mlx5_mr.c index 21a982f6b553..e9534db24dc0 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_mr.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_mr.c @@ -31,7 +31,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> static int mlx5_relaxed_ordering_write; SYSCTL_INT(_hw_mlx5, OID_AUTO, relaxed_ordering_write, CTLFLAG_RWTUN, diff --git a/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c b/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c index 5f649ff16ce3..d298da67057a 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c @@ -32,7 +32,7 @@ #include <linux/module.h> #include <linux/delay.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> CTASSERT((uintptr_t)PAGE_MASK > (uintptr_t)PAGE_SIZE); diff --git a/sys/dev/mlx5/mlx5_core/mlx5_pd.c b/sys/dev/mlx5/mlx5_core/mlx5_pd.c index 5628aa64d5a4..9ee8ccf84061 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_pd.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_pd.c @@ -31,7 +31,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn, u16 uid) { diff --git a/sys/dev/mlx5/mlx5_core/mlx5_port.c b/sys/dev/mlx5/mlx5_core/mlx5_port.c index 173990843eec..2ee6dffd6434 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_port.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_port.c @@ -30,7 +30,7 @@ #include <linux/module.h> #include <dev/mlx5/port.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> int mlx5_core_access_reg(struct mlx5_core_dev *dev, void *data_in, int size_in, void *data_out, int size_out, diff --git a/sys/dev/mlx5/mlx5_core/mlx5_qp.c b/sys/dev/mlx5/mlx5_core/mlx5_qp.c index 4b5055a78836..c284efedbe46 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_qp.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_qp.c @@ -31,10 +31,8 @@ #include <linux/gfp.h> #include <dev/mlx5/qp.h> #include <dev/mlx5/driver.h> - -#include "mlx5_core.h" - -#include "transobj.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/transobj.h> static struct mlx5_core_rsc_common *mlx5_get_rsc(struct mlx5_core_dev *dev, u32 rsn) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_rl.c b/sys/dev/mlx5/mlx5_core/mlx5_rl.c index 2f66ab4748ed..aa8f351e0fc6 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_rl.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_rl.c @@ -31,7 +31,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> #ifdef RATELIMIT diff --git a/sys/dev/mlx5/mlx5_core/mlx5_srq.c b/sys/dev/mlx5/mlx5_core/mlx5_srq.c index 6deae4e0feeb..c59544f38b0c 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_srq.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_srq.c @@ -33,8 +33,8 @@ #include <dev/mlx5/driver.h> #include <dev/mlx5/srq.h> #include <rdma/ib_verbs.h> -#include "mlx5_core.h" -#include "transobj.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/transobj.h> void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type) { diff --git a/sys/dev/mlx5/mlx5_core/mlx5_tls.c b/sys/dev/mlx5/mlx5_core/mlx5_tls.c index 9fbcaa9aebb1..b8de7acd9277 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_tls.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_tls.c @@ -32,9 +32,8 @@ #include <linux/module.h> #include <dev/mlx5/driver.h> #include <dev/mlx5/tls.h> - -#include "mlx5_core.h" -#include "transobj.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/transobj.h> int mlx5_encryption_key_create(struct mlx5_core_dev *mdev, u32 pdn, const void *p_key, u32 key_len, u32 *p_obj_id) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_transobj.c b/sys/dev/mlx5/mlx5_core/mlx5_transobj.c index 1586223adcfe..27e56b8acb81 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_transobj.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_transobj.c @@ -29,9 +29,8 @@ #include "opt_ratelimit.h" #include <dev/mlx5/driver.h> - -#include "mlx5_core.h" -#include "transobj.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> +#include <dev/mlx5/mlx5_core/transobj.h> int mlx5_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn, u32 uid) { diff --git a/sys/dev/mlx5/mlx5_core/mlx5_uar.c b/sys/dev/mlx5/mlx5_core/mlx5_uar.c index eb67c3c98f57..ef92e58064f4 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_uar.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_uar.c @@ -32,7 +32,7 @@ #include <linux/module.h> #include <linux/io-mapping.h> #include <dev/mlx5/driver.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn) { diff --git a/sys/dev/mlx5/mlx5_core/mlx5_vport.c b/sys/dev/mlx5/mlx5_core/mlx5_vport.c index d3d4b8052474..4c90c3ddf4b6 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_vport.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_vport.c @@ -31,7 +31,7 @@ #include <linux/etherdevice.h> #include <dev/mlx5/driver.h> #include <dev/mlx5/vport.h> -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/mlx5_core.h> static int mlx5_modify_nic_vport_context(struct mlx5_core_dev *mdev, void *in, int inlen); diff --git a/sys/dev/mlx5/mlx5_core/mlx5_wq.c b/sys/dev/mlx5/mlx5_core/mlx5_wq.c index 41cb05366cae..87334f171938 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_wq.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_wq.c @@ -29,8 +29,8 @@ #include "opt_ratelimit.h" #include <dev/mlx5/driver.h> -#include "wq.h" -#include "mlx5_core.h" +#include <dev/mlx5/mlx5_core/wq.h> +#include <dev/mlx5/mlx5_core/mlx5_core.h> u32 mlx5_wq_cyc_get_size(struct mlx5_wq_cyc *wq) {