From nobody Thu Jul 21 19:53:37 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 4LpjtV00SZz4XNtK; Thu, 21 Jul 2022 19:53:38 +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 4LpjtT55Jxz3bx6; Thu, 21 Jul 2022 19:53:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433217; 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=U1iKhJTnJn8TyUxsiXd/zvXisYOTrcATGdFRBDjkeDQ=; b=tfNMA1sCy1TEBSmPByzR0+b0IK4tzO/3Nej92WsJINXeJYOilOpUZfJWnNJRa3H2Ap4TIz 3tXECoH+NEmUcZWwt0gxL8uPF/ulg5Q4YN6CxvEA/uC8lpXVTkpwpAYQDyjD8fX8ZUjvEm 7DYkOPapIGqkdlWXzXNE65IpS7R+KHv2qbfPvgdCxf+5Zmq8FltKmDUbeLAcxa6ixsm13g aJfGfbddyTWxxUtzGOLpoJXGvMCVLo452/Aw97KJeJZAah3BWvNrHk/uQw8/gE3yKzWEDe KM8mq0TaW4mVHH24rECDDkWyWzEOH4GeT8IkTmA/0sotxSlrcxF20dCUHLFxwA== 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 4LpjtT40bMzZ77; Thu, 21 Jul 2022 19:53:37 +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 26LJrbpx006524; Thu, 21 Jul 2022 19:53:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LJrbM8006523; Thu, 21 Jul 2022 19:53:37 GMT (envelope-from git) Date: Thu, 21 Jul 2022 19:53:37 GMT Message-Id: <202207211953.26LJrbM8006523@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 95204d7a6368 - main - Adjust tdsaContext_t::NvmdResponseSet declaration to avoid clang 15 warning 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 95204d7a6368990e216db0ad51ef3e6018aed27c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433217; 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=U1iKhJTnJn8TyUxsiXd/zvXisYOTrcATGdFRBDjkeDQ=; b=pRI2zt+63hBWDLKLpwAoLm5976J6OJsPTScLk+qRnUPrJFTu/mgBWjd5t6v9QMHrSHtbHU rdXClzZ4UbEu6rrLa/UCYZ8sAxrHKf5hw7NuFD5Whm5O+H/fmWVwx9CSpl8wrLgLE/cZBr MJpHwT0V0jMND2GFSqAELmApS1kEXtnr88CQn51QuBu4HdVxPzTr/bNczx3e2EQe5wCPu9 mMEc+2Y8UEf1cjoMwhrMPZzi2inKpIveBH3trdwXiLXbjwl+oNZhH2AbZ4MFG0xW1UAp07 FpuzCoxj0jJFtixILqVWzDXZ06tT00Rqlzh8UbkfqASK+ag5d9IQ+zpd9z49CQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658433217; a=rsa-sha256; cv=none; b=rqWf218c8tmww1uTjINHsRI18k4SZZBcDru0TwqsR0YUZrePbXwyreaRY5VOKek0lmglNq VEhUU9Aq75GSq8BdpFXo7rkj2J1s/RaKSSnuo7C4sR4XF9pwPn4CaEzda+OCyjZ/eYmHqT HjmEGf3uPaKtULXUNXCB5W6JDMom7Ki/j3YdaCMzM6CYPjW52erhE+OxXOIbCYfQMtUH9y Pe0bpbRk7RcdV3UHrlSs3FklogSuo5jOuMmilHx+ER3Wp2NSK/nUsiYLNWkbjy7ys5cIhj Hl0ccoUcZsD0JLpoismaPL+6oYxnKKor8QW2c+SGOCqdQL59Y48KUpnDWUJmSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=95204d7a6368990e216db0ad51ef3e6018aed27c commit 95204d7a6368990e216db0ad51ef3e6018aed27c Author: Dimitry Andric AuthorDate: 2022-07-21 19:49:47 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 19:49:58 +0000 Adjust tdsaContext_t::NvmdResponseSet declaration to avoid clang 15 warning With clang 15, the following -Werror warnings are produced: In file included from sys/dev/pms/freebsd/driver/ini/src/agtiapi.c:70: sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h:346:13: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] volatile NvmdResponseSet; ~~~~~~~~ ^ int The NvmdResponseSet member is effectively only used as a boolean in the pms(4) driver, so it could be a single bit. But to avoid changing the semantics at all in this unmaintained driver, simply declare it as a volatile int. MFC after: 3 days --- sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h b/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h index 9f56775f06b8..ad62ac40997d 100644 --- a/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h +++ b/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h @@ -343,7 +343,7 @@ typedef struct tdsaContext_s { bit8 FatalErrorData[(5 * (1024 * 1024))]; #endif /* TI_GETFOR_ONRESET */ bit32 sgpioResponseSet; /*Used to sync between SGPIO Req and Resp */ - volatile NvmdResponseSet; + volatile int NvmdResponseSet; } tdsaContext_t; #ifdef FAST_IO_TEST