Merge tag 'iommu-updates-v5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[muen/linux.git] / drivers / iommu / intel-iommu.c
index c968b3c7bae0656aa3192ca10a5644d5c150b31e..87274b54febd0eb3cfb1dd3358609fa037c90095 100644 (file)
@@ -48,6 +48,7 @@
 #include <linux/dma-contiguous.h>
 #include <linux/dma-direct.h>
 #include <linux/crash_dump.h>
+#include <linux/numa.h>
 #include <asm/irq_remapping.h>
 #include <asm/cacheflush.h>
 #include <asm/iommu.h>
@@ -1719,7 +1720,7 @@ static struct dmar_domain *alloc_domain(int flags)
                return NULL;
 
        memset(domain, 0, sizeof(*domain));
-       domain->nid = -1;
+       domain->nid = NUMA_NO_NODE;
        domain->flags = flags;
        domain->has_iotlb_device = false;
        INIT_LIST_HEAD(&domain->devices);