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

Stewart Smith stewart at linux.ibm.com
Thu Jul 18 16:51:14 AEST 2019


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 at linux.ibm.com>
---
 hdata/fsp.c              | 2 +-
 hdata/test/op920.wsp.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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";
 			};
 		};
-- 
2.21.0



More information about the Skiboot mailing list