Skip to content

Commit

Permalink
OS-7790 enable smatch build for illumos-joyent (fix gcc7 build)
Browse files Browse the repository at this point in the history
Reviewed by: Tim Foster <tim.foster@joyent.com>
Approved by: Tim Foster <tim.foster@joyent.com>
  • Loading branch information
John Levon committed Jul 23, 2019
1 parent c69b5d8 commit 2da796e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr/contrib/freebsd/dev/nvme/nvme.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
* SUCH DAMAGE.
*
* $FreeBSD$
*
* Copyright 2019 Joyent, Inc.
*/

#ifndef __NVME_H__
Expand Down Expand Up @@ -1076,7 +1078,10 @@ struct nvme_health_information_page {
uint8_t reserved2[296];
} __packed __aligned(4);

/* Currently sparse/smatch incorrectly packs this struct in some situations. */
#ifndef __CHECKER__
_Static_assert(sizeof(struct nvme_health_information_page) == 512, "bad size for nvme_health_information_page");
#endif

struct nvme_firmware_page {

Expand Down

0 comments on commit 2da796e

Please sign in to comment.