From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] sparse: Do not report static inline functions
Date: Tue, 30 Nov 2021 11:50:27 +0100 [thread overview]
Message-ID: <20211130105027.1071-3-chrubis@suse.cz> (raw)
In-Reply-To: <20211130105027.1071-1-chrubis@suse.cz>
Since these are part of the library API and can be prefixed with tst_
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
tools/sparse/sparse-ltp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/sparse/sparse-ltp.c b/tools/sparse/sparse-ltp.c
index 2f32bfa38..b1677d336 100644
--- a/tools/sparse/sparse-ltp.c
+++ b/tools/sparse/sparse-ltp.c
@@ -98,7 +98,7 @@ static void check_symbol_visibility(const struct symbol *const sym)
if (!(mod & MOD_TOPLEVEL))
return;
- if (has_lib_prefix && (mod & MOD_STATIC)) {
+ if (has_lib_prefix && (mod & MOD_STATIC) && !(mod & MOD_INLINE)) {
warning(sym->pos,
"LTP-003: Symbol '%s' has the LTP public library prefix, but is static (private).",
name);
--
2.32.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2021-11-30 10:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 10:50 [LTP] [PATCH 0/2] Two small fixes for LTP-003 Cyril Hrubis
2021-11-30 10:50 ` [LTP] [PATCH 1/2] include/tst_fuzzy_sync.h: Add inline to static fucntions Cyril Hrubis
2021-11-30 11:18 ` Petr Vorel
2021-12-01 7:07 ` Li Wang
2021-11-30 10:50 ` Cyril Hrubis [this message]
2021-11-30 11:21 ` [LTP] [PATCH 2/2] sparse: Do not report static inline functions Petr Vorel
2021-11-30 14:18 ` [LTP] [PATCH 0/2] Two small fixes for LTP-003 Richard Palethorpe
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=20211130105027.1071-3-chrubis@suse.cz \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/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