mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile
@ 2024-05-08 15:19 Andy Shevchenko
  2024-05-08 15:59 ` Benjamin Coddington
  2024-05-08 16:04 ` Chuck Lever
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2024-05-08 15:19 UTC (permalink / raw)
  To: Andy Shevchenko, linux-nfs, linux-kernel
  Cc: Trond Myklebust, Anna Schumaker, Chuck Lever, Jeff Layton,
	Neil Brown, Olga Kornievskaia, Dai Ngo, Tom Talpey

*-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 <andriy.shevchenko@linux.intel.com>
---

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

 fs/lockd/Makefile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/fs/lockd/Makefile b/fs/lockd/Makefile
index ac9f9d84510e..fe3e23dd29c3 100644
--- a/fs/lockd/Makefile
+++ b/fs/lockd/Makefile
@@ -7,8 +7,7 @@ ccflags-y += -I$(src)			# needed for trace events
 
 obj-$(CONFIG_LOCKD) += lockd.o
 
-lockd-objs-y += clntlock.o clntproc.o clntxdr.o host.o svc.o svclock.o \
-	        svcshare.o svcproc.o svcsubs.o mon.o trace.o xdr.o
-lockd-objs-$(CONFIG_LOCKD_V4) += clnt4xdr.o xdr4.o svc4proc.o
-lockd-objs-$(CONFIG_PROC_FS) += procfs.o
-lockd-objs		      := $(lockd-objs-y)
+lockd-y := clntlock.o clntproc.o clntxdr.o host.o svc.o svclock.o \
+	   svcshare.o svcproc.o svcsubs.o mon.o trace.o xdr.o
+lockd-$(CONFIG_LOCKD_V4) += clnt4xdr.o xdr4.o svc4proc.o
+lockd-$(CONFIG_PROC_FS) += procfs.o
-- 
2.43.0.rc1.1336.g36b5255a03ac


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

* Re: [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile
  2024-05-08 15:19 [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile Andy Shevchenko
@ 2024-05-08 15:59 ` Benjamin Coddington
  2024-05-08 16:04 ` Chuck Lever
  1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Coddington @ 2024-05-08 15:59 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-nfs, linux-kernel, Trond Myklebust, Anna Schumaker,
	Chuck Lever, Jeff Layton, Neil Brown, Olga Kornievskaia, Dai Ngo,
	Tom Talpey

On 8 May 2024, at 11:19, Andy Shevchenko wrote:

> *-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 <andriy.shevchenko@linux.intel.com>

Reviewed-by: Benjamin Coddington <bcodding@redhat.com>

Ben


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

* Re: [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile
  2024-05-08 15:19 [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile Andy Shevchenko
  2024-05-08 15:59 ` Benjamin Coddington
@ 2024-05-08 16:04 ` Chuck Lever
  2024-06-05 21:13   ` Andy Shevchenko
  1 sibling, 1 reply; 5+ messages in thread
From: Chuck Lever @ 2024-05-08 16:04 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-nfs, linux-kernel, Trond Myklebust, Anna Schumaker,
	Jeff Layton, Neil Brown, Olga Kornievskaia, Dai Ngo, Tom Talpey

On Wed, May 08, 2024 at 06:19:38PM +0300, Andy Shevchenko wrote:
> *-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 <andriy.shevchenko@linux.intel.com>
> ---
> 
> Note, the original approach is weirdest from the existing.
> Only a few drivers use this (-objs-y) one most likely by mistake.
> 
>  fs/lockd/Makefile | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/fs/lockd/Makefile b/fs/lockd/Makefile
> index ac9f9d84510e..fe3e23dd29c3 100644
> --- a/fs/lockd/Makefile
> +++ b/fs/lockd/Makefile
> @@ -7,8 +7,7 @@ ccflags-y += -I$(src)			# needed for trace events
>  
>  obj-$(CONFIG_LOCKD) += lockd.o
>  
> -lockd-objs-y += clntlock.o clntproc.o clntxdr.o host.o svc.o svclock.o \
> -	        svcshare.o svcproc.o svcsubs.o mon.o trace.o xdr.o
> -lockd-objs-$(CONFIG_LOCKD_V4) += clnt4xdr.o xdr4.o svc4proc.o
> -lockd-objs-$(CONFIG_PROC_FS) += procfs.o
> -lockd-objs		      := $(lockd-objs-y)
> +lockd-y := clntlock.o clntproc.o clntxdr.o host.o svc.o svclock.o \
> +	   svcshare.o svcproc.o svcsubs.o mon.o trace.o xdr.o
> +lockd-$(CONFIG_LOCKD_V4) += clnt4xdr.o xdr4.o svc4proc.o
> +lockd-$(CONFIG_PROC_FS) += procfs.o
> -- 
> 2.43.0.rc1.1336.g36b5255a03ac
> 

Acked-by: Chuck Lever <chuck.lever@oracle.com>

Unless, of course, you'd like me to take this through the nfsd tree.

-- 
Chuck Lever

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

* Re: [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile
  2024-05-08 16:04 ` Chuck Lever
@ 2024-06-05 21:13   ` Andy Shevchenko
  2024-06-06 13:40     ` Chuck Lever
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2024-06-05 21:13 UTC (permalink / raw)
  To: Chuck Lever
  Cc: linux-nfs, linux-kernel, Trond Myklebust, Anna Schumaker,
	Jeff Layton, Neil Brown, Olga Kornievskaia, Dai Ngo, Tom Talpey

On Wed, May 08, 2024 at 12:04:28PM -0400, Chuck Lever wrote:
> On Wed, May 08, 2024 at 06:19:38PM +0300, Andy Shevchenko wrote:
> > *-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.

...

> Acked-by: Chuck Lever <chuck.lever@oracle.com>
> 
> Unless, of course, you'd like me to take this through the nfsd tree.

Why not? Otherwise it seems nobody have taken it so far.

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile
  2024-06-05 21:13   ` Andy Shevchenko
@ 2024-06-06 13:40     ` Chuck Lever
  0 siblings, 0 replies; 5+ messages in thread
From: Chuck Lever @ 2024-06-06 13:40 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-nfs, linux-kernel, Trond Myklebust, Anna Schumaker,
	Jeff Layton, Neil Brown, Olga Kornievskaia, Dai Ngo, Tom Talpey

On Wed, Jun 05, 2024 at 05:13:02PM -0400, Andy Shevchenko wrote:
> On Wed, May 08, 2024 at 12:04:28PM -0400, Chuck Lever wrote:
> > On Wed, May 08, 2024 at 06:19:38PM +0300, Andy Shevchenko wrote:
> > > *-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.
> 
> ...
> 
> > Acked-by: Chuck Lever <chuck.lever@oracle.com>
> > 
> > Unless, of course, you'd like me to take this through the nfsd tree.
> 
> Why not? Otherwise it seems nobody have taken it so far.

Applied to nfsd-next (for v6.11). Thanks!

-- 
Chuck Lever

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

end of thread, other threads:[~2024-06-06 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-08 15:19 [PATCH v1 1/1] lockd: Use *-y instead of *-objs in Makefile Andy Shevchenko
2024-05-08 15:59 ` Benjamin Coddington
2024-05-08 16:04 ` Chuck Lever
2024-06-05 21:13   ` Andy Shevchenko
2024-06-06 13:40     ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®