aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-11-06 10:25:28 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-11-07 12:47:11 +0100
commit1e76a19895b5d8b2b5994263625fce35373041e7 (patch)
treeb04ca28327572859f7d2481729d60ebfdd9538aa
parent1d7cff3779e4bff944ce17c86471a87141c352d2 (diff)
downloadpasst-1e76a19895b5d8b2b5994263625fce35373041e7.tar
passt-1e76a19895b5d8b2b5994263625fce35373041e7.tar.gz
passt-1e76a19895b5d8b2b5994263625fce35373041e7.tar.bz2
passt-1e76a19895b5d8b2b5994263625fce35373041e7.tar.lz
passt-1e76a19895b5d8b2b5994263625fce35373041e7.tar.xz
passt-1e76a19895b5d8b2b5994263625fce35373041e7.tar.zst
passt-1e76a19895b5d8b2b5994263625fce35373041e7.zip
util: Remove unused ffsl() function
We supply a weak alias for ffsl() in case it's not defined in our libc. Except.. we don't have any users for it any more, so remove it. make cppcheck doesn't spot this at present for complicated reasons, but it might with tweaks to the options I'm experimenting with. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--util.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/util.h b/util.h
index c341236..2858b10 100644
--- a/util.h
+++ b/util.h
@@ -158,9 +158,6 @@ int do_clone(int (*fn)(void *), char *stack_area, size_t stack_size, int flags,
struct ctx;
-/* cppcheck-suppress funcArgNamesDifferent */
-__attribute__ ((weak)) int ffsl(long int i) { return __builtin_ffsl(i); }
-
#ifdef CLOSE_RANGE_UNSHARE /* Linux kernel >= 5.9 */
/* glibc < 2.34 and musl as of 1.2.5 need these */
#ifndef SYS_close_range