From nobody Wed Jan 03 17:50:01 2024 X-Original-To: dev-commits-src-branches@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 4T4y0n5F9Xz56MPP; Wed, 3 Jan 2024 17:50:01 +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 4T4y0n3Kqqz4rd7; Wed, 3 Jan 2024 17:50:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304201; 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=QPWTD+zs4xw8FAHbDalH8bS0PIfnUpFqN8YoCnlXrMw=; b=enj4kSH3tdW+nhfQvQiow7d7jY04LaJ9yh1wdFOqM/4DZP5ZTSQYy5N+HLzYY0/pVHS9ds J/v8gGgEe6SNl3R2fZadMibz9LJvgQYjVFTscWegNGNmcU/ria7NyHLO+I2f7+M16oA694 Tq4CdAh7iV6wVz1K+pNUV9zoIoo4QNx8TJwwmFdVeExC/Mk32oTN2wGgtycFJZfAPp7YRW fM70wBJbXFQt/zaMIAqpamdahVDmIAdnWAY8IbZdS0KgHWEIDr68OSEFbbYMxQrS4VY/wm NkGvUIBECBTd3wk2YFPmJVorDmr6v++HXqaK/VI22sJAEYMqTidOlymK6uQ0hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304201; 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=QPWTD+zs4xw8FAHbDalH8bS0PIfnUpFqN8YoCnlXrMw=; b=RQodRTtXk+y2Q/3PpEhcxSW0festB5YY+03s5mrfLqpahThL2JfYaPPzRcIUQZXuMEeCtg ADZ9yCrZxt/s5XqEpUyY0tUy0sLPoaajWZbhJOMLSE0CZrP3Q/qVgX6L2GKcRnvpT6KQs6 R2V5+EgrXDd3kFdlYG5Ohn2zqDkrRZQ4TXvwt1nuCR7ogQI5yyGl4GCFhG97c08cZX291u dgP3adaTYaCui7jgen+ynedEPub/XG/uOZBmTBfewM4MESIb6bNUiSutwTQHMpr72GbBG1 ipatgSv0ooZH2AkWQQJPsoVTeZB7PZC0f1lbw8rT1tGDDN2ee+/0whn1yFZQTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704304201; a=rsa-sha256; cv=none; b=Q/fR0ZD+AGOVpFiLLgHToxPT2PtfFUp0EmPe7BtA495z2p6+8Z80Fh2QXF3b155Q56Baew 62DjoBCrE1wXXF/m/pkqDtKjJArACTFEdUtXTtT9gTaY5WV9XTZ08ic/agujV9ePfCGJFm YBHcsq1mtBElNARrZ/KXs9ixm2e0SKJzqNeN8ZA/6ptrT9u3vlTOsB33qpxhZvFpWbodhU 07PPcSeoDdTv+lxFaTc8VZI4kNidmk14IVxOoYRAnY9K+O3JN+QuyJKOhcROcMQWwUrhOM WHGMpL+5FPsjR1flVVqIVnwgaHcFO7ivRQFCgF0m5gNTBe+J5/hj3QlIxlk/xg== 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 4T4y0n2MvRzvCW; Wed, 3 Jan 2024 17:50:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 403Ho1Hf036638; Wed, 3 Jan 2024 17:50:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 403Ho10d036634; Wed, 3 Jan 2024 17:50:01 GMT (envelope-from git) Date: Wed, 3 Jan 2024 17:50:01 GMT Message-Id: <202401031750.403Ho10d036634@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: f7180e5d69cd - stable/14 - libgpio: Fix type mismatch for gpio_pin_[gs]et List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: f7180e5d69cd371b1904c1654e32a50cc9f301fb Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f7180e5d69cd371b1904c1654e32a50cc9f301fb commit f7180e5d69cd371b1904c1654e32a50cc9f301fb Author: John Baldwin AuthorDate: 2023-11-15 02:34:21 +0000 Commit: John Baldwin CommitDate: 2024-01-03 17:43:48 +0000 libgpio: Fix type mismatch for gpio_pin_[gs]et Reported by: GCC 13 via -Wenum-int-mismatch Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D42577 (cherry picked from commit 0355ecace82cce8322e5fcdf48f751d253792ce3) --- lib/libgpio/libgpio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libgpio/libgpio.h b/lib/libgpio/libgpio.h index b493d63dc9e2..35651ecd8cca 100644 --- a/lib/libgpio/libgpio.h +++ b/lib/libgpio/libgpio.h @@ -81,8 +81,8 @@ int gpio_pin_set_flags(gpio_handle_t, gpio_config_t *); /* * GPIO pin values. */ -int gpio_pin_get(gpio_handle_t, gpio_pin_t); -int gpio_pin_set(gpio_handle_t, gpio_pin_t, int); +gpio_value_t gpio_pin_get(gpio_handle_t, gpio_pin_t); +int gpio_pin_set(gpio_handle_t, gpio_pin_t, gpio_value_t); int gpio_pin_toggle(gpio_handle_t, gpio_pin_t); /* * Helper functions to set pin states.