Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2020 04:28:25 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r368786 - stable/12/sys/dev/superio
Message-ID:  <202012190428.0BJ4SPb8007741@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rlibby
Date: Sat Dec 19 04:28:25 2020
New Revision: 368786
URL: https://svnweb.freebsd.org/changeset/base/368786

Log:
  MFC r349848 (by lwhsu):
  
  - Fix gcc build for superio(4)
  - Change string mapping of SUPERIO_DEV_NONE to distinguish from SUPERIO_DEV_MAX
  
  Reviewed by:	imp
  Discussed with:	avg, imp, jhb
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D20880

Modified:
  stable/12/sys/dev/superio/superio.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/superio/superio.c
==============================================================================
--- stable/12/sys/dev/superio/superio.c	Sat Dec 19 04:24:05 2020	(r368785)
+++ stable/12/sys/dev/superio/superio.c	Sat Dec 19 04:28:25 2020	(r368786)
@@ -419,7 +419,7 @@ devtype_to_str(superio_dev_type_t type)
 {
 	switch (type) {
 	case SUPERIO_DEV_NONE:
-		return ("invalid");
+		return ("none");
 	case SUPERIO_DEV_HWM:
 		return ("HWM");
 	case SUPERIO_DEV_WDT:
@@ -429,6 +429,7 @@ devtype_to_str(superio_dev_type_t type)
 	case SUPERIO_DEV_MAX:
 		return ("invalid");
 	}
+	return ("invalid");
 }
 
 static int



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