mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 3/3] fs: drop unused FS_DRIVER_NO_DEV flag
Date: Fri, 14 Feb 2025 10:51:57 +0100	[thread overview]
Message-ID: <20250214095157.2850839-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250214095157.2850839-1-a.fatoum@pengutronix.de>

The flag used to have an effect, but does so no longer, so let's just
drop it.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 fs/bpkfs.c            | 1 -
 fs/devfs.c            | 1 -
 fs/ext4/ext_barebox.c | 1 -
 fs/fat/fat.c          | 1 -
 fs/jffs2/fs.c         | 1 -
 fs/nfs.c              | 1 -
 fs/omap4_usbbootfs.c  | 1 -
 fs/pstore/fs.c        | 1 -
 fs/ramfs.c            | 1 -
 fs/ratpfs.c           | 1 -
 fs/smhfs.c            | 1 -
 fs/tftp.c             | 1 -
 fs/ubifs/ubifs.c      | 1 -
 fs/uimagefs.c         | 1 -
 include/fs.h          | 4 ----
 15 files changed, 18 deletions(-)

diff --git a/fs/bpkfs.c b/fs/bpkfs.c
index 26ce73ce6bcf..fe6154c555a4 100644
--- a/fs/bpkfs.c
+++ b/fs/bpkfs.c
@@ -504,7 +504,6 @@ static struct fs_driver bpkfs_driver = {
 	.read      = bpkfs_read,
 	.lseek     = bpkfs_lseek,
 	.legacy_ops = &bpkfs_ops,
-	.flags     = 0,
 	.type = filetype_bpk,
 	.drv = {
 		.probe  = bpkfs_probe,
diff --git a/fs/devfs.c b/fs/devfs.c
index 1bc64676b24d..38a85bac3c49 100644
--- a/fs/devfs.c
+++ b/fs/devfs.c
@@ -312,7 +312,6 @@ static struct fs_driver devfs_driver = {
 	.protect   = devfs_protect,
 	.discard_range = devfs_discard_range,
 	.memmap    = devfs_memmap,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = devfs_probe,
 		.remove = devfs_delete,
diff --git a/fs/ext4/ext_barebox.c b/fs/ext4/ext_barebox.c
index 163c4d2fe1b7..b1888bc4a954 100644
--- a/fs/ext4/ext_barebox.c
+++ b/fs/ext4/ext_barebox.c
@@ -301,7 +301,6 @@ static void ext_remove(struct device *dev)
 static struct fs_driver ext_driver = {
 	.read      = ext_read,
 	.type      = filetype_ext,
-	.flags     = 0,
 	.drv = {
 		.probe  = ext_probe,
 		.remove = ext_remove,
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index d5eade165f1a..15a7b2a96927 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -397,7 +397,6 @@ static struct fs_driver fat_driver = {
 #endif
 	.legacy_ops = &fat_ops,
 	.type = filetype_fat,
-	.flags     = 0,
 	.drv = {
 		.probe  = fat_probe,
 		.remove = fat_remove,
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c
index 3514b0fb3b5a..5952ea9e904f 100644
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -461,7 +461,6 @@ static void jffs2_remove(struct device *dev)
 static struct fs_driver jffs2_driver = {
 	.read = jffs2_read,
 	.type = filetype_jffs2,
-	.flags     = 0,
 	.drv = {
 		.probe  = jffs2_probe,
 		.remove = jffs2_remove,
diff --git a/fs/nfs.c b/fs/nfs.c
index 51bf15196c4e..530d9c6672d8 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -1555,7 +1555,6 @@ static struct fs_driver nfs_driver = {
 	.lseek     = nfs_lseek,
 	.write     = nfs_write,
 	.truncate  = nfs_truncate,
-	.flags     = 0,
 	.drv = {
 		.probe  = nfs_probe,
 		.remove = nfs_remove,
diff --git a/fs/omap4_usbbootfs.c b/fs/omap4_usbbootfs.c
index ad40e9b2c5aa..9c1524c56cc5 100644
--- a/fs/omap4_usbbootfs.c
+++ b/fs/omap4_usbbootfs.c
@@ -160,7 +160,6 @@ static const struct fs_legacy_ops omap4_usbbootfs_ops = {
 static struct fs_driver omap4_usbbootfs_driver = {
 	.read    = omap4_usbbootfs_read,
 	.legacy_ops = &omap4_usbbootfs_ops,
-	.flags	 = 0,
 	.drv = {
 		.probe	= omap4_usbbootfs_probe,
 		.remove	= omap4_usbbootfs_remove,
diff --git a/fs/pstore/fs.c b/fs/pstore/fs.c
index 157f24aaaf72..b77d238ade73 100644
--- a/fs/pstore/fs.c
+++ b/fs/pstore/fs.c
@@ -287,7 +287,6 @@ static const struct fs_legacy_ops pstore_ops = {
 static struct fs_driver pstore_driver = {
 	.read      = pstore_read,
 	.lseek     = pstore_lseek,
-	.flags     = FS_DRIVER_NO_DEV,
 	.legacy_ops = &pstore_ops,
 	.type = filetype_uimage,
 	.drv = {
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 6a824f56fdae..ab3c44270d43 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -444,7 +444,6 @@ static struct fs_driver ramfs_driver = {
 	.write     = ramfs_write,
 	.memmap    = ramfs_memmap,
 	.truncate  = ramfs_truncate,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = ramfs_probe,
 		.remove = ramfs_remove,
diff --git a/fs/ratpfs.c b/fs/ratpfs.c
index 5a1f8febd219..c3c3a248b681 100644
--- a/fs/ratpfs.c
+++ b/fs/ratpfs.c
@@ -456,7 +456,6 @@ static struct fs_driver ratpfs_driver = {
 	.write     = ratpfs_write,
 	.truncate  = ratpfs_truncate,
 	.legacy_ops = &ratpfs_ops,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = ratpfs_probe,
 		.remove = ratpfs_remove,
diff --git a/fs/smhfs.c b/fs/smhfs.c
index 425055d98ba8..e0e98f5213e9 100644
--- a/fs/smhfs.c
+++ b/fs/smhfs.c
@@ -150,7 +150,6 @@ static struct fs_driver smhfs_driver = {
 	.write     = smhfs_write,
 	.truncate  = smhfs_truncate,
 	.legacy_ops = &smhfs_ops,
-	.flags     = FS_DRIVER_NO_DEV,
 	.drv = {
 		.probe  = smhfs_probe,
 		.remove = smhfs_remove,
diff --git a/fs/tftp.c b/fs/tftp.c
index 81b87dfcf9e0..b2d5df4aa384 100644
--- a/fs/tftp.c
+++ b/fs/tftp.c
@@ -1115,7 +1115,6 @@ static struct fs_driver tftp_driver = {
 	.lseek     = tftp_lseek,
 	.write     = tftp_write,
 	.truncate  = tftp_truncate,
-	.flags     = 0,
 	.drv = {
 		.probe  = tftp_probe,
 		.remove = tftp_remove,
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index ef30ae3554f8..45b41ed7541d 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -504,7 +504,6 @@ static void ubifs_remove(struct device *dev)
 static struct fs_driver ubifs_driver = {
 	.read      = ubifs_read,
 	.type = filetype_ubifs,
-	.flags     = 0,
 	.drv = {
 		.probe  = ubifs_probe,
 		.remove = ubifs_remove,
diff --git a/fs/uimagefs.c b/fs/uimagefs.c
index 7ce1a15e0cbe..be268d3679d9 100644
--- a/fs/uimagefs.c
+++ b/fs/uimagefs.c
@@ -530,7 +530,6 @@ static struct fs_driver uimagefs_driver = {
 	.lseek     = uimagefs_lseek,
 	.ioctl	   = uimagefs_ioctl,
 	.legacy_ops = &uimagefs_ops,
-	.flags     = 0,
 	.type = filetype_uimage,
 	.drv = {
 		.probe  = uimagefs_probe,
diff --git a/include/fs.h b/include/fs.h
index 3b8dd93d41d6..fafd91343b5c 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -19,8 +19,6 @@ struct partition;
 struct node_d;
 struct stat;
 
-#define FS_DRIVER_NO_DEV	1
-
 /**
  * enum erase_type - Type of erase operation
  * @ERASE_TO_WRITE: Conduct low-level erase operation to prepare for a write
@@ -86,8 +84,6 @@ struct fs_driver {
 	struct driver drv;
 
 	enum filetype type;
-
-	unsigned long flags;
 };
 
 #define dev_to_fs_device(d) container_of(d, struct fs_device, dev)
-- 
2.39.5




  parent reply	other threads:[~2025-02-14 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-14  9:51 [PATCH 1/3] fs: move fs_driver open/close into struct file_operations Ahmad Fatoum
2025-02-14  9:51 ` [PATCH 2/3] fs: remove unused members in " Ahmad Fatoum
2025-02-14  9:51 ` Ahmad Fatoum [this message]
2025-02-17 10:26 ` [PATCH 1/3] fs: move fs_driver open/close into " Sascha Hauer

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=20250214095157.2850839-3-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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