Date: Sun, 3 Sep 2017 16:45:19 +0000 (UTC) From: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r323148 - stable/11/sys/dev/nvme Message-ID: <201709031645.v83GjJY2081945@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Sun Sep 3 16:45:18 2017 New Revision: 323148 URL: https://svnweb.freebsd.org/changeset/base/323148 Log: MFH (r314888): silence aliasing warning in nvme.h Approved by: imp Modified: stable/11/sys/dev/nvme/nvme.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/nvme/nvme.h ============================================================================== --- stable/11/sys/dev/nvme/nvme.h Sun Sep 3 09:41:40 2017 (r323147) +++ stable/11/sys/dev/nvme/nvme.h Sun Sep 3 16:45:18 2017 (r323148) @@ -919,7 +919,8 @@ void nvme_ns_rw_cmd(struct nvme_command *cmd, uint32_t { cmd->opc = rwcmd; cmd->nsid = nsid; - *(uint64_t *)&cmd->cdw10 = lba; + cmd->cdw10 = lba & 0xffffffffu; + cmd->cdw11 = lba >> 32; cmd->cdw12 = count-1; cmd->cdw13 = 0; cmd->cdw14 = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709031645.v83GjJY2081945>