diff options
author | Christian Hesse <mail@eworm.de> | 2016-03-22 21:26:06 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-03-23 05:59:44 +0000 |
commit | 05027a7a125eee751e7aa2cd93f3a95f683f901a (patch) | |
tree | 01ae36d0816df2d8200c1be8a5b3ab8cb46f942a /src/drivers/infiniband | |
parent | 0a20373a2fb78622043277b4774676c55bbea22b (diff) | |
download | ipxe-05027a7a125eee751e7aa2cd93f3a95f683f901a.tar.gz |
[golan] Fix build error on some versions of gcc
Some versions of gcc complain that "'__bswap_variable_32' is static
but used in inline function 'golan_check_rc_and_cmd_status' which is
not static".
Fix by making golan_check_rc_and_cmd_status() a static inline.
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband')
-rwxr-xr-x | src/drivers/infiniband/golan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/infiniband/golan.c b/src/drivers/infiniband/golan.c index 9225c187f..64c75526b 100755 --- a/src/drivers/infiniband/golan.c +++ b/src/drivers/infiniband/golan.c @@ -120,7 +120,7 @@ const char *golan_qp_state_as_string[] = { "ERR" }; -inline int golan_check_rc_and_cmd_status ( struct golan_cmd_layout *cmd, int rc ) { +static inline int golan_check_rc_and_cmd_status ( struct golan_cmd_layout *cmd, int rc ) { struct golan_outbox_hdr *out_hdr = ( struct golan_outbox_hdr * ) ( cmd->out ); if ( rc == -EBUSY ) { DBG ( "HCA is busy (rc = -EBUSY)\n" ); |