From: "Paul E. McKenney" <paulmck@kernel.org>
To: broonie@kernel.org
Cc: w@1wt.eu, linux-kernel@vger.kernel.org
Subject: nolibc and __attribute__((__unused__))
Date: Wed, 21 Jul 2021 13:33:49 -0700 [thread overview]
Message-ID: <20210721203349.GA3209274@paulmck-ThinkPad-P17-Gen-1> (raw)
Hello!
My guess is that I should ignore the following checkpatch complaint on
the assumption that checkpatch doesn't realize that this is not built
as part of the Linux kernel. But if my guess is incorrect, please let
me know, as it is a trivial change to make.
Thanx, Paul
------------------------------------------------------------------------
-------------------------------------------------
/tmp/rcu/0002-tools-nolibc-Implement-msleep.patch
-------------------------------------------------
WARNING: __always_unused or __maybe_unused is preferred over __attribute__((__unused__))
#24: FILE: tools/include/nolibc/nolibc.h:2246:
+static __attribute__((unused))
total: 0 errors, 1 warnings, 19 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/tmp/rcu/0002-tools-nolibc-Implement-msleep.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
next reply other threads:[~2021-07-21 20:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 20:33 Paul E. McKenney [this message]
2021-07-21 20:39 ` Willy Tarreau
2021-07-21 20:53 ` Paul E. McKenney
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=20210721203349.GA3209274@paulmck-ThinkPad-P17-Gen-1 \
--to=paulmck@kernel.org \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=w@1wt.eu \
/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
all inboxes | Powered by JetHome®