소스 검색

[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>
tags/v1.20.1
Christian Hesse 8 년 전
부모
커밋
05027a7a12
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/drivers/infiniband/golan.c

+ 1
- 1
src/drivers/infiniband/golan.c 파일 보기

@@ -120,7 +120,7 @@ const char *golan_qp_state_as_string[] = {
120 120
 	"ERR"
121 121
 };
122 122
 
123
-inline int golan_check_rc_and_cmd_status ( struct golan_cmd_layout *cmd, int rc ) {
123
+static inline int golan_check_rc_and_cmd_status ( struct golan_cmd_layout *cmd, int rc ) {
124 124
 	struct golan_outbox_hdr *out_hdr = ( struct golan_outbox_hdr * ) ( cmd->out );
125 125
 	if ( rc == -EBUSY ) {
126 126
 		DBG ( "HCA is busy (rc = -EBUSY)\n" );

Loading…
취소
저장