Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2024 20:31:05 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b75e32a466db - main - ipmi: fix powerpc build
Message-ID:  <202410182031.49IKV5so087224@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=b75e32a466dbab7a6729ff7a6472c6f9c9207491

commit b75e32a466dbab7a6729ff7a6472c6f9c9207491
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-10-18 20:30:02 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-10-18 20:30:44 +0000

    ipmi: fix powerpc build
    
    Fixes:  366d6a424e1faad9c151c5794978e218a79fbed8
---
 sys/dev/ipmi/ipmi_opal.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys/dev/ipmi/ipmi_opal.c b/sys/dev/ipmi/ipmi_opal.c
index ab0f14e8b3a8..ae7583a0d749 100644
--- a/sys/dev/ipmi/ipmi_opal.c
+++ b/sys/dev/ipmi/ipmi_opal.c
@@ -142,7 +142,8 @@ opal_ipmi_discard_msgs(struct opal_ipmi_softc *sc)
 }
 
 static int
-opal_ipmi_polled_request(struct opal_ipmi_softc *sc, struct ipmi_request *req)
+opal_ipmi_polled_request(struct opal_ipmi_softc *sc, struct ipmi_request *req,
+    int timo)
 {
 	uint64_t msg_len;
 	int err;
@@ -191,7 +192,7 @@ opal_ipmi_polled_request(struct opal_ipmi_softc *sc, struct ipmi_request *req)
 		goto out;
 	}
 
-	if ((err = opal_ipmi_recv(sc, &msg_len, 0)) == 0) {
+	if ((err = opal_ipmi_recv(sc, &msg_len, timo)) == 0) {
 		/* Subtract one extra for the completion code. */
 		req->ir_replylen = msg_len - sizeof(struct opal_ipmi_msg) - 1;
 		req->ir_replylen = min(req->ir_replylen, req->ir_replybuflen);
@@ -254,7 +255,7 @@ opal_ipmi_driver_request(struct ipmi_softc *isc, struct ipmi_request *req)
 
 	for (i = 0; i < 3; i++) {
 		IPMI_LOCK(&sc->ipmi);
-		err = opal_ipmi_polled_request(sc, req);
+		err = opal_ipmi_polled_request(sc, req, 0);
 		IPMI_UNLOCK(&sc->ipmi);
 		if (err == 0)
 			break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410182031.49IKV5so087224>