svn commit: r323862 - stable/11/sys/contrib/octeon-sdk

Ed Maste emaste at FreeBSD.org
Thu Sep 21 12:31:52 UTC 2017


Author: emaste
Date: Thu Sep 21 12:31:51 2017
New Revision: 323862
URL: https://svnweb.freebsd.org/changeset/base/323862

Log:
  MFC r323587: octeon sdk: initialize variable to quiet Clang warning
  
  Clang complains "variable 'dummy' is uninitialized when used here".
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/sys/contrib/octeon-sdk/cvmx-l2c.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/contrib/octeon-sdk/cvmx-l2c.c
==============================================================================
--- stable/11/sys/contrib/octeon-sdk/cvmx-l2c.c	Thu Sep 21 11:56:31 2017	(r323861)
+++ stable/11/sys/contrib/octeon-sdk/cvmx-l2c.c	Thu Sep 21 12:31:51 2017	(r323862)
@@ -339,7 +339,7 @@ uint64_t cvmx_l2c_read_perf(uint32_t counter)
 static void fault_in(uint64_t addr, int len)
 {
     volatile char *ptr;
-    volatile char dummy;
+    volatile char dummy = 0;
     /*
      * Adjust addr and length so we get all cache lines even for
      * small ranges spanning two cache lines.


More information about the svn-src-all mailing list