| Date | Wed, 9 Jul 2008 18:51:01 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH 12/34] AMD IOMMU: add detect code for AMD IOMMU hardware |
| |
On Thu, 26 Jun 2008 21:27:48 +0200 Joerg Roedel <joerg.roedel@amd.com> wrote:
> This patch adds the detection of AMD IOMMU hardware provided on information > from ACPI provided by the BIOS. > > ... > > +static int __init init_iommu_all(struct acpi_table_header *table) > +{ > + u8 *p = (u8 *)table, *end = (u8 *)table; > + struct ivhd_header *h; > + struct amd_iommu *iommu; > + int ret; > + > + INIT_LIST_HEAD(&amd_iommu_list);
Initialisation of a global list_head should be unnecessary. Just define the list_head with LIST_HEAD() and do it at compile-time.
|