]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[golan] Fix build error on some versions of gcc
authorChristian Hesse <mail@eworm.de>
Tue, 22 Mar 2016 20:26:06 +0000 (21:26 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 23 Mar 2016 05:59:44 +0000 (05:59 +0000)
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>
src/drivers/infiniband/golan.c

index 9225c187f01a68d736959f9ea888f26a25abb1d0..64c75526bfb7d34ba6799f460c0e3ab509353e23 100755 (executable)
@@ -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" );