aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zstream
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-10 07:31:41 +1000
committerGitHub <[email protected]>2024-08-09 14:31:41 -0700
commitcf6e8b218d4e4d62d066ce7c2c3cab72dbd93bd8 (patch)
tree58bd4f885183ffc9d5166bb6926ccd9e42ac5da1 /cmd/zstream
parentb0bf14cdb58eda2f1b60e419740802f6a7ab08c0 (diff)
zstream: remove duplicate highbit64 definition
When building a static build (--disable-shared), zstream fails to link because of the duplicate highbit64() in libzpool/kernel.c. Since they're identical, and the libzpool one is visible to zstream, we remove zstream's copy and just use the common one. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16426
Diffstat (limited to 'cmd/zstream')
-rw-r--r--cmd/zstream/zstream_redup.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/zstream/zstream_redup.c b/cmd/zstream/zstream_redup.c
index 6866639fe..dccd325d4 100644
--- a/cmd/zstream/zstream_redup.c
+++ b/cmd/zstream/zstream_redup.c
@@ -56,15 +56,6 @@ typedef struct redup_table {
int numhashbits;
} redup_table_t;
-int
-highbit64(uint64_t i)
-{
- if (i == 0)
- return (0);
-
- return (NBBY * sizeof (uint64_t) - __builtin_clzll(i));
-}
-
void *
safe_calloc(size_t n)
{