Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 08:35:15 +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: r312983 - head/sys/dev/mlx5
Message-ID:  <201701300835.v0U8ZFph059589@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Jan 30 08:35:15 2017
New Revision: 312983
URL: https://svnweb.freebsd.org/changeset/base/312983

Log:
  Make "desc" pointer non-constant inside the mlx5_core_diagnostics_entry
  structure. This fixes compilation with amd64-xtoolchain-gcc.
  
  PR:			216588
  MFC after:		1 week
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/dev/mlx5/diagnostics.h

Modified: head/sys/dev/mlx5/diagnostics.h
==============================================================================
--- head/sys/dev/mlx5/diagnostics.h	Mon Jan 30 04:51:18 2017	(r312982)
+++ head/sys/dev/mlx5/diagnostics.h	Mon Jan 30 08:35:15 2017	(r312983)
@@ -33,7 +33,7 @@
 #define	MLX5_CORE_DIAGNOSTICS_ENTRY(n, s, t) { #s, (t) },
 
 struct mlx5_core_diagnostics_entry {
-	const char *const desc;
+	const char *desc;
 	u16	counter_id;
 };
 



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