diff mbox series

oradax: fix typo in dax_dbg message

Message ID 20250123201909.15469-1-algonell@gmail.com
State New
Headers show
Series oradax: fix typo in dax_dbg message | expand

Commit Message

Andrew Kreimer Jan. 23, 2025, 8:17 p.m. UTC
There is a typo in a printk message: copyin -> copying.

Fix it via codespell.

Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
 drivers/sbus/char/oradax.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rob Gardner Jan. 23, 2025, 8:23 p.m. UTC | #1
That is not a typo. "Copyin" is correct as it refers to copying data in 
from user space.

Rob



On 1/23/25 13:17, Andrew Kreimer wrote:
> There is a typo in a printk message: copyin -> copying.
>
> Fix it via codespell.
>
> Signed-off-by: Andrew Kreimer <algonell@gmail.com>
> ---
>   drivers/sbus/char/oradax.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/sbus/char/oradax.c b/drivers/sbus/char/oradax.c
> index a536dd6f4f7c..3f93208b616a 100644
> --- a/drivers/sbus/char/oradax.c
> +++ b/drivers/sbus/char/oradax.c
> @@ -874,7 +874,7 @@ static int dax_ccb_exec(struct dax_ctx *ctx, const char __user *buf,
>   	 * user in between validation and submission.
>   	 */
>   	if (copy_from_user(ctx->ccb_buf, buf, count)) {
> -		dax_dbg("copyin of user CCB buffer failed");
> +		dax_dbg("copying of user CCB buffer failed");
>   		ctx->result.exec.status = DAX_SUBMIT_ERR_CCB_ARR_MMU_MISS;
>   		return 0;
>   	}
Andrew Kreimer Jan. 26, 2025, 6:07 p.m. UTC | #2
On Thu, Jan 23, 2025 at 01:23:20PM -0700, Rob Gardner wrote:
> That is not a typo. "Copyin" is correct as it refers to copying data in from
> user space.

My bad!
John Paul Adrian Glaubitz Jan. 26, 2025, 6:32 p.m. UTC | #3
Hi Rob,

On Thu, 2025-01-23 at 13:23 -0700, Rob Gardner wrote:
> That is not a typo. "Copyin" is correct as it refers to copying data in 
> from user space.

If it's "copying in" data from user space, it should be spelled "copy in"
and not "copyin" unless my English grammar skills are failing me.

Adrian
Rob Gardner Jan. 27, 2025, 4:44 a.m. UTC | #4
On 1/26/25 11:32, John Paul Adrian Glaubitz wrote:
> Hi Rob,
>
> On Thu, 2025-01-23 at 13:23 -0700, Rob Gardner wrote:
>> That is not a typo. "Copyin" is correct as it refers to copying data in
>> from user space.
> If it's "copying in" data from user space, it should be spelled "copy in"
> and not "copyin" unless my English grammar skills are failing me.
>

The resulting phrase "copy in of user CCB buffer" would contain two 
consecutive prepositions, which is poor English grammar. ;)

There used to be a kernel function called copyin() that was changed to 
copy_from_user() in the dim past. But I think "copyin" is still widely 
understood as an /operation/, not an English word, kind of like "ccb".

Apologies to all for cluttering up multiple lists with this trivia.

Rob
diff mbox series

Patch

diff --git a/drivers/sbus/char/oradax.c b/drivers/sbus/char/oradax.c
index a536dd6f4f7c..3f93208b616a 100644
--- a/drivers/sbus/char/oradax.c
+++ b/drivers/sbus/char/oradax.c
@@ -874,7 +874,7 @@  static int dax_ccb_exec(struct dax_ctx *ctx, const char __user *buf,
 	 * user in between validation and submission.
 	 */
 	if (copy_from_user(ctx->ccb_buf, buf, count)) {
-		dax_dbg("copyin of user CCB buffer failed");
+		dax_dbg("copying of user CCB buffer failed");
 		ctx->result.exec.status = DAX_SUBMIT_ERR_CCB_ARR_MMU_MISS;
 		return 0;
 	}