Date: Fri, 10 Nov 2017 13:30:14 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325650 - in head/sys/dev/mlx5: . mlx5_core Message-ID: <201711101330.vAADUEI7001098@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Nov 10 13:30:14 2017 New Revision: 325650 URL: https://svnweb.freebsd.org/changeset/base/325650 Log: Add const keyword to input-only argument in mlx5 core. Sponsored by: Mellanox Technologies MFC after: 1 week Modified: head/sys/dev/mlx5/driver.h head/sys/dev/mlx5/mlx5_core/mlx5_mad.c Modified: head/sys/dev/mlx5/driver.h ============================================================================== --- head/sys/dev/mlx5/driver.h Fri Nov 10 13:28:23 2017 (r325649) +++ head/sys/dev/mlx5/driver.h Fri Nov 10 13:30:14 2017 (r325650) @@ -862,7 +862,7 @@ int mlx5_core_dump_fill_mkey(struct mlx5_core_dev *dev u32 *mkey); int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn); int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn); -int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, void *inb, void *outb, +int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb, u16 opmod, u8 port); void mlx5_fwp_flush(struct mlx5_fw_page *fwp); void mlx5_fwp_invalidate(struct mlx5_fw_page *fwp); Modified: head/sys/dev/mlx5/mlx5_core/mlx5_mad.c ============================================================================== --- head/sys/dev/mlx5/mlx5_core/mlx5_mad.c Fri Nov 10 13:28:23 2017 (r325649) +++ head/sys/dev/mlx5/mlx5_core/mlx5_mad.c Fri Nov 10 13:30:14 2017 (r325650) @@ -30,7 +30,7 @@ #include <dev/mlx5/driver.h> #include "mlx5_core.h" -int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, void *inb, void *outb, +int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb, u16 opmod, u8 port) { struct mlx5_mad_ifc_mbox_in *in = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711101330.vAADUEI7001098>