Skip to contentSkip to conversation

uacce: fix some coding styles

PATCH Superseded Kai Ye 3 participants 11 messages Sep 23, 2020 – Nov 2, 2020

Subsystems (2)
lore
Share & tools
lore

Kai Ye

author
#0 lore raw

v3 cover uacce: fix some coding styles

1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.

Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.

Kai Ye (2):
uacce: fix some coding styles
uacce: modify the module author information.

 drivers/misc/uacce/uacce.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
Signature · 1 line
2.8.1
author
#1 lore raw

PATCH v3 1/2 uacce: delete some redundant code.

Delete some redundant code.

---
 drivers/misc/uacce/uacce.c | 11 -----------
 1 file changed, 11 deletions(-)
drivers/misc/uacce/uacce.c +0 -11
index 107028e..9b83bc5 100644
@@ -239,17 +239,6 @@ static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma)
 
 	switch (type) {
 	case UACCE_QFRT_MMIO:
-		if (!uacce->ops->mmap) {
-			ret = -EINVAL;
-			goto out_with_lock;
-		}
-
-		ret = uacce->ops->mmap(q, vma, qfr);
-		if (ret)
-			goto out_with_lock;
-
-		break;
-
 	case UACCE_QFRT_DUS:
 		if (!uacce->ops->mmap) {
 			ret = -EINVAL;
Signature · 1 line
2.8.1
maintainer
#2 lore raw

Re: [PATCH v3 1/2] uacce: delete some redundant code.

Quoted 23 lines · Kai Ye

Delete some redundant code.

---
 drivers/misc/uacce/uacce.c | 11 -----------
 1 file changed, 11 deletions(-)
drivers/misc/uacce/uacce.c +0 -4
index 107028e..9b83bc5 100644
@@ -239,17 +239,6 @@ static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma)
 
 	switch (type) {
 	case UACCE_QFRT_MMIO:
-		if (!uacce->ops->mmap) {
-			ret = -EINVAL;
-			goto out_with_lock;
-		}

drivers/misc/uacce/uacce.c static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma) · line 244

Quoted 10 lines
drivers/misc/uacce/uacce.c +0 -7
-
-		ret = uacce->ops->mmap(q, vma, qfr);
-		if (ret)
-			goto out_with_lock;
-
-		break;
-
 	case UACCE_QFRT_DUS:
 		if (!uacce->ops->mmap) {
 			ret = -EINVAL;

Hi Hartman,

Could you take this patch?

Best,
Zhou

author
#3 lore raw

PATCH v3 2/2 uacce: modify the module author information.

In reply to Kai Ye

The spelling of "Hisilicon" is modified.

---
 drivers/misc/uacce/uacce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/uacce/uacce.c +1 -1
index 9b83bc5..1d09707 100644
@@ -530,5 +530,5 @@ subsys_initcall(uacce_init);
 module_exit(uacce_exit);
 
 MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Hisilicon Tech. Co., Ltd.");
+MODULE_AUTHOR("HiSilicon Tech. Co., Ltd.");
 MODULE_DESCRIPTION("Accelerator interface for Userland applications");
Signature · 1 line
2.8.1
maintainer
#4 lore raw

Re: [PATCH v3 2/2] uacce: modify the module author information.

Quoted 16 lines · Kai Ye

The spelling of "Hisilicon" is modified.

---
 drivers/misc/uacce/uacce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/uacce/uacce.c +0 -0
index 9b83bc5..1d09707 100644

drivers/misc/uacce/uacce.c subsys_initcall(uacce_init); · line 534

Quoted 6 lines
drivers/misc/uacce/uacce.c +1 -1
@@ -530,5 +530,5 @@ subsys_initcall(uacce_init);
 module_exit(uacce_exit);
 
 MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Hisilicon Tech. Co., Ltd.");
+MODULE_AUTHOR("HiSilicon Tech. Co., Ltd.");
 MODULE_DESCRIPTION("Accelerator interface for Userland applications");

Hi Hartman,

Could you take this patch?

Best,
Zhou

author
#5 lore raw
In reply to Kai Ye

Hi Hartman

Could you help to take this patch?
Thanks.

Quoted 16 lines · Kai Ye

1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.

Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.

Kai Ye (2):
uacce: fix some coding styles
uacce: modify the module author information.

  drivers/misc/uacce/uacce.c | 13 +------------
  1 file changed, 1 insertion(+), 12 deletions(-)
maintainer
#6 lore raw
In reply to Kai Ye
Quoted 9 lines · Kai Ye

1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.

Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.

Quoted 7 lines

Kai Ye (2):
uacce: fix some coding styles
uacce: modify the module author information.

 drivers/misc/uacce/uacce.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

Hi Hartman,

Could you help to take this clean up patch?

Best,
Zhou

#7 lore raw
Quoted 14 lines · Zhou Wang
Quoted 13 lines · Kai Ye

1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.

Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.

Kai Ye (2):
uacce: fix some coding styles
uacce: modify the module author information.

Quoted 7 lines
Quoted 3 lines
 drivers/misc/uacce/uacce.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

Hi Hartman,

Could you help to take this clean up patch?

I do not see a patch here :(

If I have missed something, please resend it.

thanks,

greg k-h

maintainer
#8 lore raw
Quoted 19 lines · Greg Kroah-Hartman
Quoted 18 lines · Zhou Wang
Quoted 16 lines · Kai Ye

1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.

Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.

Kai Ye (2):
uacce: fix some coding styles
uacce: modify the module author information.

 drivers/misc/uacce/uacce.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
Quoted 5 lines
Quoted 3 lines

Hi Hartman,

Could you help to take this clean up patch?

I do not see a patch here :(

I know the reason, Kai Ye did not To you and I also added your Email address in this ping :) I have replied patches directly.

Could you take them?

Best,
Zhou

Quoted 8 lines

If I have missed something, please resend it.

thanks,

greg k-h
.

#9 lore raw
Quoted 22 lines · Zhou Wang
Quoted 21 lines · Greg Kroah-Hartman
Quoted 20 lines · Zhou Wang
Quoted 9 lines · Kai Ye

1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.

Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.

Quoted 7 lines

Kai Ye (2):
uacce: fix some coding styles
uacce: modify the module author information.

 drivers/misc/uacce/uacce.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

Hi Hartman,

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Could you help to take this clean up patch?

I do not see a patch here :(

I know the reason, Kai Ye did not To you and I also added your Email address in this ping :) I have replied patches directly.

Could you take them?

I need them in a format that I can apply them in, please resend the whole series properly, so that I do not have to edit them by-hand.

thanks,

greg k-h

maintainer
#10 lore raw
Quoted 27 lines · Greg Kroah-Hartman
Quoted 26 lines · Zhou Wang
Quoted 24 lines · Greg Kroah-Hartman
Quoted 14 lines · Zhou Wang
Quoted 13 lines · Kai Ye

1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.

Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.

Kai Ye (2):
uacce: fix some coding styles
uacce: modify the module author information.

Quoted 7 lines
Quoted 3 lines
 drivers/misc/uacce/uacce.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

Hi Hartman,

Could you help to take this clean up patch?

I do not see a patch here :(

Quoted 7 lines
Quoted 4 lines

I know the reason, Kai Ye did not To you and I also added your Email address in this ping :) I have replied patches directly.

Could you take them?

I need them in a format that I can apply them in, please resend the whole series properly, so that I do not have to edit them by-hand.

Got it. Thanks!

Best,
Zhou

Quoted 6 lines

thanks,

greg k-h
.