mm-dmapool-use-device_attr_ro-macro.patch removed from -mm tree
The patch titled
Subject: mm/dmapool: use DEVICE_ATTR_RO macro
has been removed from the -mm tree. Its filename was
mm-dmapool-use-device_attr_ro-macro.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: YueHaibing <[email protected]>
Subject: mm/dmapool: use DEVICE_ATTR_RO macro
Use DEVICE_ATTR_RO() helper instead of plain DEVICE_ATTR(), which makes the code a bit shorter and easier to read.
Signed-off-by YueHaibing <[email protected]>
Reviewed-by Andy Shevchenko <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/dmapool.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
mm/dmapool.c renamed from mm/dmapool.c~mm-dmapool-use-device_attr_ro-macro +2 -3
@@ -62,8 +62,7 @@ struct dma_page { /* cacheable header fstatic DEFINE_MUTEX (pools_lock);static DEFINE_MUTEX (pools_reg_lock); -static ssize_t -show_pools (struct device *dev,struct device_attribute *attr,char *buf) +static ssize_t pools_show (struct device *dev,struct device_attribute *attr,char *buf) {unsigned temp;unsigned size;
@@ -103,7 +102,7 @@ show_pools(struct device *dev, struct dereturn PAGE_SIZE - size; } -static DEVICE_ATTR(pools, 0444, show_pools, NULL); +static DEVICE_ATTR_RO (pools);/** * dma_pool_create - Creates a pool of consistent memory blocks, for dma.
_
Patches currently in -mm which might be from [email protected] are