From nobody Sat Nov 30 19:09:06 2024 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 4Y102q0TbQz5fVrY; Sat, 30 Nov 2024 19:09:07 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y102p3n8gz4FFk; Sat, 30 Nov 2024 19:09:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732993746; 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=V0EvEMdT++qMh/KVySDG5oND8c+maT0tbvYIJpfUmig=; b=fp4Q7iC1Jtc48l6PYGxKGkEv3MtPQVelqQMMS/c6X2PnGqIdVdH7IJxh5O+l+kz6ZIzuWU cXDtn7q1+DuxMytQXPYdWIV5HkN+DcgTfeqkDNbgRb1trEYc5ech6fjPh8Ah1KhIeBf0rL MI86YeMnwCqmd+lQSRqKGvMb7fE8PSulpEn0u1VWcCJhCKrv/EqtX3u5G6RSR8kDAsU86c CYCPXqsNEMTnYWu+kOLr2AqlIl2KHiBXyAmHSWszNTB2/uQpSxagAS+RAy6GQsBfM848Gh 605AiAMN6/nxE8GQZCZIKRK3v66o0lY9AKCIqYFvHjCjRVQxScGrUlam7a7Gwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732993746; 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=V0EvEMdT++qMh/KVySDG5oND8c+maT0tbvYIJpfUmig=; b=YSqpyBcRwg9GywHGSYSx0G9I/40qpvxcO+tTBDjKIt8F/hcmz3oS1S4x4O7hBOvJ158apx LqIyPiFKaNoiXTC3LB7wfZhowLpJkFVh/Ja1rg6ps8ZICFqilXuZ+T9/6fHtB1kW2h07sX qCbPbEbXa6ZB8K24sd/M5dy3jvGGWMnjmFw5v9p8OAoh8VtTuX2V2DOjh48k+67OCdJOYd 73TxCYr1fdI1nD8aNyIhAJbWzu3cpLZQDAHM78I7SmxkEE5q2EXPBh4olMyJbmx3JUmLdO siLY2FYYJeE62Ak6ohvVT6sPfxpa3JYqKkj0xBH0ceYbznLhmqkTpkEN8oDe3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732993746; a=rsa-sha256; cv=none; b=j3HgtyhgDDGKWV7XnfBbDd8eR6VJjaCa7O6tK96T/Ubrv3z/VkRrig6OO5EUaTvFUdWm2J CiTHr7AA4uxH6ObLi0vVHt2JRi3Gm2x0XE+NtrHe6mYGy0kZ5wxJ5IpFp4lLRJvQsQp2bx xd0eUQROWPTyTfd/qGyW4dbzmXiiNlDpn15LmIUtlO0rYCkICBximuX8JW8mozcA/A4lLb ZaC0XPLwJAd7w6oMmsdFxNnjkZPLHdNUItYleSHuAtHlzr854gl7GoKniTGUTlPdwB3YtH GK4ye6FAU3pcq2dAgjhFPdsm48MTW8oWuXPw3Nho9uB8zzlVgqhqAHDQuzKalQ== 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 4Y102p3NmKzKxl; Sat, 30 Nov 2024 19:09:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AUJ96gT097174; Sat, 30 Nov 2024 19:09:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AUJ96XX097171; Sat, 30 Nov 2024 19:09:06 GMT (envelope-from git) Date: Sat, 30 Nov 2024 19:09:06 GMT Message-Id: <202411301909.4AUJ96XX097171@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: bd8c7df1536b - stable/13 - 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/stable/13 X-Git-Reftype: branch X-Git-Commit: bd8c7df1536bdc44697d323a380ab97783e8a7f3 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=bd8c7df1536bdc44697d323a380ab97783e8a7f3 commit bd8c7df1536bdc44697d323a380ab97783e8a7f3 Author: John Baldwin AuthorDate: 2023-11-15 02:34:21 +0000 Commit: John Baldwin CommitDate: 2024-11-30 18:26:12 +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.