From nobody Mon May 06 22:19:50 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VYG6v0gDRz5JSy3; Mon, 06 May 2024 22:19:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VYG6v09QRz4PyZ; Mon, 6 May 2024 22:19:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715033991; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nQ0j1iVD4XhKOmxyHZ83K5oWVVf7IrDY6eAPhyieeHw=; b=quNqQ3vlE2k94hdopRUrRUlgB84jh6NY3lVd47jDualhbDlrZY3rAwQ3si63s2SxQKAU6I /pwnF+F/rJzJpEE/I4pC5NC65/jDs1wtyXBIgnQli4ZL0FwdCsJdRMBwr7s8MuuCthRrjR 81KFdxspxiP5hkeDGD6S3YHjCHtjGVGyn1sZdiG40GKD03zeC9p5qRMq3qIKJSb5UiebJc jUbkSleVMFLFJoRMJWaY4DMYMUuudR5zPM+9mWu/yxQCO1dKwEg/igsHpTBggOnIgVmT7R 2Iu+64MEvl8Jsxfr9h7NqoACNKACW2GaAEdTxh5dC+hiMwAbxPB6G5YSItL0wQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715033991; a=rsa-sha256; cv=none; b=qL7NDRE0Mme3Z/tzNkOEIm4VC9z07LK2joFF6ph/fVy0Yzw8xBm9f4hCDnBOBWu5qOqPhp 94ywwQFNI6SfaJYDYQ6P2YXndbWxYtzO7DRKygmDPCb4/ft2NVAtoLdND0HUHFFCIQYm7R f/VxmOQCO2rULgjRKwha1HLmj2QXW67bO8R8WdJTzkh12dZ1QYEdHOFyx5zNFN/8gxAz9o 1Tx42KTp/9OfBw+gwFirhzNsxlDT5Jc7MHi32uZC/xierDB+oQb3P4ri+sNI2GwfHq7zRg 4PvaY//tWCVGtOvMFWgUnjq3HEPTyv/szYItUTvaL8a8VtSLNGqTIsKfawsWOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715033991; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nQ0j1iVD4XhKOmxyHZ83K5oWVVf7IrDY6eAPhyieeHw=; b=fiMZQ4qk7uZxY2VISf9VXqbjk2clkWdmVkYj7QbjngnqnjvIEuHYV7kl0LzMn/o5Zqc33a cA6pKi3OCbvtMi0WUM/m3ZWkjqRFCUqLyM2qQfvGfVqIr28msMj33CFfyCp1Fb3UfMbXvX JC7tttiMvwx29o22nPrAZ49wH0aPUqnPmUvZ92hpuSp3kP9Lgza8BIyvdkbwaKY8/SnBfB gGqTZyqZ1BcC8v1aZ3PIuXWsZc9plUNwvUP5W2HHKYEUKeJUCzCHA17lrjNBgYGu/sgqvx 7oHHqzJk9drBr9I545Kp7oJtq9DjeBLnVTF8po++ZWJIsUEyb1cMGDzOJm1Ujw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VYG6t6m2gzFbj; Mon, 6 May 2024 22:19:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 446MJogB036057; Mon, 6 May 2024 22:19:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 446MJoir036054; Mon, 6 May 2024 22:19:50 GMT (envelope-from git) Date: Mon, 6 May 2024 22:19:50 GMT Message-Id: <202405062219.446MJoir036054@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 1d425ef3414c - main - nvmf: Add explicit alignment for struct nvmf_fabric_cmd List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d425ef3414cdb0362c982f1820e659f2deb81a3 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1d425ef3414cdb0362c982f1820e659f2deb81a3 commit 1d425ef3414cdb0362c982f1820e659f2deb81a3 Author: John Baldwin AuthorDate: 2024-05-06 22:17:43 +0000 Commit: John Baldwin CommitDate: 2024-05-06 22:19:39 +0000 nvmf: Add explicit alignment for struct nvmf_fabric_cmd This avoids -Wcast-align warnings from clang when upcasting from struct nvmf_fabric_cmd to struct nvmf_fabric_prop_set_cmd. Reported by: bapt Sponsored by: Chelsio Communications --- sys/dev/nvmf/nvmf_proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/nvmf/nvmf_proto.h b/sys/dev/nvmf/nvmf_proto.h index 66e68ff384b0..f67c34acbf95 100644 --- a/sys/dev/nvmf/nvmf_proto.h +++ b/sys/dev/nvmf/nvmf_proto.h @@ -172,7 +172,7 @@ struct nvmf_fabric_cmd { uint16_t cid; uint8_t fctype; uint8_t reserved2[59]; -}; +} __aligned(8); struct nvmf_fabric_auth_recv_cmd { uint8_t opcode;