From: Daniel Wagner <wagi@monom.org>
To: connman@lists.linux.dev
Cc: Daniel Wagner <wagi@monom.org>
Subject: [PATCH v1 2/3] inet: Remove unused ipv6_addr_advert_mult
Date: Tue, 12 Oct 2021 09:06:47 +0200 [thread overview]
Message-ID: <20211012070648.28947-3-wagi@monom.org> (raw)
In-Reply-To: <20211012070648.28947-1-wagi@monom.org>
clang complains with
src/inet.c:1839:20: error: unused function 'ipv6_addr_advert_mult' [-Werror,-Wunused-function]
static inline void ipv6_addr_advert_mult(const struct in6_addr *addr,
^
Remove the ipv6_addr_advert_mult function.
---
src/inet.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/inet.c b/src/inet.c
index df94d1eebaa7..4039a73ca498 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -1836,13 +1836,6 @@ int __connman_inet_ipv6_send_rs(int index, int timeout,
return 0;
}
-static inline void ipv6_addr_advert_mult(const struct in6_addr *addr,
- struct in6_addr *advert)
-{
- ipv6_addr_set(advert, htonl(0xFF020000), 0, htonl(0x2),
- htonl(0xFF000000) | addr->s6_addr32[3]);
-}
-
#define MSG_SIZE_SEND 1452
static int inc_len(int len, int inc)
--
2.33.0
next prev parent reply other threads:[~2021-10-12 7:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-12 7:06 [PATCH v1 0/3] Fixup clang error messages Daniel Wagner
2021-10-12 7:06 ` [PATCH v1 1/3] build: Only enable -Wcast-align for gcc Daniel Wagner
2021-10-12 7:06 ` Daniel Wagner [this message]
2021-10-12 7:06 ` [PATCH v1 3/3] gsupplicant: Fix error return type Daniel Wagner
2021-10-15 7:03 ` [PATCH v1 0/3] Fixup clang error messages Daniel Wagner
2021-10-15 8:55 ` VAUTRIN Emmanuel (Canal Plus Prestataire)
2021-10-15 9:25 ` Daniel Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211012070648.28947-3-wagi@monom.org \
--to=wagi@monom.org \
--cc=connman@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).