Re: [PATCH 1/2] iommu/vt-d: replace *hdr with hdr[0] in struct dmar_drhd_unit

2016-03-20 Thread Wei Yang
Obsolete this one. V2 is sent. On Sat, Mar 12, 2016 at 09:57:38PM +, Wei Yang wrote: >hdr in struct dmar_drhd_unit is used to point the DMAR hardware unit copied >at the end of struct dmar_drhd_unit. One zero-sized array may be more >elegant for this purpose. > >This patch replace *hdr with hd

[PATCH 1/2] iommu/vt-d: replace *hdr with hdr[0] in struct dmar_drhd_unit

2016-03-19 Thread Wei Yang
hdr in struct dmar_drhd_unit is used to point the DMAR hardware unit copied at the end of struct dmar_drhd_unit. One zero-sized array may be more elegant for this purpose. This patch replace *hdr with hdr[0] in struct dmar_drhd_unit. Besides this, this patch includes other two changes: 1. remove