Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2020 11:59:45 +0000 (UTC)
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359034 - head/sys/contrib/octeon-sdk
Message-ID:  <202003171159.02HBxjL5008106@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arichardson
Date: Tue Mar 17 11:59:45 2020
New Revision: 359034
URL: https://svnweb.freebsd.org/changeset/base/359034

Log:
  Fix misleading indentation warning in OCTEON1 kernel
  
  This is required to switch MIPS to compile with LLVM by default (D23204).
  
  Reviewed By:	brooks
  Differential Revision: https://reviews.freebsd.org/D24091

Modified:
  head/sys/contrib/octeon-sdk/cvmx-dpi-defs.h

Modified: head/sys/contrib/octeon-sdk/cvmx-dpi-defs.h
==============================================================================
--- head/sys/contrib/octeon-sdk/cvmx-dpi-defs.h	Tue Mar 17 11:59:40 2020	(r359033)
+++ head/sys/contrib/octeon-sdk/cvmx-dpi-defs.h	Tue Mar 17 11:59:45 2020	(r359034)
@@ -408,11 +408,12 @@ static inline uint64_t CVMX_DPI_SLI_PRTX_ERR(unsigned 
 		case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
 
 			if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS1))
-			if ((offset <= 1))
-				return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + ((offset) & 1) * 8;
+				if ((offset <= 1))
+					return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + ((offset) & 1) * 8;
 			if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS2))
+				if ((offset <= 1))
+					return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + ((offset) & 1) * 8;
 			if ((offset <= 1))
-				return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + ((offset) & 1) * 8;			if ((offset <= 1))
 				return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + ((offset) & 1) * 8;
 			break;
 		case OCTEON_CN63XX & OCTEON_FAMILY_MASK:



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