Skip to content

Commit

Permalink
[golan] Fix build error on some versions of gcc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
eworm-de authored and mcb30 committed Mar 23, 2016
1 parent 0a20373 commit 05027a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/infiniband/golan.c
Expand Up @@ -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" );
Expand Down

0 comments on commit 05027a7

Please sign in to comment.