diff mbox series

[07/10] sparse: hdata/fsp: u8 doesn't have endian

Message ID 20190718065117.16923-8-stewart@linux.ibm.com
State Accepted
Headers show
Series Misc sparse fixes | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (3a6fdede6ce117facec0108afe716cf5d0472c3f)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Stewart Smith July 18, 2019, 6:51 a.m. UTC
hdata/fsp.c:271:9: warning: incorrect type in argument 1 (different base types)
hdata/fsp.c:271:9:    expected restricted beint32_t [usertype] be_val
hdata/fsp.c:271:9:    got unsigned char const [usertype] uart_int_number
hdata/fsp.c:271:9: warning: incorrect type in argument 1 (different base types)
hdata/fsp.c:271:9:    expected restricted beint32_t [usertype] be_val
hdata/fsp.c:271:9:    got unsigned char const [usertype] uart_int_number

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 hdata/fsp.c              | 2 +-
 hdata/test/op920.wsp.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/hdata/fsp.c b/hdata/fsp.c
index 2bf691f81446..efa3a487a6a7 100644
--- a/hdata/fsp.c
+++ b/hdata/fsp.c
@@ -269,7 +269,7 @@  static void add_uart(const struct spss_iopath *iopath, struct dt_node *lpc)
 	dt_add_property_cells(serial, "clock-frequency",
 		be32_to_cpu(iopath->lpc.uart_clk));
 	dt_add_property_cells(serial, "interrupts",
-		be32_to_cpu(iopath->lpc.uart_int_number));
+			      iopath->lpc.uart_int_number);
 	dt_add_property_string(serial, "device_type", "serial");
 
 
diff --git a/hdata/test/op920.wsp.dts b/hdata/test/op920.wsp.dts
index 4c61b0e7c97d..fbc5a39c8a53 100644
--- a/hdata/test/op920.wsp.dts
+++ b/hdata/test/op920.wsp.dts
@@ -3254,7 +3254,7 @@ 
 				compatible = "ns16550";
 				current-speed = <0x1c200>;
 				clock-frequency = <0x1c2000>;
-				interrupts = <0x4000000>;
+				interrupts = <0x04>;
 				device_type = "serial";
 			};
 		};