Commit ded318ec authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen

[PATCH] Fix broken indentation in iommu_setup

No functional changes; only white space.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent ece66840
...@@ -248,58 +248,58 @@ EXPORT_SYMBOL(dma_set_mask); ...@@ -248,58 +248,58 @@ EXPORT_SYMBOL(dma_set_mask);
*/ */
__init int iommu_setup(char *p) __init int iommu_setup(char *p)
{ {
iommu_merge = 1; iommu_merge = 1;
if (!p) if (!p)
return -EINVAL; return -EINVAL;
while (*p) { while (*p) {
if (!strncmp(p,"off",3)) if (!strncmp(p,"off",3))
no_iommu = 1; no_iommu = 1;
/* gart_parse_options has more force support */ /* gart_parse_options has more force support */
if (!strncmp(p,"force",5)) if (!strncmp(p,"force",5))
force_iommu = 1; force_iommu = 1;
if (!strncmp(p,"noforce",7)) { if (!strncmp(p,"noforce",7)) {
iommu_merge = 0; iommu_merge = 0;
force_iommu = 0; force_iommu = 0;
} }
if (!strncmp(p, "biomerge",8)) { if (!strncmp(p, "biomerge",8)) {
iommu_bio_merge = 4096; iommu_bio_merge = 4096;
iommu_merge = 1; iommu_merge = 1;
force_iommu = 1; force_iommu = 1;
} }
if (!strncmp(p, "panic",5)) if (!strncmp(p, "panic",5))
panic_on_overflow = 1; panic_on_overflow = 1;
if (!strncmp(p, "nopanic",7)) if (!strncmp(p, "nopanic",7))
panic_on_overflow = 0; panic_on_overflow = 0;
if (!strncmp(p, "merge",5)) { if (!strncmp(p, "merge",5)) {
iommu_merge = 1; iommu_merge = 1;
force_iommu = 1; force_iommu = 1;
} }
if (!strncmp(p, "nomerge",7)) if (!strncmp(p, "nomerge",7))
iommu_merge = 0; iommu_merge = 0;
if (!strncmp(p, "forcesac",8)) if (!strncmp(p, "forcesac",8))
iommu_sac_force = 1; iommu_sac_force = 1;
if (!strncmp(p, "allowdac", 8)) if (!strncmp(p, "allowdac", 8))
forbid_dac = 0; forbid_dac = 0;
if (!strncmp(p, "nodac", 5)) if (!strncmp(p, "nodac", 5))
forbid_dac = -1; forbid_dac = -1;
#ifdef CONFIG_SWIOTLB #ifdef CONFIG_SWIOTLB
if (!strncmp(p, "soft",4)) if (!strncmp(p, "soft",4))
swiotlb = 1; swiotlb = 1;
#endif #endif
#ifdef CONFIG_IOMMU #ifdef CONFIG_IOMMU
gart_parse_options(p); gart_parse_options(p);
#endif #endif
p += strcspn(p, ","); p += strcspn(p, ",");
if (*p == ',') if (*p == ',')
++p; ++p;
} }
return 0; return 0;
} }
early_param("iommu", iommu_setup); early_param("iommu", iommu_setup);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment