Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2018 15:07:39 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r329206 - in stable/11/sys/dev/mlx5: . mlx5_core
Message-ID:  <201802131507.w1DF7dvq019775@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802131507.w1DF7dvq019775>