isofs: Use *-y instead of *-objs in Makefile
Subsystems (2)
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
@@ -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
Jan Kara
maintainerQuoted 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.
Signed-off-by Andy Shevchenko <[email protected]>
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@@ -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.oSignature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR