From nobody Thu Feb 17 22:01:45 2022 X-Original-To: dev-commits-src-main@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 59B2919BC0B7; Thu, 17 Feb 2022 22:01:47 +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 4K081R0tvhz3k9c; Thu, 17 Feb 2022 22:01:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645135307; 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=TFtbZ7R/1xTJzRSV2M9Tq9h3DK4txn/wFfOlE6HERRw=; b=VA5W+cMIajtxz6yaLDr9T90KGZbuNCTSCYHAbuLGgkNKtjdh3DablK2DYVds1sHLkIIyu6 9iqQuIjxzVgfklL0SLgurzSw1oU3bZWRBv19sKZJfjQ4kBp6b4VecKxa5isjYOzj1XWLWH I+pBy9vofWyQwAwkZ8YhhAQFY7LhWcFTBe3CF5z+iE1/BcPvEmJnIjnwk6rGwcCV8X355u 3g5I58tMR9A/qgaCFZ8BMzAnH4tKT4DFRGg1BlZl9alIMxgPCHD07dD0RPn1z1pYI71NhK xX0L7+1RsJEZlaRyKpUnRZgyEieQxvnjobGzvCKLyMxyNvR8wLkTGp8i2rAVqw== 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 DD35211C33; Thu, 17 Feb 2022 22:01:45 +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 21HM1jfm017764; Thu, 17 Feb 2022 22:01:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21HM1j8r017763; Thu, 17 Feb 2022 22:01:45 GMT (envelope-from git) Date: Thu, 17 Feb 2022 22:01:45 GMT Message-Id: <202202172201.21HM1j8r017763@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 11c4d4b9668c - main - sctp: fix a signed/unsigned mismatch. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 11c4d4b9668c3092838beb168e0bbb3187433748 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645135307; 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=TFtbZ7R/1xTJzRSV2M9Tq9h3DK4txn/wFfOlE6HERRw=; b=tGAjUfHl6I1YCC4TUz/9lE3U5cIPpiZnvykQQGdEz+y+0UQGk2U4pr5YGjPt1ARNIF6owv +iaxztVIk5JHqkPRbQrYadBb5h571IQvT4+Hfv3yiDQlThzK+mMO5CeYdl5hB1BQBR8qZh vZjElAtrpk6IyQ7BVHm6tbMgqKRi99nZisV6SA5zI2nqOzlw/lHrgNAxvunG+IMtqhx/Aq yTy4UD8FP29n7gyOK+18Jx6Zifb2MFxchahXW9S+uv1+pWiN0n8vci4IaraO2pUzq1Cel4 b6VMxdF6MeYfE+KwKEPZPHxqCfC6X5suKrATMH+Dfo7jw+TRLyHf311jUP3yEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645135307; a=rsa-sha256; cv=none; b=jD6/7iZAUhBjAjg0+XpQlccMXD5Ek4VSYy/Dy9sXSNXoxbIopJHWZkxeEaXfwOvr8GFDhl fVXsbZ6lJMfNMbbVNTnHfreSqXiihTfdMhyDkHlU1+9tH2RxwR3W2JKwJBW4hHKtPaSfIQ 9VsaAKskjuktpnM+Q/zq8qpbSiLQnmRHVsZq+W4XUGRQMfFQj76JLtzvFLe+SbZfDfDd3a Y0iJ9ygJcjRvnRn0TweyXTyOMXxNznbW2DFG7NipQeBFTMzDiJCW0Iu9uanV55lASFMwie VqTjs1MdvtjOrGwK37Z8thhPGBcDa51+fEVe+hAoj9KIsLLlGQCe76vJvht33Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=11c4d4b9668c3092838beb168e0bbb3187433748 commit 11c4d4b9668c3092838beb168e0bbb3187433748 Author: Michael Tuexen AuthorDate: 2022-02-17 21:44:41 +0000 Commit: Michael Tuexen CommitDate: 2022-02-17 21:45:57 +0000 sctp: fix a signed/unsigned mismatch. MFC after: 3 days --- sys/netinet/sctp_crc32.c | 2 +- sys/netinet/sctp_crc32.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c index 9e17637d74d6..816a72bbea7b 100644 --- a/sys/netinet/sctp_crc32.c +++ b/sys/netinet/sctp_crc32.c @@ -90,7 +90,7 @@ sctp_calculate_cksum_cb(void *arg, void *data, u_int len) * it is compiled on a kernel with SCTP support. */ uint32_t -sctp_calculate_cksum(struct mbuf *m, uint32_t offset) +sctp_calculate_cksum(struct mbuf *m, int32_t offset) { uint32_t base; int len; diff --git a/sys/netinet/sctp_crc32.h b/sys/netinet/sctp_crc32.h index 6b86074b696f..96ab7b96b6e4 100644 --- a/sys/netinet/sctp_crc32.h +++ b/sys/netinet/sctp_crc32.h @@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); #define _NETINET_SCTP_CRC32_H_ #if defined(_KERNEL) -uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); +uint32_t sctp_calculate_cksum(struct mbuf *, int32_t); #if defined(SCTP) || defined(SCTP_SUPPORT) void sctp_delayed_cksum(struct mbuf *, uint32_t offset); #endif