svn commit: r366989 - head/sys/dev/nvme

Warner Losh imp at FreeBSD.org
Sat Oct 24 01:59:01 UTC 2020


Author: imp
Date: Sat Oct 24 01:59:01 2020
New Revision: 366989
URL: https://svnweb.freebsd.org/changeset/base/366989

Log:
  nvme: Remove compat code for older kernels
  
  Remove code that supported pre-2011 kernels. CTLTYPE_S64 was defined
  in rev 217616. All supported branches have it, so remove its compat
  definition as OBE.

Modified:
  head/sys/dev/nvme/nvme_sysctl.c

Modified: head/sys/dev/nvme/nvme_sysctl.c
==============================================================================
--- head/sys/dev/nvme/nvme_sysctl.c	Sat Oct 24 01:14:52 2020	(r366988)
+++ head/sys/dev/nvme/nvme_sysctl.c	Sat Oct 24 01:59:01 2020	(r366989)
@@ -52,16 +52,6 @@ SYSCTL_BOOL(_hw_nvme, OID_AUTO, verbose_cmd_dump, CTLF
     &nvme_verbose_cmd_dump, 0,
     "enable verbose command printting when a command fails");
 
-/*
- * CTLTYPE_S64 and sysctl_handle_64 were added in r217616.  Define these
- *  explicitly here for older kernels that don't include the r217616
- *  changeset.
- */
-#ifndef CTLTYPE_S64
-#define CTLTYPE_S64		CTLTYPE_QUAD
-#define sysctl_handle_64	sysctl_handle_quad
-#endif
-
 static void
 nvme_dump_queue(struct nvme_qpair *qpair)
 {


More information about the svn-src-head mailing list