All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] misc: eeprom/idt_89hpesx: Convert data structures to LE explicitly
@ 2024-01-30  4:06 Dawei Li
  2024-01-30  9:54 ` Serge Semin
  2024-01-30 14:04 ` Greg KH
  0 siblings, 2 replies; 6+ messages in thread
From: Dawei Li @ 2024-01-30  4:06 UTC (permalink / raw)
  To: arnd, gregkh
  Cc: fancer.lancer, lkp, linux-kernel, set_pte_at, Dawei Li, stable

For data structures needs cpu_to_le* conversion, its prototype needs to
be declared with __le* explicitly.

Fixes: cfad6425382e ("eeprom: Add IDT 89HPESx EEPROM/CSR driver")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401261250.b07Yt30Z-lkp@intel.com/
Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
Cc: <stable@vger.kernel.org>
---
 drivers/misc/eeprom/idt_89hpesx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/misc/eeprom/idt_89hpesx.c b/drivers/misc/eeprom/idt_89hpesx.c
index d807d08e2614..327afb866b21 100644
--- a/drivers/misc/eeprom/idt_89hpesx.c
+++ b/drivers/misc/eeprom/idt_89hpesx.c
@@ -129,7 +129,7 @@ struct idt_smb_seq {
 struct idt_eeprom_seq {
 	u8 cmd;
 	u8 eeaddr;
-	u16 memaddr;
+	__le16 memaddr;
 	u8 data;
 } __packed;
 
@@ -141,8 +141,8 @@ struct idt_eeprom_seq {
  */
 struct idt_csr_seq {
 	u8 cmd;
-	u16 csraddr;
-	u32 data;
+	__le16 csraddr;
+	__le32 data;
 } __packed;
 
 /*
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-31  2:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-30  4:06 [PATCH] misc: eeprom/idt_89hpesx: Convert data structures to LE explicitly Dawei Li
2024-01-30  9:54 ` Serge Semin
2024-01-30 14:04 ` Greg KH
2024-01-31  1:34   ` Dawei Li
2024-01-31  2:07     ` Greg KH
2024-01-31  2:19       ` Dawei Li

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.