svn commit: r311060 - stable/10/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Mon Jan 2 09:09:47 UTC 2017
Author: arybchik
Date: Mon Jan 2 09:09:46 2017
New Revision: 311060
URL: https://svnweb.freebsd.org/changeset/base/311060
Log:
MFC r310691
sfxge(4): make strings array pointer itself immutable
Found by DPDK checkpatches.sh
Sponsored by: Solarflare Communications, Inc.
Modified:
stable/10/sys/dev/sfxge/common/efx_mon.c
stable/10/sys/dev/sfxge/common/efx_port.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/sfxge/common/efx_mon.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_mon.c Mon Jan 2 09:09:05 2017 (r311059)
+++ stable/10/sys/dev/sfxge/common/efx_mon.c Mon Jan 2 09:09:46 2017 (r311060)
@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
#if EFSYS_OPT_NAMES
-static const char *__efx_mon_name[] = {
+static const char * const __efx_mon_name[] = {
"",
"sfx90x0",
"sfx91x0",
Modified: stable/10/sys/dev/sfxge/common/efx_port.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_port.c Mon Jan 2 09:09:05 2017 (r311059)
+++ stable/10/sys/dev/sfxge/common/efx_port.c Mon Jan 2 09:09:46 2017 (r311060)
@@ -172,7 +172,7 @@ fail1:
#if EFSYS_OPT_NAMES
-static const char *__efx_loopback_type_name[] = {
+static const char * const __efx_loopback_type_name[] = {
"OFF",
"DATA",
"GMAC",
More information about the svn-src-all
mailing list