Skip to contentSkip to conversation

cxl/memdev: Clean up the function declaration of cxl_add_memdev()

PATCH In review [email protected] 2 participants 3 messages Nov 10, 2021 CXL

lore
Share & tools
lore
#0 lore raw

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
index 5341b0ba99a7..61029cb7ac62 100644
@@ -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
#1 lore raw
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

---
 drivers/cxl/core/memdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/cxl/core/memdev.c +0 -0
index 5341b0ba99a7..61029cb7ac62 100644

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.

author
#2 lore raw
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

---
 drivers/cxl/core/memdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/cxl/core/memdev.c +0 -0
index 5341b0ba99a7..61029cb7ac62 100644
@@ -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