From nobody Wed Nov 15 02:37:41 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 4SVS4k2STbz50XBj; Wed, 15 Nov 2023 02:37:42 +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 4SVS4k1rf3z4XJ1; Wed, 15 Nov 2023 02:37:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015862; 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=wzkLkIQ8yNunWANy3nPNiGMF+HfFXpQbHDQKUoOdiec=; b=s6ZkaWZ61jCqVz0O41fumrd35+EZ0x10isKbAiaNiSTrvoMKXUf4Z75Fs7XAoBaFLL2ioD dIUTGjeFr0eCKag3xlruEJlJsBBI2UtgHZ6upTcx4xrewmSZybp7Gslo7YQIW0p0//7wys g+NcWluaUGJCUzm5zIAfnGpldEoxdOjvl6iTlCURF+et+wbHwlU7IqYsAaOYNurnvSCf7O Z/LLk3nAQtWscWSuIE1wZgowTyarOrAX483FfXFWeAVSx/MIW2T8s7AgwBQD1RhTvIuh4z T/3O91IBbYan2pzWg4t3YKKTYpOd1vXfpv0jd49UPqEXod2JF25UBh6QQiw2Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700015862; 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=wzkLkIQ8yNunWANy3nPNiGMF+HfFXpQbHDQKUoOdiec=; b=pFO9UkzdNjBRhdPTK55vSdUQBzzT1rH8Kx4rfBaMmOMLngSQYq0jVw3FGzwSVZ3F+7YzEl 0xLHKv7Kh6RYYn8F/ciFLAXJC5b7g3FuDagqHUO/M8bYSfnbTu7wUkQF8P2FYYez8m0DJp xXmfjVPeIKs5m1JvKrDhJJWvpNnGSvjtPPHsVBP+9pUKyX9/z4GlNO+4C5jIY67b7aQ1ho 9mSLSl1Vi3ekYGYAW5msrXGW7ravCUDHCriBbgCda87DfUDshnNlc/PeGZTq5aYdWiPAmJ QLIeFpfVHuPKN5OqMxEQHQ4VvI96Wsjjw34FWK6MF/DlGHqWM5lPbU8fryYSwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700015862; a=rsa-sha256; cv=none; b=JZzOiOz85zrXnBC4E3Izou4jAllaFc5N1Rdx7EmqiudjrLDfdHuT5OqiibhTyLOI+ApSO6 jTtXGCn0797gJZY0jlE/fil/yG3gcbuytgHyF3+exK/4VQsdWzZXXiEwcad2KEUYE2gBgo orU3sraJLk9GT4/hTtcOjMxUtVWwabFUBRW7JMrq+C4SxEoWQ61SkCj5ZdpM9n8BTVnByS bvc1z3Q6H1zN9cWrZzJVdc1e0VxrsjYDuqZ0skuL/jYvNxYQE4ibIEYoXdOiSsqUl6LwJz iO74K1QSOYD6uOeAYsrLMHUw5vnGSCoufzNptn9nrNXqg+vEE3Y4TcpcEvfW0w== 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 4SVS4k0jPzz1DT5; Wed, 15 Nov 2023 02:37:42 +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 3AF2bgK3009624; Wed, 15 Nov 2023 02:37:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AF2bfup009621; Wed, 15 Nov 2023 02:37:41 GMT (envelope-from git) Date: Wed, 15 Nov 2023 02:37:41 GMT Message-Id: <202311150237.3AF2bfup009621@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: 0355ecace82c - main - libgpio: Fix type mismatch for gpio_pin_[gs]et 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: 0355ecace82cce8322e5fcdf48f751d253792ce3 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0355ecace82cce8322e5fcdf48f751d253792ce3 commit 0355ecace82cce8322e5fcdf48f751d253792ce3 Author: John Baldwin AuthorDate: 2023-11-15 02:34:21 +0000 Commit: John Baldwin CommitDate: 2023-11-15 02:34:21 +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 --- 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.