Thread (4 messages) 4 messages, 3 authors, 2017-09-01

Re: [PATCH 08/15] powerpc/iommu: use permission-specific DEVICE_ATTR variants

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-10-31 06:07:04
Also in: kernel-janitors, lkml

Julia Lawall [off-list ref] writes:
quoted hunk ↗ jump to hunk
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index 5f202a5..32f18b5 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -127,8 +127,7 @@ static ssize_t fail_iommu_store(struct device *dev,
 	return count;
 }
 
-static DEVICE_ATTR(fail_iommu, S_IRUGO|S_IWUSR, fail_iommu_show,
-		   fail_iommu_store);
+static DEVICE_ATTR_RW(fail_iommu);
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)


cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help