* [PATCH] staging: wimax/i2400m: fix byte-order issue
@ 2021-02-20 12:26 ` karthik alapati
0 siblings, 0 replies; 6+ messages in thread
From: karthik alapati @ 2021-02-20 12:26 UTC (permalink / raw)
To: Greg Kroah-Hartman, shivang upadhyay; +Cc: devel, linux-kernel
fix sparse byte-order warnings by converting host byte-order
types to le32 types
Signed-off-by: karthik alapati <mail@karthek.com>
---
drivers/staging/wimax/i2400m/op-rfkill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wimax/i2400m/op-rfkill.c b/drivers/staging/wimax/i2400m/op-rfkill.c
index a159808f0..0f438ae6a 100644
--- a/drivers/staging/wimax/i2400m/op-rfkill.c
+++ b/drivers/staging/wimax/i2400m/op-rfkill.c
@@ -86,7 +86,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
if (cmd == NULL)
goto error_alloc;
cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_RF_CONTROL);
- cmd->hdr.length = sizeof(cmd->sw_rf);
+ cmd->hdr.length = cpu_to_le16(sizeof(cmd->sw_rf));
cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION);
cmd->sw_rf.hdr.type = cpu_to_le16(I2400M_TLV_RF_OPERATION);
cmd->sw_rf.hdr.length = cpu_to_le16(sizeof(cmd->sw_rf.status));
--
2.30.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] staging: wimax/i2400m: fix byte-order issue
@ 2021-02-20 12:26 ` karthik alapati
0 siblings, 0 replies; 6+ messages in thread
From: karthik alapati @ 2021-02-20 12:26 UTC (permalink / raw)
To: Greg Kroah-Hartman, shivang upadhyay; +Cc: devel, linux-kernel
fix sparse byte-order warnings by converting host byte-order
types to le32 types
Signed-off-by: karthik alapati <mail@karthek.com>
---
drivers/staging/wimax/i2400m/op-rfkill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wimax/i2400m/op-rfkill.c b/drivers/staging/wimax/i2400m/op-rfkill.c
index a159808f0..0f438ae6a 100644
--- a/drivers/staging/wimax/i2400m/op-rfkill.c
+++ b/drivers/staging/wimax/i2400m/op-rfkill.c
@@ -86,7 +86,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
if (cmd == NULL)
goto error_alloc;
cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_RF_CONTROL);
- cmd->hdr.length = sizeof(cmd->sw_rf);
+ cmd->hdr.length = cpu_to_le16(sizeof(cmd->sw_rf));
cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION);
cmd->sw_rf.hdr.type = cpu_to_le16(I2400M_TLV_RF_OPERATION);
cmd->sw_rf.hdr.length = cpu_to_le16(sizeof(cmd->sw_rf.status));
--
2.30.1
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] staging: wimax/i2400m: fix byte-order issue
2021-02-20 12:26 ` karthik alapati
@ 2021-02-22 5:43 ` Dan Carpenter
-1 siblings, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2021-02-22 5:43 UTC (permalink / raw)
To: karthik alapati; +Cc: Greg Kroah-Hartman, shivang upadhyay, devel, linux-kernel
On Sat, Feb 20, 2021 at 05:56:47PM +0530, karthik alapati wrote:
> fix sparse byte-order warnings by converting host byte-order
> types to le32 types
>
> Signed-off-by: karthik alapati <mail@karthek.com>
This is a v2 patch...
regards,
dan carpenter
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] staging: wimax/i2400m: fix byte-order issue
@ 2021-02-22 5:43 ` Dan Carpenter
0 siblings, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2021-02-22 5:43 UTC (permalink / raw)
To: karthik alapati; +Cc: devel, Greg Kroah-Hartman, linux-kernel, shivang upadhyay
On Sat, Feb 20, 2021 at 05:56:47PM +0530, karthik alapati wrote:
> fix sparse byte-order warnings by converting host byte-order
> types to le32 types
>
> Signed-off-by: karthik alapati <mail@karthek.com>
This is a v2 patch...
regards,
dan carpenter
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] staging: wimax/i2400m: fix byte-order issue
@ 2021-02-20 12:25 ` karthek
0 siblings, 0 replies; 6+ messages in thread
From: karthek @ 2021-02-20 12:25 UTC (permalink / raw)
To: Greg Kroah-Hartman, shivang upadhyay; +Cc: devel, linux-kernel
fix sparse byte-order warnings by converting host byte-order
types to le32 types
Signed-off-by: karthek <mail@karthek.com>
---
drivers/staging/wimax/i2400m/op-rfkill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wimax/i2400m/op-rfkill.c b/drivers/staging/wimax/i2400m/op-rfkill.c
index a159808f0..0f438ae6a 100644
--- a/drivers/staging/wimax/i2400m/op-rfkill.c
+++ b/drivers/staging/wimax/i2400m/op-rfkill.c
@@ -86,7 +86,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
if (cmd == NULL)
goto error_alloc;
cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_RF_CONTROL);
- cmd->hdr.length = sizeof(cmd->sw_rf);
+ cmd->hdr.length = cpu_to_le16(sizeof(cmd->sw_rf));
cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION);
cmd->sw_rf.hdr.type = cpu_to_le16(I2400M_TLV_RF_OPERATION);
cmd->sw_rf.hdr.length = cpu_to_le16(sizeof(cmd->sw_rf.status));
--
2.30.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] staging: wimax/i2400m: fix byte-order issue
@ 2021-02-20 12:25 ` karthek
0 siblings, 0 replies; 6+ messages in thread
From: karthek @ 2021-02-20 12:25 UTC (permalink / raw)
To: Greg Kroah-Hartman, shivang upadhyay; +Cc: devel, linux-kernel
fix sparse byte-order warnings by converting host byte-order
types to le32 types
Signed-off-by: karthek <mail@karthek.com>
---
drivers/staging/wimax/i2400m/op-rfkill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wimax/i2400m/op-rfkill.c b/drivers/staging/wimax/i2400m/op-rfkill.c
index a159808f0..0f438ae6a 100644
--- a/drivers/staging/wimax/i2400m/op-rfkill.c
+++ b/drivers/staging/wimax/i2400m/op-rfkill.c
@@ -86,7 +86,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
if (cmd == NULL)
goto error_alloc;
cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_RF_CONTROL);
- cmd->hdr.length = sizeof(cmd->sw_rf);
+ cmd->hdr.length = cpu_to_le16(sizeof(cmd->sw_rf));
cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION);
cmd->sw_rf.hdr.type = cpu_to_le16(I2400M_TLV_RF_OPERATION);
cmd->sw_rf.hdr.length = cpu_to_le16(sizeof(cmd->sw_rf.status));
--
2.30.1
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-02-22 5:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20 12:26 [PATCH] staging: wimax/i2400m: fix byte-order issue karthik alapati
2021-02-20 12:26 ` karthik alapati
2021-02-22 5:43 ` Dan Carpenter
2021-02-22 5:43 ` Dan Carpenter
-- strict thread matches above, loose matches on Subject: below --
2021-02-20 12:25 karthek
2021-02-20 12:25 ` karthek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.