All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH 1/4] libzone: remove duplicate header
@ 2022-05-25 23:35 Jaegeuk Kim
  2022-05-25 23:35 ` [f2fs-dev] [PATCH 2/4] Remove unnecessary config.h Jaegeuk Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jaegeuk Kim @ 2022-05-25 23:35 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: Jaegeuk Kim

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 lib/libf2fs_zoned.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/libf2fs_zoned.c b/lib/libf2fs_zoned.c
index c5c6ddee7cdd..f383ce275342 100644
--- a/lib/libf2fs_zoned.c
+++ b/lib/libf2fs_zoned.c
@@ -27,8 +27,6 @@
 #endif
 #include <libgen.h>
 
-#include <f2fs_fs.h>
-
 #ifdef HAVE_LINUX_BLKZONED_H
 
 int get_sysfs_path(struct device_info *dev, const char *attr,
-- 
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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [f2fs-dev] [PATCH 2/4] Remove unnecessary config.h
  2022-05-25 23:35 [f2fs-dev] [PATCH 1/4] libzone: remove duplicate header Jaegeuk Kim
@ 2022-05-25 23:35 ` 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 ` [f2fs-dev] [PATCH 4/4] avoid unnecessary function Jaegeuk Kim
  2 siblings, 0 replies; 4+ messages in thread
From: Jaegeuk Kim @ 2022-05-25 23:35 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: Jaegeuk Kim

Instead, we should use <config.h> generated by configure.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 fsck/dict.c             | 1 -
 fsck/mkquota.c          | 2 +-
 fsck/quotaio.c          | 1 -
 fsck/quotaio_tree.c     | 1 -
 fsck/quotaio_v2.c       | 1 -
 lib/nls_utf8.c          | 3 +--
 mkfs/f2fs_format.c      | 2 --
 mkfs/f2fs_format_main.c | 4 ++--
 tools/f2fs_io/f2fs_io.c | 2 +-
 tools/f2fscrypt.c       | 1 -
 tools/sha512.c          | 1 -
 11 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/fsck/dict.c b/fsck/dict.c
index bb7600cc4fae..5b875bed81b3 100644
--- a/fsck/dict.c
+++ b/fsck/dict.c
@@ -20,7 +20,6 @@
 
 #define DICT_NODEBUG
 
-#include "config.h"
 #include <stdlib.h>
 #include <stddef.h>
 #ifdef DICT_NODEBUG
diff --git a/fsck/mkquota.c b/fsck/mkquota.c
index c419a0fe2078..d18141e2460f 100644
--- a/fsck/mkquota.c
+++ b/fsck/mkquota.c
@@ -4,7 +4,7 @@
  * Aditya Kali <adityakali@google.com>
  * Hyojun Kim <hyojun@google.com> - Ported to f2fs-tools
  */
-#include "config.h"
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
diff --git a/fsck/quotaio.c b/fsck/quotaio.c
index a3815b0c8835..d02475287c91 100644
--- a/fsck/quotaio.c
+++ b/fsck/quotaio.c
@@ -6,7 +6,6 @@
  * Hyojun Kim <hyojun@google.com> - Ported to f2fs-tools
  */
 
-#include "config.h"
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
diff --git a/fsck/quotaio_tree.c b/fsck/quotaio_tree.c
index c2034005cfe0..40521c54c436 100644
--- a/fsck/quotaio_tree.c
+++ b/fsck/quotaio_tree.c
@@ -5,7 +5,6 @@
  * Hyojun Kim <hyojun@google.com> - Ported to f2fs-tools
  */
 
-#include "config.h"
 #include <sys/types.h>
 #include <errno.h>
 #include <stdio.h>
diff --git a/fsck/quotaio_v2.c b/fsck/quotaio_v2.c
index 9353f8567647..e19f303d96ea 100644
--- a/fsck/quotaio_v2.c
+++ b/fsck/quotaio_v2.c
@@ -5,7 +5,6 @@
  * Hyojun Kim <hyojun@google.com> - Ported to f2fs-tools
  */
 
-#include "config.h"
 #include <sys/types.h>
 #include <errno.h>
 #include <stdio.h>
diff --git a/lib/nls_utf8.c b/lib/nls_utf8.c
index 9e7590deb338..e6f34ba60b18 100644
--- a/lib/nls_utf8.c
+++ b/lib/nls_utf8.c
@@ -20,14 +20,13 @@
  * implementation.
  */
 
-#include "config.h"
 #include <stdint.h>
 #include <unistd.h>
 #include <string.h>
 #include <limits.h>
 #include <errno.h>
 
-#include "f2fs_fs.h"
+#include <f2fs_fs.h>
 
 /* Encoding a unicode version number as a single unsigned int. */
 #define UNICODE_MAJ_SHIFT		(16)
diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
index 3b96d3182ac8..7cd5815e1f80 100644
--- a/mkfs/f2fs_format.c
+++ b/mkfs/f2fs_format.c
@@ -8,8 +8,6 @@
  */
 #define _LARGEFILE64_SOURCE
 
-#include "config.h"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c
index b8936f15e0f2..d2c2605ae6a5 100644
--- a/mkfs/f2fs_format_main.c
+++ b/mkfs/f2fs_format_main.c
@@ -22,7 +22,8 @@
 #include <errno.h>
 #include <getopt.h>
 
-#include "config.h"
+#include <f2fs_fs.h>
+
 #ifdef HAVE_LIBBLKID
 #include <blkid/blkid.h>
 #endif
@@ -30,7 +31,6 @@
 #include <uuid/uuid.h>
 #endif
 
-#include "f2fs_fs.h"
 #include "quota.h"
 #include "f2fs_format_utils.h"
 
diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c
index 0edac6fedf33..2f0fc7b25d41 100644
--- a/tools/f2fs_io/f2fs_io.c
+++ b/tools/f2fs_io/f2fs_io.c
@@ -43,7 +43,7 @@
 #include <unistd.h>
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 #include <android_config.h>
 
diff --git a/tools/f2fscrypt.c b/tools/f2fscrypt.c
index 1233f3a5b103..8640ffae1404 100644
--- a/tools/f2fscrypt.c
+++ b/tools/f2fscrypt.c
@@ -20,7 +20,6 @@
 #define _GNU_SOURCE
 #endif
 
-#include "config.h"
 #include <f2fs_fs.h>
 
 #include <assert.h>
diff --git a/tools/sha512.c b/tools/sha512.c
index bf0d9a4efaef..c6d35afa7e2c 100644
--- a/tools/sha512.c
+++ b/tools/sha512.c
@@ -11,7 +11,6 @@
  */
 
 
-#include "config.h"
 #include <assert.h>
 #include <errno.h>
 #include <getopt.h>
-- 
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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [f2fs-dev] [PATCH 3/4] Fix dependencies on linux/blkzoned.h when using Bionic.
  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 ` Jaegeuk Kim
  2022-05-25 23:35 ` [f2fs-dev] [PATCH 4/4] avoid unnecessary function Jaegeuk Kim
  2 siblings, 0 replies; 4+ messages in thread
From: Jaegeuk Kim @ 2022-05-25 23:35 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: Jaegeuk Kim, Martin Stjernholm

From: Martin Stjernholm <mast@google.com>

This reverts commit adcec10b4dee ("Support zoned device if libc exists).

Signed-off-by: Martin Stjernholm <mast@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
---
 include/android_config.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/android_config.h b/include/android_config.h
index 07440874188c..21eed28669e1 100644
--- a/include/android_config.h
+++ b/include/android_config.h
@@ -41,8 +41,7 @@
 #define HAVE_LIBSELINUX 1
 #endif
 
-#ifdef WITH_LIBC
-#define HAVE_KERNEL_UAPI_LINUX_BLKZONED_H 1
+#if defined(__BIONIC__)
 #define HAVE_LINUX_BLKZONED_H 1
 #endif
 
-- 
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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [f2fs-dev] [PATCH 4/4] avoid unnecessary function
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Jaegeuk Kim @ 2022-05-25 23:35 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: Jaegeuk Kim

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-25 23:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [f2fs-dev] [PATCH 4/4] avoid unnecessary function Jaegeuk Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.