cxl/memdev: Clean up the function declaration of cxl_add_memdev()
PATCH 1/1 cxl/memdev: Clean up the function declaration of cxl_add_memdev()
From: Ira Weiny <[email protected]>
Function return type and declaration should be on the same line.
[1] https://lore.kernel.org/linux-cxl/[email protected]/T/#m75fee4f12193169da20278cd48e9c655e904c88e
--- drivers/cxl/core/memdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/cxl/core/memdev.c +1 -2
@@ -276,8 +276,7 @@ static const struct file_operations cxl_memdev_fops = { .llseek = noop_llseek, }; -struct cxl_memdev * -devm_cxl_add_memdev (struct cxl_dev_state *cxlds) +struct cxl_memdev *devm_cxl_add_memdev (struct cxl_dev_state *cxlds) {struct cxl_memdev *cxlmd;struct device *dev;
Signature · 1 line
2.28.0.rc0.12.gb6a658bd00c9
Quoted 18 lines · On Wed, Nov 10, 2021 at 11:14 AM <[email protected]> wrote:
From: Ira Weiny <[email protected]>
Function return type and declaration should be on the same line.
[1] https://lore.kernel.org/linux-cxl/[email protected]/T/#m75fee4f12193169da20278cd48e9c655e904c88e
Suggested-by Jonathan Cameron <[email protected]>Signed-off-by Ira Weiny <[email protected]>--- drivers/cxl/core/memdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/cxl/core/memdev.c +0
-0
drivers/cxl/core/memdev.c static const struct file_operations cxl_memdev_fops = { · line 279
Quoted 6 lines
drivers/cxl/core/memdev.c +1
-2@@ -276,8 +276,7 @@ static const struct file_operations cxl_memdev_fops = { .llseek = noop_llseek, }; -struct cxl_memdev * -devm_cxl_add_memdev (struct cxl_dev_state *cxlds) +struct cxl_memdev *devm_cxl_add_memdev (struct cxl_dev_state *cxlds)
I went ahead and just folded this in since this commit has not been finalized on cxl/next yet.
Quoted 22 lines · Dan Williams
Quoted 21 lines · On Wed, Nov 10, 2021 at 11:14 AM <[email protected]> wrote:
From: Ira Weiny <[email protected]>
Function return type and declaration should be on the same line.
[1] https://lore.kernel.org/linux-cxl/[email protected]/T/#m75fee4f12193169da20278cd48e9c655e904c88e
Suggested-by Jonathan Cameron <[email protected]>Signed-off-by Ira Weiny <[email protected]>--- drivers/cxl/core/memdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/cxl/core/memdev.c +0
-0@@ -276,8 +276,7 @@ static const struct file_operations cxl_memdev_fops = { .llseek = noop_llseek, };
Quoted 6 lines
drivers/cxl/core/memdev.c static const struct file_operations cxl_memdev_fops = { · line 279
Quoted 3 lines
drivers/cxl/core/memdev.c +1
-2-struct cxl_memdev * -devm_cxl_add_memdev (struct cxl_dev_state *cxlds) +struct cxl_memdev *devm_cxl_add_memdev (struct cxl_dev_state *cxlds)I went ahead and just folded this in since this commit has not been finalized on cxl/next yet.
Works for me! Thanks.
Ira