From nobody Wed Mar 30 19:59:39 2022 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 9EFA31A5C50E; Wed, 30 Mar 2022 19:59:39 +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 4KTHMb3Fmgz3mT6; Wed, 30 Mar 2022 19:59:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648670379; 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=LH+WnR4DBzoUt4SAzm0xWoaaAxWnuWP1apRoPcB2Q54=; b=emrVFFh/fRfkbSy9ki3NNQppt4cPIdgPNUgsmt+qna/EVZPL4goNpUDelZXbDwtIuDmBvo jD9srue76GapVp57SignpE04xOR/6pK6//eycV+nj97eBnT3QdaMbS6Kv8QDgUsk1BRXGJ 5pBm/tGOqWLAiqDm4coepb+T5+dtSmZpUM23sIZC21NnK6P6JiecVI/J6aGbbqEPpWgwXG vKIxkTk2yjmg+dgBoR7logd5DPA5C2zWqpQmEo6DAbl+HLG1iQ5gRu0eelvtE6UIXvpQUs wyI2T2LS3sT0hP3gWam2CuCaJCdpYekzAMcAN20NR5BfHMHO10Y7JTn8crQtVw== 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 47BF1198AD; Wed, 30 Mar 2022 19:59:39 +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 22UJxd7N058118; Wed, 30 Mar 2022 19:59:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22UJxdQv058117; Wed, 30 Mar 2022 19:59:39 GMT (envelope-from git) Date: Wed, 30 Mar 2022 19:59:39 GMT Message-Id: <202203301959.22UJxdQv058117@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 54361f9020bf - main - uma: Use the correct type for a return value 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 54361f9020bf4d57fd700033476561f9c88942de Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648670379; 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=LH+WnR4DBzoUt4SAzm0xWoaaAxWnuWP1apRoPcB2Q54=; b=Xtb43VRaa62q90SNphGYYcXdyHCRfa9fxOjnIvtzCtgSbHkiurCzmXrdU2LSGe++2XzZao dbLLlKXB2MZ3CpIqwFAmorw/h1uYUs5sBRQ1atV4KSgPw2NV7RPAc6/bRFFLV3FPvRsuOc cXxVNjmmdrIaCRLFedmiz8+FR+kHnchW2wOCvC+HUskR0X1M7hMbEQ8FG1IQoBpHDquLGR yRDd/8CiEcL2dYoICA6rwP4YsjLVY+W6Mqjy8NX7isB5YYnRXXzpvEMy387ovPvR+eQwNH vZc95SiSOPK7pd76T3dS7JbNadSVImpyuDvlzEwIR/9/0fBu96somn8apZo+0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648670379; a=rsa-sha256; cv=none; b=uYL5AzEshYnUiK1OBr1xf7o8C05aJm4wPHvM+gsp6AB5+qsMKH+i5Kx1xFLBpf2arqCPYU sFjrSpzZPrWaUL649MLTczMOC40oCp0+qcZv8+vnvTjTL+mwY9gKlPirC89v1MHFr2SgJD G4Yxr+l3XbMpY4E550j2SHJf+R7Hn2sAVf5ItaA3dGDvzDc+qNQwzdrqaBC9jn3QjqDNPy jnnAETj5fDklyxtCw7aFxRR+6GaV5lM9Zl/1n2QvB1GsgCaKpuLK8Kftl1Ocgg7+pzbFEa bxhV2OhKTYmXLkrOZQ1jwbAc4Pgg8elC9qb5oGdhLUCntYleQ95U29jdJ0bzmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=54361f9020bf4d57fd700033476561f9c88942de commit 54361f9020bf4d57fd700033476561f9c88942de Author: Mark Johnston AuthorDate: 2022-03-30 19:42:05 +0000 Commit: Mark Johnston CommitDate: 2022-03-30 19:42:05 +0000 uma: Use the correct type for a return value zone_alloc_bucket() returns a pointer, not a bool. MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/vm/uma_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 77182e460a54..f179e87d87ac 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -4263,7 +4263,7 @@ zone_alloc_bucket(uma_zone_t zone, void *udata, int domain, int flags) else maxbucket = zone->uz_bucket_size; if (maxbucket == 0) - return (false); + return (NULL); /* Don't wait for buckets, preserve caller's NOVM setting. */ bucket = bucket_alloc(zone, udata, M_NOWAIT | (flags & M_NOVM));