From nobody Sun Jul 24 11:01:42 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 4LrKxL5vntz4XXFV; Sun, 24 Jul 2022 11:01: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 4LrKxL5KvPz3ZH7; Sun, 24 Jul 2022 11:01:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660502; 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=BQ+tifxVFozVfukH5OBj6dFzbOxNORfzWmhV//3X3zE=; b=rjtJERgVIgij06Ie1/lr+eMSjJSSodLFsyX2Xqk+ebXky13V3Kzy6j80oHIBWDTQVn0IyU CbjEsGYuyTSF5MxbdPkHC8m3oUF0GlUHCWi5Te/kFuXwjKdNGrNtU5agrfBFJI2jmTgnVM PKR6HEvfQd+dS9Cpli7AnzSYwlMM5zYuUCecSfpvr/XQKtXC+ixhfyKqeLQX6omt5EWgKn Cs9G+xe/wgl924L1IIcbd7zmFDOewpXGC/wFdbvCkR3efNtedRjh9sA4LTTy+WE3zuad8X XqM46e/K/ay4cSJNsckDDbaVAN1dhlBqQqmFzOaYT5FVv5HfODNEGsyb1eVWcg== 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 4LrKxL4KjfzGH4; Sun, 24 Jul 2022 11:01:42 +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 26OB1go0040650; Sun, 24 Jul 2022 11:01:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1gDv040649; Sun, 24 Jul 2022 11:01:42 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:42 GMT Message-Id: <202207241101.26OB1gDv040649@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 8b5b4fc7ca52 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 8b5b4fc7ca521946ca1691970d0acd2a08a6a6fc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660502; 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=BQ+tifxVFozVfukH5OBj6dFzbOxNORfzWmhV//3X3zE=; b=gatbkOvKqUbeR8nQR9qvstfUphvURB5YuC3UwF+YRZvFhTpk1a9WS/7FJc1y10oMBkj8pM NhTMOu+JHMLjWi+PNpvirlE8BRhosumSfLhgRVWpH4dFAi++CdXuWVaI7mW6CxYp7Hr1hZ jcVGR7PSMS1PSvSKtKVi25a46m9nfNTaJvmmTts8zsuz5+958Z95JXEBbS725atTVmocn0 t5XqwKFwpYf1jBNGCaoF/XQwUtVcCP+Hl4l1XCPU3CnghQzQ9WHVYOR44n+1OSQJ5FQUJN EaARyFN+STqlgYK9mn83QX3EBeC4d5Z43sfT9A4CJiG+nw/FeNFO/URfXeNk5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660502; a=rsa-sha256; cv=none; b=CTupEH3Q6z8jIh5LqII5pH5pPWVGYyuF9FDpHSha/1KbKc71iXVB9qvlSRdkQnV+r9D/vL idewIXR7OOJOX8hEItanbW3Wz/y5Sl2Zl0TjfQ2bZUiSMvlu6RXvAWp+1cnXu8iiEI2gku h1ViDOUpqA4fzHUNLDM2a5QvZKLk6Q7RlE5MR6jl+cRdK9Kf9JUG29lK7/PuuC1KcRoOo+ MDFpv/cq8NjcciiB9hzyL2uamv9qbybzFqoFPIZY1GjifaXmyiq1FT0G3dFvWjB4O4Ihpm 3pIezgWDt5orFspKuKJCDp+1/mArhcorMyRPK5Nlus2nUxIdTz8z0rgkcAWIog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8b5b4fc7ca521946ca1691970d0acd2a08a6a6fc commit 8b5b4fc7ca521946ca1691970d0acd2a08a6a6fc Author: Dimitry Andric AuthorDate: 2022-07-21 19:49:47 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:07 +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 (cherry picked from commit 95204d7a6368990e216db0ad51ef3e6018aed27c) --- 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