svn commit: r329206 - in stable/11/sys/dev/mlx5: . mlx5_core

Hans Petter Selasky hselasky at FreeBSD.org
Tue Feb 13 15:07:40 UTC 2018


Author: hselasky
Date: Tue Feb 13 15:07:39 2018
New Revision: 329206
URL: https://svnweb.freebsd.org/changeset/base/329206

Log:
  MFC r325650:
  Add const keyword to input-only argument in mlx5 core.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/driver.h
  stable/11/sys/dev/mlx5/mlx5_core/mlx5_mad.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/driver.h
==============================================================================
--- stable/11/sys/dev/mlx5/driver.h	Tue Feb 13 15:05:23 2018	(r329205)
+++ stable/11/sys/dev/mlx5/driver.h	Tue Feb 13 15:07:39 2018	(r329206)
@@ -879,7 +879,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: stable/11/sys/dev/mlx5/mlx5_core/mlx5_mad.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_mad.c	Tue Feb 13 15:05:23 2018	(r329205)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_mad.c	Tue Feb 13 15:07:39 2018	(r329206)
@@ -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;


More information about the svn-src-all mailing list