svn commit: r314038 - head/sys/dev/isp
Alexander Motin
mav at FreeBSD.org
Tue Feb 21 12:29:08 UTC 2017
Author: mav
Date: Tue Feb 21 12:29:07 2017
New Revision: 314038
URL: https://svnweb.freebsd.org/changeset/base/314038
Log:
Remove ancient __FreeBSD_version checks.
MFC after: 2 weeks
Modified:
head/sys/dev/isp/isp_freebsd.c
head/sys/dev/isp/isp_freebsd.h
Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c Tue Feb 21 12:24:31 2017 (r314037)
+++ head/sys/dev/isp/isp_freebsd.c Tue Feb 21 12:29:07 2017 (r314038)
@@ -41,12 +41,6 @@ __FBSDID("$FreeBSD$");
#include <cam/cam_periph.h>
#include <cam/cam_xpt_periph.h>
-#if __FreeBSD_version < 800002
-#define THREAD_CREATE kthread_create
-#else
-#define THREAD_CREATE kproc_create
-#endif
-
MODULE_VERSION(isp, 1);
MODULE_DEPEND(isp, cam, 1, 1, 1);
int isp_announced = 0;
@@ -176,7 +170,8 @@ isp_attach_chan(ispsoftc_t *isp, struct
#endif
isp_loop_changed(isp, chan);
ISP_UNLOCK(isp);
- if (THREAD_CREATE(isp_kthread, fc, &fc->kproc, 0, 0, "%s: fc_thrd%d", device_get_nameunit(isp->isp_osinfo.dev), chan)) {
+ if (kproc_create(isp_kthread, fc, &fc->kproc, 0, 0,
+ "%s_%d", device_get_nameunit(isp->isp_osinfo.dev), chan)) {
xpt_free_path(fc->path);
ISP_LOCK(isp);
xpt_bus_deregister(cam_sim_path(fc->sim));
Modified: head/sys/dev/isp/isp_freebsd.h
==============================================================================
--- head/sys/dev/isp/isp_freebsd.h Tue Feb 21 12:24:31 2017 (r314037)
+++ head/sys/dev/isp/isp_freebsd.h Tue Feb 21 12:29:07 2017 (r314038)
@@ -88,14 +88,6 @@ isp_ecmd_t * isp_get_ecmd(struct ispsoft
void isp_put_ecmd(struct ispsoftc *, isp_ecmd_t *);
#ifdef ISP_TARGET_MODE
-/* Not quite right, but there was no bump for this change */
-#if __FreeBSD_version < 225469
-#define SDFIXED(x) (&x)
-#else
-#define SDFIXED(x) ((struct scsi_sense_data_fixed *)(&x))
-#endif
-
-#define ISP_TARGET_FUNCTIONS 1
#define ATPDPSIZE 4096
#define ATPDPHASHSIZE 32
#define ATPDPHASH(x) ((((x) >> 24) ^ ((x) >> 16) ^ ((x) >> 8) ^ (x)) & \
More information about the svn-src-all
mailing list