From: Christopher Hoffman Date: Fri, 4 Apr 2025 17:51:42 +0000 (+0000) Subject: test: clean up some warnings X-Git-Tag: testing/wip-vshankar-testing-20260120.085915-debug^2~13^2~59 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=93f29299b33520a25633e0236b239743dc17402f;p=ceph-ci.git test: clean up some warnings Signed-off-by: Christopher Hoffman --- diff --git a/src/client/Client.cc b/src/client/Client.cc index dce0a709005..e0507ca7232 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -11421,7 +11421,7 @@ success: // r is expected to hold value of effective bytes read. // in the case of fscrypt, this will be the logical size. So if all bytes read // is equal to read_len, then display logical size. - if (read_len == read) { + if ((int)read_len == read) { r = len; } else { r = read; diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index 33a9324d556..833385d1e50 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -134,6 +134,7 @@ struct ceph_ll_io_info { struct ceph_fscrypt_key_identifier; struct fscrypt_policy_v2; +struct fscrypt_remove_key_arg; /* setattr mask bits (up to an int in size) */ #ifndef CEPH_SETATTR_MODE diff --git a/src/test/libcephfs/fscrypt.cc b/src/test/libcephfs/fscrypt.cc index b9aa2935db9..b076e512133 100644 --- a/src/test/libcephfs/fscrypt.cc +++ b/src/test/libcephfs/fscrypt.cc @@ -175,7 +175,7 @@ int fscrypt_encrypt(const string& dir_path) return r; } - for (int i = 0; i < sizeof(fscrypt_key); ++i) { + for (int i = 0; i < (int)sizeof(fscrypt_key); ++i) { fscrypt_key[i] = (char)rand(); }