svn commit: r361994 - in head/sys/mips: cavium/cryptocteon nlm/dev/sec

John Baldwin jhb at FreeBSD.org
Wed Jun 10 00:09:32 UTC 2020


Author: jhb
Date: Wed Jun 10 00:09:31 2020
New Revision: 361994
URL: https://svnweb.freebsd.org/changeset/base/361994

Log:
  Add some default cases for unreachable code to silence compiler warnings.
  
  This was caused by r361481 when the buffer type was changed from an
  int to an enum.
  
  Reported by:	mjg, rpokala
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/mips/cavium/cryptocteon/cryptocteon.c
  head/sys/mips/nlm/dev/sec/nlmseclib.c

Modified: head/sys/mips/cavium/cryptocteon/cryptocteon.c
==============================================================================
--- head/sys/mips/cavium/cryptocteon/cryptocteon.c	Tue Jun  9 23:03:48 2020	(r361993)
+++ head/sys/mips/cavium/cryptocteon/cryptocteon.c	Wed Jun 10 00:09:31 2020	(r361994)
@@ -323,6 +323,8 @@ cryptocteon_process(device_t dev, struct cryptop *crp,
 			goto done;
 		}
 		break;
+	default:
+		break;
 	}
 
 	if (csp->csp_cipher_alg != 0) {

Modified: head/sys/mips/nlm/dev/sec/nlmseclib.c
==============================================================================
--- head/sys/mips/nlm/dev/sec/nlmseclib.c	Tue Jun  9 23:03:48 2020	(r361993)
+++ head/sys/mips/nlm/dev/sec/nlmseclib.c	Wed Jun 10 00:09:31 2020	(r361994)
@@ -157,6 +157,8 @@ nlm_crypto_form_srcdst_segs(struct xlp_sec_command *cm
 			    crp->crp_buf.cb_buf, crp->crp_buf.cb_buf_len);
 		}
 		break;
+	default:
+		__assert_unreachable();
 	}
 	return (0);
 }


More information about the svn-src-all mailing list