From: "Christoph Böhmwalder" <christoph.boehmwalder@linbit.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Philipp Reisner <philipp.reisner@linbit.com>,
linux-kernel@vger.kernel.org, linux-block@vger.kernel.org,
Lars Ellenberg <lars.ellenberg@linbit.com>,
drbd-dev@lists.linbit.com
Subject: [Drbd-dev] [PATCH v3 1/7] genetlink: make _genl_cmd_to_str static
Date: Thu, 30 Mar 2023 12:27:38 +0200 [thread overview]
Message-ID: <20230330102744.2128122-2-christoph.boehmwalder@linbit.com> (raw)
In-Reply-To: <20230330102744.2128122-1-christoph.boehmwalder@linbit.com>
Primarily to silence warnings like:
warning: no previous prototype for 'xxx_genl_cmd_to_str' [-Wmissing-prototypes]
Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
---
include/linux/genl_magic_func.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/genl_magic_func.h b/include/linux/genl_magic_func.h
index 4a4b387181ad..2984b0cb24b1 100644
--- a/include/linux/genl_magic_func.h
+++ b/include/linux/genl_magic_func.h
@@ -209,7 +209,7 @@ static int s_name ## _from_attrs_for_change(struct s_name *s, \
* Magic: define op number to op name mapping {{{1
* {{{2
*/
-const char *CONCAT_(GENL_MAGIC_FAMILY, _genl_cmd_to_str)(__u8 cmd)
+static const char *CONCAT_(GENL_MAGIC_FAMILY, _genl_cmd_to_str)(__u8 cmd)
{
switch (cmd) {
#undef GENL_op
--
2.39.2
next prev parent reply other threads:[~2023-03-30 10:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-30 10:27 [Drbd-dev] [PATCH v3 0/7] Assorted DRBD refactoring Christoph Böhmwalder
2023-03-30 10:27 ` Christoph Böhmwalder [this message]
2023-03-30 10:27 ` [Drbd-dev] [PATCH v3 2/7] drbd: Rip out the ERR_IF_CNT_IS_NEGATIVE macro Christoph Böhmwalder
2023-03-30 10:27 ` [Drbd-dev] [PATCH v3 3/7] drbd: Add peer device parameter to whole-bitmap I/O handlers Christoph Böhmwalder
2023-03-30 10:27 ` [Drbd-dev] [PATCH v3 4/7] drbd: INFO_bm_xfer_stats(): Pass a peer device argument Christoph Böhmwalder
2023-03-30 10:27 ` [Drbd-dev] [PATCH v3 5/7] drbd: drbd_uuid_compare: pass a peer_device Christoph Böhmwalder
2023-03-30 10:27 ` [Drbd-dev] [PATCH v3 6/7] drbd: pass drbd_peer_device to __req_mod Christoph Böhmwalder
2023-03-30 10:27 ` [Drbd-dev] [PATCH v3 7/7] drbd: Pass a peer device to the resync and online verify functions Christoph Böhmwalder
2023-04-03 6:20 ` Dan Carpenter
2023-04-02 2:28 ` [Drbd-dev] [PATCH v3 0/7] Assorted DRBD refactoring Jens Axboe
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=20230330102744.2128122-2-christoph.boehmwalder@linbit.com \
--to=christoph.boehmwalder@linbit.com \
--cc=axboe@kernel.dk \
--cc=drbd-dev@lists.linbit.com \
--cc=lars.ellenberg@linbit.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=philipp.reisner@linbit.com \
/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