mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
libzfs: convert to -fvisibility=hidden
Also mark all printf-like funxions in libzfs_impl.h as printf-like and add --no-show-locs to storeabi, in hopes diffs will make more sense in future This removes these symbols from libzfs: D nfs_only T SHA256Init T SHA2Final T SHA2Init T SHA2Update T SHA384Init T SHA512Init D share_all_proto D smb_only T zfs_is_shared_proto W zpool_mount_datasets W zpool_unmount_datasets Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12048
This commit is contained in:
+27
-22
@@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _ZFS_FLETCHER_H
|
||||
#define _ZFS_FLETCHER_H
|
||||
#define _ZFS_FLETCHER_H extern __attribute__((visibility("default")))
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/spa_checksum.h>
|
||||
@@ -48,19 +48,24 @@ extern "C" {
|
||||
* checksum method is added. This method will ignore last (size % 4) bytes of
|
||||
* the data buffer.
|
||||
*/
|
||||
void fletcher_init(zio_cksum_t *);
|
||||
void fletcher_2_native(const void *, uint64_t, const void *, zio_cksum_t *);
|
||||
void fletcher_2_byteswap(const void *, uint64_t, const void *, zio_cksum_t *);
|
||||
void fletcher_4_native(const void *, uint64_t, const void *, zio_cksum_t *);
|
||||
int fletcher_2_incremental_native(void *, size_t, void *);
|
||||
int fletcher_2_incremental_byteswap(void *, size_t, void *);
|
||||
void fletcher_4_native_varsize(const void *, uint64_t, zio_cksum_t *);
|
||||
void fletcher_4_byteswap(const void *, uint64_t, const void *, zio_cksum_t *);
|
||||
int fletcher_4_incremental_native(void *, size_t, void *);
|
||||
int fletcher_4_incremental_byteswap(void *, size_t, void *);
|
||||
int fletcher_4_impl_set(const char *selector);
|
||||
void fletcher_4_init(void);
|
||||
void fletcher_4_fini(void);
|
||||
_ZFS_FLETCHER_H void fletcher_init(zio_cksum_t *);
|
||||
_ZFS_FLETCHER_H void fletcher_2_native(const void *, uint64_t, const void *,
|
||||
zio_cksum_t *);
|
||||
_ZFS_FLETCHER_H void fletcher_2_byteswap(const void *, uint64_t, const void *,
|
||||
zio_cksum_t *);
|
||||
_ZFS_FLETCHER_H void fletcher_4_native(const void *, uint64_t, const void *,
|
||||
zio_cksum_t *);
|
||||
_ZFS_FLETCHER_H int fletcher_2_incremental_native(void *, size_t, void *);
|
||||
_ZFS_FLETCHER_H int fletcher_2_incremental_byteswap(void *, size_t, void *);
|
||||
_ZFS_FLETCHER_H void fletcher_4_native_varsize(const void *, uint64_t,
|
||||
zio_cksum_t *);
|
||||
_ZFS_FLETCHER_H void fletcher_4_byteswap(const void *, uint64_t, const void *,
|
||||
zio_cksum_t *);
|
||||
_ZFS_FLETCHER_H int fletcher_4_incremental_native(void *, size_t, void *);
|
||||
_ZFS_FLETCHER_H int fletcher_4_incremental_byteswap(void *, size_t, void *);
|
||||
_ZFS_FLETCHER_H int fletcher_4_impl_set(const char *selector);
|
||||
_ZFS_FLETCHER_H void fletcher_4_init(void);
|
||||
_ZFS_FLETCHER_H void fletcher_4_fini(void);
|
||||
|
||||
|
||||
|
||||
@@ -124,31 +129,31 @@ typedef struct fletcher_4_func {
|
||||
const char *name;
|
||||
} fletcher_4_ops_t;
|
||||
|
||||
extern const fletcher_4_ops_t fletcher_4_superscalar_ops;
|
||||
extern const fletcher_4_ops_t fletcher_4_superscalar4_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_superscalar_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_superscalar4_ops;
|
||||
|
||||
#if defined(HAVE_SSE2)
|
||||
extern const fletcher_4_ops_t fletcher_4_sse2_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_sse2_ops;
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_SSE2) && defined(HAVE_SSSE3)
|
||||
extern const fletcher_4_ops_t fletcher_4_ssse3_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_ssse3_ops;
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_AVX) && defined(HAVE_AVX2)
|
||||
extern const fletcher_4_ops_t fletcher_4_avx2_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_avx2_ops;
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512F)
|
||||
extern const fletcher_4_ops_t fletcher_4_avx512f_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_avx512f_ops;
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512BW)
|
||||
extern const fletcher_4_ops_t fletcher_4_avx512bw_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_avx512bw_ops;
|
||||
#endif
|
||||
|
||||
#if defined(__aarch64__)
|
||||
extern const fletcher_4_ops_t fletcher_4_aarch64_neon_ops;
|
||||
_ZFS_FLETCHER_H const fletcher_4_ops_t fletcher_4_aarch64_neon_ops;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user