HomeFreeBSD

amd-vi: gcc build errors

Description

amd-vi: gcc build errors

amdvi_cmp_wait: gcc complained about a malformed string behind an ifdef.

struct amdvi_dte: widen the type of the first reserved bitfield so that
the packed representation would not cross an alignment boundary for that
type. Apparently that causes in-tree gcc (4.2) to insert padding
(despite packed, resulting in a wrong structure definition), and causes
more modern gcc to emit a warning.

ivrs_hdr_iterate_tbl: delete a misleading check about header length
being less than 0 (the type is unsigned) and replace it with a check
that the length doesn't exceed the table size.

Reviewed by: anish, grehan
Approved by: markj (mentor)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D11485

Details

Provenance
rlibbyAuthored on
Reviewer
anish
Differential Revision
D11485: amd-vi: fix gcc build errors
Parents
rS320763: Add MAP_GUARD and use it for stack grow area protection.
Branches
Unknown
Tags
Unknown