From: Jaegeuk Kim <jaegeuk@kernel.org>
To: linux-f2fs-devel@lists.sourceforge.net
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Subject: [f2fs-dev] [PATCH 4/4] avoid unnecessary function
Date: Wed, 25 May 2022 16:35:10 -0700 [thread overview]
Message-ID: <20220525233510.4023217-4-jaegeuk@kernel.org> (raw)
In-Reply-To: <20220525233510.4023217-1-jaegeuk@kernel.org>
libf2fs.c:883:12: warning: unused function 'is_power_of_2' [-Wunused-function]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
lib/libf2fs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index ad8d1bd03509..36b8c25980ab 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -880,10 +880,12 @@ static int open_check_fs(char *path, int flag)
return open(path, O_RDONLY | flag);
}
+#ifdef __linux__
static int is_power_of_2(unsigned long n)
{
return (n != 0 && ((n & (n - 1)) == 0));
}
+#endif
int get_device_info(int i)
{
--
2.36.1.124.g0e6072fb45-goog
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
prev parent reply other threads:[~2022-05-25 23:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 23:35 [f2fs-dev] [PATCH 1/4] libzone: remove duplicate header Jaegeuk Kim
2022-05-25 23:35 ` [f2fs-dev] [PATCH 2/4] Remove unnecessary config.h Jaegeuk Kim
2022-05-25 23:35 ` [f2fs-dev] [PATCH 3/4] Fix dependencies on linux/blkzoned.h when using Bionic Jaegeuk Kim
2022-05-25 23:35 ` Jaegeuk Kim [this message]
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=20220525233510.4023217-4-jaegeuk@kernel.org \
--to=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/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).