Skip to contentSkip to conversation

isofs: Use *-y instead of *-objs in Makefile

PATCH In review Andy Shevchenko 2 participants 2 messages May 8, 2024 – May 9, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isofs: Use *-y instead of *-objs in Makefile

*-objs suffix is reserved rather for (user-space) host programs while usually *-y suffix is used for kernel drivers (although *-objs works for that purpose for now).

Let's correct the old usages of *-objs in Makefiles.

---

Note, the original approach is weirdest from the existing. Only a few drivers use this (-objs-y) one most likely by mistake.

 fs/isofs/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
fs/isofs/Makefile +3 -4
index 6498fd2b0f60..b25bc542a22b 100644
@@ -5,7 +5,6 @@
 
 obj-$(CONFIG_ISO9660_FS) += isofs.o
 
-isofs-objs-y 			:= namei.o inode.o dir.o util.o rock.o export.o
-isofs-objs-$(CONFIG_JOLIET)	+= joliet.o
-isofs-objs-$(CONFIG_ZISOFS)	+= compress.o
-isofs-objs			:= $(isofs-objs-y)
+isofs-y 		:= namei.o inode.o dir.o util.o rock.o export.o
+isofs-$(CONFIG_JOLIET)	+= joliet.o
+isofs-$(CONFIG_ZISOFS)	+= compress.o
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
maintainer
#1 lore raw
Quoted 7 lines · Andy Shevchenko

*-objs suffix is reserved rather for (user-space) host programs while usually *-y suffix is used for kernel drivers (although *-objs works for that purpose for now).

Let's correct the old usages of *-objs in Makefiles.

Thanks! Added to my tree.

Honza

Quoted 26 lines

---

Note, the original approach is weirdest from the existing. Only a few drivers use this (-objs-y) one most likely by mistake.

 fs/isofs/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
fs/isofs/Makefile +3 -4
index 6498fd2b0f60..b25bc542a22b 100644
@@ -5,7 +5,6 @@
 
 obj-$(CONFIG_ISO9660_FS) += isofs.o
 
-isofs-objs-y 			:= namei.o inode.o dir.o util.o rock.o export.o
-isofs-objs-$(CONFIG_JOLIET)	+= joliet.o
-isofs-objs-$(CONFIG_ZISOFS)	+= compress.o
-isofs-objs			:= $(isofs-objs-y)
+isofs-y 		:= namei.o inode.o dir.o util.o rock.o export.o
+isofs-$(CONFIG_JOLIET)	+= joliet.o
+isofs-$(CONFIG_ZISOFS)	+= compress.o
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR