Skip to contentSkip to conversation

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

PATCH In review Andy Shevchenko 3 participants 5 messages May 8, 2024 – Aug 13, 2024 Dynamic interrupt moderation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dimlib: 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.

---

Reported by Olek. As I said him this is correct change which is documented in Documentation/kbuild/makefiles.rst "Composite Host Programs" (mind the meaning of the word "host"!).

 lib/dim/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/dim/Makefile +1 -1
index c4cc4026c451..5b9bfaac7ac1 100644
@@ -4,4 +4,4 @@
 
 obj-$(CONFIG_DIMLIB) += dimlib.o
 
-dimlib-objs := dim.o net_dim.o rdma_dim.o
+dimlib-y := dim.o net_dim.o rdma_dim.o
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Reviewed-by on v1 1/1
#1 lore raw

From: Andy Shevchenko <[email protected]>
Date: Wed, 8 May 2024 17:29:42 +0300

Quoted 7 lines

*-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.

Quoted 14 lines

---

Reported by Olek. As I said him this is correct change which is documented in Documentation/kbuild/makefiles.rst "Composite Host Programs" (mind the meaning of the word "host"!).

 lib/dim/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/dim/Makefile +0 -0
index c4cc4026c451..5b9bfaac7ac1 100644

lib/dim/Makefile line 7

Quoted 5 lines
lib/dim/Makefile +1 -1
@@ -4,4 +4,4 @@
 
 obj-$(CONFIG_DIMLIB) += dimlib.o
 
-dimlib-objs := dim.o net_dim.o rdma_dim.o
+dimlib-y := dim.o net_dim.o rdma_dim.o

Thanks,
Olek

Acked-by on v1 1/1
#2 lore raw
In reply to Andy Shevchenko
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.

Quoted 5 lines

---

Reported by Olek. As I said him this is correct change which is documented in Documentation/kbuild/makefiles.rst "Composite Host Programs" (mind the meaning of the word "host"!).

Why not credit him with an official Reported-by?

Quoted 14 lines
  lib/dim/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
lib/dim/Makefile +1 -1
index c4cc4026c451..5b9bfaac7ac1 100644
@@ -4,4 +4,4 @@
 
  obj-$(CONFIG_DIMLIB) += dimlib.o
 
-dimlib-objs := dim.o net_dim.o rdma_dim.o
+dimlib-y := dim.o net_dim.o rdma_dim.o
Signature · 1 line
Florian
#3 lore raw
Quoted 11 lines · Florian Fainelli
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.

Quoted 7 lines
Quoted 5 lines

---

Reported by Olek. As I said him this is correct change which is documented in Documentation/kbuild/makefiles.rst "Composite Host Programs" (mind the meaning of the word "host"!).

Why not credit him with an official Reported-by?

No problem

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw
Quoted 14 lines · Andy Shevchenko
Quoted 13 lines · Florian Fainelli
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.

Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Reported by Olek. As I said him this is correct change which is documented in Documentation/kbuild/makefiles.rst "Composite Host Programs" (mind the meaning of the word "host"!).

Why not credit him with an official Reported-by?

No problem

Who is going to apply this?

Signature · 2 lines
With Best Regards,
Andy Shevchenko