From nobody Sat May 20 16:28:34 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QNq022ZVPz4CG3W; Sat, 20 May 2023 16:28:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QNq021mLrz3Dk0; Sat, 20 May 2023 16:28:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684600114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0XbvvOoWolnqEkebwXMauc/tPCQaY24lQT3PKa45QdI=; b=pvzut8V/2Bur7UTaA+e0j8mppbgvMSfC/lbcJ5PvrOK9z0uzE4kOypqToI8YQKT8F2Jh4z zWdIRavZzZffJuNRx5rZNBgMh/BftwAyDFfVOyTY7L5uhkSQe8ZdIEZwVZ7pksUwBQ9y68 FyVLG7VkfNi6Sle3h7Mnu0k949yJvppBOK7SJvE07RD2zod07O2AsXIjWPOmHvybVvA86p 6oA2UldiJFv0aCMxZlC3w1KdC73wajDHJUEYAzrNhT0WQRK+RIgo8t+6n+FMARs9X60Zdp MljVqmkEOBixqDARBNjgAu1u6HkiuD9iueT92YUvxShsttflo1w2YHeIu10zwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684600114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0XbvvOoWolnqEkebwXMauc/tPCQaY24lQT3PKa45QdI=; b=wptrzT0EHK/j6BfzNbr8Z8VzSTJm/fq8v0SQcduk5PbPHgG9vdzUjBdtNhs7MfUVYbAhny L8n/Yar/Qu8eUyCxIP2o4g/SMqWsVW36LhnLYGf2cRFOrfkSlCCkKFx43cuZ8uj+V16Wmy 0s6ULCRVC9kVwTjyujEDQtVjK/knKsTGB1LTZJQaG2LTBj5tBhfAalFtKQFEIUjS2u6vrO QY9ig8rpenDIvATa6Us+hG5WS93IfIr6D1tyRJyWBUbbPYtLRPm/hPhaRCWrguJOnl6vi8 nNgnzDy8vHtcwrIHkKvmnWR1oAfjxd9v88mCrTId4q3Tn9nStImRwGBD1dpwVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684600114; a=rsa-sha256; cv=none; b=osbRLQ15nWhG9jhQ/bJVUh++tcgIJJPLLxDyXWGu5nJudvE+vJ5LtcERY6oI48/VqtPy23 PjZVoJxu9G12eM58NqWw9GagJYqcba3t2l7wILSmfgv9VMxLc1Yol9oZtsDVh/wiEQUl6r vNJ9cvNBD6xOA87HzzZBoDddlYcOGxKhAmYjWvrSDiNRzfpxtArtsQXQI4mQjGNPaGKcDo xR1EA5LQtyhFFKSA9h7PkiW9BcyKLrFC8VFmQoicmR+hHSEs/2JGFL0PrvhhVH7B51Yqwg JWvAMO9PoEfo2atPK4jEfPrjRPfd1qOMYGfXL6ppOO5aQQWJkjEcS46XhpxMtQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QNq020mKbzH4D; Sat, 20 May 2023 16:28:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34KGSYOi095619; Sat, 20 May 2023 16:28:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34KGSYUs095618; Sat, 20 May 2023 16:28:34 GMT (envelope-from git) Date: Sat, 20 May 2023 16:28:34 GMT Message-Id: <202305201628.34KGSYUs095618@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: c98146ae229c - main - cxgbe: Move ethofld_transmit under #ifdef INET || INET. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c98146ae229cc60834bfbecc229f2f7725e458d0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c98146ae229cc60834bfbecc229f2f7725e458d0 commit c98146ae229cc60834bfbecc229f2f7725e458d0 Author: John Baldwin AuthorDate: 2023-05-20 16:27:40 +0000 Commit: John Baldwin CommitDate: 2023-05-20 16:27:40 +0000 cxgbe: Move ethofld_transmit under #ifdef INET || INET. This fixes a -Wunused-function warning when building LINT-NOIP. Reported by: rpokala --- sys/dev/cxgbe/t4_sge.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index 2c7d7d4d031a..053cf724a9ba 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -331,13 +331,13 @@ static void drain_wrq_wr_list(struct adapter *, struct sge_wrq *); static int sysctl_bufsizes(SYSCTL_HANDLER_ARGS); #ifdef RATELIMIT -#if defined(INET) || defined(INET6) -static inline u_int txpkt_eo_len16(u_int, u_int, u_int); -#endif static int ethofld_fw4_ack(struct sge_iq *, const struct rss_header *, struct mbuf *); +#if defined(INET) || defined(INET6) +static inline u_int txpkt_eo_len16(u_int, u_int, u_int); static int ethofld_transmit(if_t, struct mbuf *); #endif +#endif static counter_u64_t extfree_refs; static counter_u64_t extfree_rels; @@ -6497,6 +6497,7 @@ done: ETID_FLOWC_NPARAMS * sizeof(struct fw_flowc_mnemval)), 16)) #define ETID_FLOWC_LEN16 (howmany(ETID_FLOWC_LEN, 16)) +#if defined(INET) || defined(INET6) static int send_etid_flowc_wr(struct cxgbe_rate_tag *cst, struct port_info *pi, struct vi_info *vi) @@ -6540,6 +6541,7 @@ send_etid_flowc_wr(struct cxgbe_rate_tag *cst, struct port_info *pi, return (0); } +#endif #define ETID_FLUSH_LEN16 (howmany(sizeof (struct fw_flowc_wr), 16)) @@ -6780,6 +6782,7 @@ ethofld_tx(struct cxgbe_rate_tag *cst) } } +#if defined(INET) || defined(INET6) static int ethofld_transmit(if_t ifp, struct mbuf *m0) { @@ -6838,6 +6841,7 @@ done: mtx_unlock(&cst->lock); return (rc); } +#endif static int ethofld_fw4_ack(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m0)