From nobody Mon Dec 11 00:24:38 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 4SpMvB4sYfz53YLG; Mon, 11 Dec 2023 00:24: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 4SpMvB4Lszz4bQG; Mon, 11 Dec 2023 00:24:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702254278; 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=I3CxMZuZoIYKRxEuF6OsOS8NZwYGEbXRbf5LKlf5jE0=; b=Gd5zvhY7USiAt4mBN+VfLMGfSZTRdlAxUgaKQBi9gc+CUW9PSZ0CMvu0TaQZqE2x6IXFLK SOcKwcyFqeBYCDuSX7VxtFpDG8jERVN7ZFUs1a67EcPzkL0a1TbGxu++NCPcRnbkNowpoz zhco4RYoaALyud99jrX0S0HhrTyrtp/KizfsAtggBE7VmWhg2FXdu869cW9y6diVP8DJMs 4+qfyeBVUbotuvSDje+JJXbV/fjdmAF1gP8S843Xt0oOHUqDh55rEvcYEhff9q6gawzyyR 87rr57rZXVbHjymLgXkBOC0C4cRaQoqUQXjSUw8S+XwEbXmptT2fLp4wlMjTJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702254278; a=rsa-sha256; cv=none; b=iQcHo+1J2fwU5LWxhPpnLWjMiCHdi+RrJmqx8Obyi3tFtZPl3CalwX15Twy5GOV5ClUQnc 3TVjWwYktk92Iv8h/IOgTY6nI8idIlp8+luX2OLV9BZ0qimLHDSkjte7QeDyDN00UxkRym 6Sapexd4EryEUrgik8APv9d7I8ZC6iTFJDrrfvavwhRIJpRgziIgfgmeMUvqsZXcrSTW/y J30axpd3YUbM0ygRcvqN2tUBcXw4Old03BmFuVwx8rYFU0RKc0kPJU7pbOwttBJUsGXhYw 7Jqb+X7EuJmJVgeIe9Rtn7nkfNLfd7ALGY9Xv6BePSH9XiS7Lvj+TzAaEdsVRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702254278; 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=I3CxMZuZoIYKRxEuF6OsOS8NZwYGEbXRbf5LKlf5jE0=; b=r0bv3eBhEXzG6fWK8sGxI2b7q8uxiUo3WgJWAUBjY4alVSENksYBtedgnjz2SOFx6YH/Zj BJyrhs8CAGzmJMjU6Q8QsAyoMJ6EBHlxtRma9Norw/hYtldRWZrB1TkBvT+Tqbw1lBX52+ 75rPlR6FdCTTRerTYHJPbVTCkCaHopc/KaU4hCvrJluciNsjjzeS6NljBTmblEriTjrP4N Nz4jwa8JcPOpYmbNIDlEocudC67thq4x37l0ozO3sh3xOBoiQK2SQuS7bDKOiNb/Mk2BgC 6zPGlFNdf2LuVXt1QnMGCfsfJNE4YrXVGFS8Y9FQCxQdEaLUKuTXyJIEov25CQ== 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 4SpMvB3QF2z188t; Mon, 11 Dec 2023 00:24:38 +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 3BB0OcFO079014; Mon, 11 Dec 2023 00:24:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BB0OccF079011; Mon, 11 Dec 2023 00:24:38 GMT (envelope-from git) Date: Mon, 11 Dec 2023 00:24:38 GMT Message-Id: <202312110024.3BB0OccF079011@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 8e41bbf2457e - stable/14 - zfs tests: Silence clang 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8e41bbf2457ee2269935ccab405de120f54db3c4 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8e41bbf2457ee2269935ccab405de120f54db3c4 commit 8e41bbf2457ee2269935ccab405de120f54db3c4 Author: Jose Luis Duran AuthorDate: 2023-11-07 15:05:15 +0000 Commit: Mark Johnston CommitDate: 2023-12-11 00:23:05 +0000 zfs tests: Silence clang warning "assigning to 'pattern_t *' from 'const pattern_t *' discards qualifiers" Reviewed by: asomers Reported by: clang MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42791 (cherry picked from commit 5b36076d28ad1920b178da93d667dcfeae426494) --- tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c b/tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c index 17c6b63d45d8..5aba7a83225f 100644 --- a/tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c +++ b/tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c @@ -106,7 +106,7 @@ typedef struct { typedef struct { int thread_num; - pattern_t* pat; + const pattern_t* pat; } thread_data_t; @@ -354,7 +354,7 @@ verify_file(int fd, const pattern_t* p_pat){ /* Writes a special marker to every byte within the chunk */ static void -write_chunk(pattern_t* p_pat, int chunk_idx, int thread_num) +write_chunk(const pattern_t* p_pat, int chunk_idx, int thread_num) { uint32_t chunk_start, chunk_end; get_chunk_range(p_pat, chunk_idx, &chunk_start, &chunk_end);