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

Jim Harris jimharris at FreeBSD.org
Tue Sep 18 18:23:22 UTC 2012


Author: jimharris
Date: Tue Sep 18 18:23:21 2012
New Revision: 240672
URL: http://svn.freebsd.org/changeset/base/240672

Log:
  Add #if 0 around nvme_async_event_cb() until NVMe AER functionality
  can be tested.
  
  This fixes a build warning found only with clang.

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

Modified: head/sys/dev/nvme/nvme_ctrlr.c
==============================================================================
--- head/sys/dev/nvme/nvme_ctrlr.c	Tue Sep 18 18:16:52 2012	(r240671)
+++ head/sys/dev/nvme/nvme_ctrlr.c	Tue Sep 18 18:23:21 2012	(r240672)
@@ -381,6 +381,11 @@ nvme_ctrlr_reset(struct nvme_controller 
 	return (nvme_ctrlr_enable(ctrlr));
 }
 
+/*
+ * Disable this code for now, since Chatham doesn't support
+ *  AERs so I have no good way to test them.
+ */
+#if 0
 static void
 nvme_async_event_cb(void *arg, const struct nvme_completion *status)
 {
@@ -398,6 +403,7 @@ nvme_async_event_cb(void *arg, const str
 	nvme_ctrlr_cmd_asynchronous_event_request(ctrlr, nvme_async_event_cb,
 	    ctrlr);
 }
+#endif
 
 static int
 nvme_ctrlr_identify(struct nvme_controller *ctrlr)


More information about the svn-src-all mailing list