Date: Sat, 24 Oct 2020 01:59:01 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366989 - head/sys/dev/nvme Message-ID: <202010240159.09O1x1j9061129@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010240159.09O1x1j9061129>