Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2020 22:34:23 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r358133 - head/sys/vm
Message-ID:  <202002192234.01JMYNxX084607@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Wed Feb 19 22:34:22 2020
New Revision: 358133
URL: https://svnweb.freebsd.org/changeset/base/358133

Log:
  Silence a gcc warning about no return from a function that handles every
  possible enum in a switch statement.  I verified that this emits nothing
  as expected on clang.  radix relies on constant propagation to eliminate
  any branching from these access routines.
  
  Reported by:	lwhsu/tinderbox

Modified:
  head/sys/vm/vm_radix.c

Modified: head/sys/vm/vm_radix.c
==============================================================================
--- head/sys/vm/vm_radix.c	Wed Feb 19 21:12:59 2020	(r358132)
+++ head/sys/vm/vm_radix.c	Wed Feb 19 22:34:22 2020	(r358133)
@@ -208,6 +208,8 @@ vm_radix_node_load(smrnode_t *p, enum vm_radix_access 
 	case SMR:
 		return (smr_entered_load(p, vm_radix_smr));
 	}
+	/* This is unreachable, silence gcc. */
+	panic("vm_radix_node_get: Unknown access type");
 }
 
 static __inline void



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