git: 8e41bbf2457e - stable/14 - zfs tests: Silence clang warning

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 11 Dec 2023 00:24:38 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=8e41bbf2457ee2269935ccab405de120f54db3c4

commit 8e41bbf2457ee2269935ccab405de120f54db3c4
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-11-07 15:05:15 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
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);