[PATCH skeleton 1/2] libopenbmc_intf: Fix non-arm devmem implementation

OpenBMC Patches openbmc-patches at stwcx.xyz
Wed Jun 29 23:00:59 AEST 2016


From: Joel Stanley <joel at jms.id.au>

Fixes the following error:

 In file included from button_reset_obj.c:4:0:
 ../libopenbmc_intf/openbmc.h:39:15: error: return type defaults to ‘int’ [-Werror=implicit-int]
 static inline devmem(uint32_t val, uint32_t reg)

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 libopenbmc_intf/openbmc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libopenbmc_intf/openbmc.h b/libopenbmc_intf/openbmc.h
index c1c0335..fe4deef 100644
--- a/libopenbmc_intf/openbmc.h
+++ b/libopenbmc_intf/openbmc.h
@@ -36,7 +36,7 @@ static inline uint32_t devmem_read(void* addr)
  //       write_reg(reg,val);
 //}
 #else
-static inline devmem(uint32_t val, uint32_t reg)
+static inline uint32_t devmem(uint32_t val, uint32_t reg)
 {
 }
 static inline uint32_t devmem_read(void* addr)
-- 
2.9.0




More information about the openbmc mailing list