Date: Tue, 18 Sep 2012 18:23:22 +0000 (UTC) From: Jim Harris <jimharris@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r240672 - head/sys/dev/nvme Message-ID: <201209181823.q8IINMMp039787@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209181823.q8IINMMp039787>