Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1463124 > unrolled thread

[PATCH 0/2] staging: lustre: #include neatening

Started byJoe Perches <joe@perches.com>
First post2016-08-15 21:40 +0200
Last post2016-08-16 13:10 +0200
Articles 10 — 4 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] staging: lustre: #include neatening Joe Perches <joe@perches.com> - 2016-08-15 21:40 +0200
    [PATCH 1/2] staging: lustre: Add include path to Makefile Joe Perches <joe@perches.com> - 2016-08-15 21:40 +0200
      Re: [lustre-devel] [PATCH 1/2] staging: lustre: Add include path to  Makefile James Simmons <jsimmons@infradead.org> - 2016-08-15 23:10 +0200
      Re: [PATCH 1/2] staging: lustre: Add include path to Makefile Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-08-15 23:10 +0200
        Re: [PATCH 1/2] staging: lustre: Add include path to Makefile Joe Perches <joe@perches.com> - 2016-08-15 23:20 +0200
          Building a subdirectory ignores parent subdir-ccflags (was: Re:  [PATCH 1/2] staging: lustre: Add include path to Makefile) Joe Perches <joe@perches.com> - 2016-08-15 23:30 +0200
            Re: Building a subdirectory ignores parent subdir-ccflags Michal Marek <mmarek@suse.com> - 2016-08-16 00:10 +0200
              Re: Building a subdirectory ignores parent subdir-ccflags Joe Perches <joe@perches.com> - 2016-08-16 00:50 +0200
          Re: [PATCH 1/2] staging: lustre: Add include path to Makefile Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-08-16 13:00 +0200
            Re: [PATCH 1/2] staging: lustre: Add include path to Makefile Joe Perches <joe@perches.com> - 2016-08-16 13:10 +0200

#1463124 — [PATCH 0/2] staging: lustre: #include neatening

FromJoe Perches <joe@perches.com>
Date2016-08-15 21:40 +0200
Subject[PATCH 0/2] staging: lustre: #include neatening
Message-ID<s6vTP-1iQ-1@gated-at.bofh.it>
Make it a bit easier to grep and help a future move out of staging.

Joe Perches (2):
  staging: lustre: Add include path to Makefile
  staging: lustre: Remove .. paths from '#include "' uses

 drivers/staging/lustre/Makefile                             |  3 +++
 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h         |  6 +++---
 drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h         |  8 ++++----
 drivers/staging/lustre/lnet/libcfs/debug.c                  |  2 +-
 drivers/staging/lustre/lnet/libcfs/fail.c                   |  2 +-
 drivers/staging/lustre/lnet/libcfs/hash.c                   |  2 +-
 drivers/staging/lustre/lnet/libcfs/libcfs_cpu.c             |  2 +-
 drivers/staging/lustre/lnet/libcfs/libcfs_lock.c            |  2 +-
 drivers/staging/lustre/lnet/libcfs/libcfs_mem.c             |  2 +-
 drivers/staging/lustre/lnet/libcfs/libcfs_string.c          |  2 +-
 drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c        |  2 +-
 drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c     |  4 ++--
 drivers/staging/lustre/lnet/libcfs/linux/linux-curproc.c    |  2 +-
 drivers/staging/lustre/lnet/libcfs/linux/linux-debug.c      |  2 +-
 drivers/staging/lustre/lnet/libcfs/linux/linux-mem.c        |  2 +-
 drivers/staging/lustre/lnet/libcfs/linux/linux-module.c     |  2 +-
 drivers/staging/lustre/lnet/libcfs/linux/linux-prim.c       |  2 +-
 drivers/staging/lustre/lnet/libcfs/linux/linux-tracefile.c  |  2 +-
 drivers/staging/lustre/lnet/libcfs/module.c                 | 10 +++++-----
 drivers/staging/lustre/lnet/libcfs/prng.c                   |  2 +-
 drivers/staging/lustre/lnet/libcfs/tracefile.c              |  2 +-
 drivers/staging/lustre/lnet/libcfs/tracefile.h              |  2 +-
 drivers/staging/lustre/lnet/libcfs/workitem.c               |  2 +-
 drivers/staging/lustre/lnet/lnet/acceptor.c                 |  2 +-
 drivers/staging/lustre/lnet/lnet/api-ni.c                   |  4 ++--
 drivers/staging/lustre/lnet/lnet/config.c                   |  2 +-
 drivers/staging/lustre/lnet/lnet/lib-eq.c                   |  2 +-
 drivers/staging/lustre/lnet/lnet/lib-md.c                   |  2 +-
 drivers/staging/lustre/lnet/lnet/lib-me.c                   |  2 +-
 drivers/staging/lustre/lnet/lnet/lib-move.c                 |  2 +-
 drivers/staging/lustre/lnet/lnet/lib-msg.c                  |  2 +-
 drivers/staging/lustre/lnet/lnet/lib-ptl.c                  |  2 +-
 drivers/staging/lustre/lnet/lnet/lib-socket.c               |  4 ++--
 drivers/staging/lustre/lnet/lnet/lo.c                       |  2 +-
 drivers/staging/lustre/lnet/lnet/module.c                   |  4 ++--
 drivers/staging/lustre/lnet/lnet/net_fault.c                |  4 ++--
 drivers/staging/lustre/lnet/lnet/nidstrings.c               |  4 ++--
 drivers/staging/lustre/lnet/lnet/peer.c                     |  4 ++--
 drivers/staging/lustre/lnet/lnet/router.c                   |  2 +-
 drivers/staging/lustre/lnet/lnet/router_proc.c              |  4 ++--
 drivers/staging/lustre/lnet/selftest/conctl.c               |  6 +++---
 drivers/staging/lustre/lnet/selftest/conrpc.c               |  4 ++--
 drivers/staging/lustre/lnet/selftest/conrpc.h               |  8 ++++----
 drivers/staging/lustre/lnet/selftest/console.c              |  4 ++--
 drivers/staging/lustre/lnet/selftest/console.h              |  8 ++++----
 drivers/staging/lustre/lnet/selftest/rpc.h                  |  2 +-
 drivers/staging/lustre/lnet/selftest/selftest.h             | 10 +++++-----
 drivers/staging/lustre/lustre/fid/fid_internal.h            |  2 +-
 drivers/staging/lustre/lustre/fid/fid_lib.c                 |  2 +-
 drivers/staging/lustre/lustre/fid/fid_request.c             |  2 +-
 drivers/staging/lustre/lustre/fid/lproc_fid.c               |  2 +-
 drivers/staging/lustre/lustre/fld/fld_cache.c               |  2 +-
 drivers/staging/lustre/lustre/fld/fld_internal.h            |  2 +-
 drivers/staging/lustre/lustre/fld/fld_request.c             |  2 +-
 drivers/staging/lustre/lustre/fld/lproc_fld.c               |  2 +-
 drivers/staging/lustre/lustre/include/interval_tree.h       |  2 +-
 drivers/staging/lustre/lustre/include/linux/lustre_lite.h   |  2 +-
 drivers/staging/lustre/lustre/include/lu_object.h           |  2 +-
 drivers/staging/lustre/lustre/include/lustre/lustre_idl.h   |  4 ++--
 drivers/staging/lustre/lustre/include/lustre_disk.h         |  4 ++--
 drivers/staging/lustre/lustre/include/lustre_fid.h          |  2 +-
 drivers/staging/lustre/lustre/include/lustre_fld.h          |  2 +-
 drivers/staging/lustre/lustre/include/lustre_handles.h      |  2 +-
 drivers/staging/lustre/lustre/include/lustre_lib.h          |  2 +-
 drivers/staging/lustre/lustre/include/lustre_mdc.h          |  2 +-
 drivers/staging/lustre/lustre/include/lustre_mds.h          |  2 +-
 drivers/staging/lustre/lustre/include/lustre_net.h          |  6 +++---
 drivers/staging/lustre/lustre/include/obd_cksum.h           |  4 ++--
 drivers/staging/lustre/lustre/include/obd_support.h         |  2 +-
 drivers/staging/lustre/lustre/ldlm/l_lock.c                 |  2 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_extent.c            |  2 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_lib.c               |  2 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_lock.c              |  2 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c             |  2 +-
 drivers/staging/lustre/lustre/llite/glimpse.c               |  2 +-
 drivers/staging/lustre/lustre/llite/lcommon_cl.c            |  2 +-
 drivers/staging/lustre/lustre/llite/llite_mmap.c            |  2 +-
 drivers/staging/lustre/lustre/llite/rw.c                    |  2 +-
 drivers/staging/lustre/lustre/llite/rw26.c                  |  2 +-
 drivers/staging/lustre/lustre/llite/vvp_object.c            |  2 +-
 drivers/staging/lustre/lustre/lov/lov_cl_internal.h         |  2 +-
 drivers/staging/lustre/lustre/lov/lov_ea.c                  |  2 +-
 drivers/staging/lustre/lustre/lov/lov_merge.c               |  2 +-
 drivers/staging/lustre/lustre/lov/lov_obd.c                 |  2 +-
 drivers/staging/lustre/lustre/lov/lov_offset.c              |  2 +-
 drivers/staging/lustre/lustre/lov/lov_pool.c                |  2 +-
 drivers/staging/lustre/lustre/lov/lov_request.c             |  2 +-
 drivers/staging/lustre/lustre/mgc/mgc_internal.h            |  2 +-
 drivers/staging/lustre/lustre/obdclass/cl_object.c          |  4 ++--
 drivers/staging/lustre/lustre/obdclass/cl_page.c            |  2 +-
 drivers/staging/lustre/lustre/obdclass/class_obd.c          |  2 +-
 drivers/staging/lustre/lustre/obdclass/linux/linux-module.c |  4 ++--
 drivers/staging/lustre/lustre/obdclass/lu_object.c          |  4 ++--
 drivers/staging/lustre/lustre/obdclass/lu_ref.c             |  2 +-
 drivers/staging/lustre/lustre/obdclass/obd_mount.c          |  2 +-
 drivers/staging/lustre/lustre/obdclass/uuid.c               |  2 +-
 drivers/staging/lustre/lustre/obdecho/echo_client.c         |  2 +-
 drivers/staging/lustre/lustre/osc/osc_cl_internal.h         |  2 +-
 drivers/staging/lustre/lustre/osc/osc_lock.c                |  2 +-
 drivers/staging/lustre/lustre/osc/osc_request.c             |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/errno.c                |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/events.c               |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/llog_client.c          |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/llog_net.c             |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/nrs.c                  |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/nrs_fifo.c             |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/pack_generic.c         |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c              |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/recover.c              |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/sec.c                  |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c             |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/sec_config.c           |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/sec_gc.c               |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c            |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/service.c              |  2 +-
 115 files changed, 156 insertions(+), 153 deletions(-)

-- 
2.8.0.rc4.16.g56331f8

[toc] | [next] | [standalone]


#1463130 — [PATCH 1/2] staging: lustre: Add include path to Makefile

FromJoe Perches <joe@perches.com>
Date2016-08-15 21:40 +0200
Subject[PATCH 1/2] staging: lustre: Add include path to Makefile
Message-ID<s6vTQ-1iQ-29@gated-at.bofh.it>
In reply to#1463124
Start to rationalize include paths in source code files.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/staging/lustre/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile
index 95ffe33..9d00237 100644
--- a/drivers/staging/lustre/Makefile
+++ b/drivers/staging/lustre/Makefile
@@ -1,2 +1,5 @@
+subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include/
+subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include/
+
 obj-$(CONFIG_LNET)		+= lnet/
 obj-$(CONFIG_LUSTRE_FS)		+= lustre/
-- 
2.8.0.rc4.16.g56331f8

[toc] | [prev] | [next] | [standalone]


#1463171 — Re: [lustre-devel] [PATCH 1/2] staging: lustre: Add include path to Makefile

FromJames Simmons <jsimmons@infradead.org>
Date2016-08-15 23:10 +0200
SubjectRe: [lustre-devel] [PATCH 1/2] staging: lustre: Add include path to Makefile
Message-ID<s6xiW-2lI-5@gated-at.bofh.it>
In reply to#1463130
> On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote:
> > Start to rationalize include paths in source code files.
> > 
> > Signed-off-by: Joe Perches <joe@perches.com>
> > ---
> >  drivers/staging/lustre/Makefile | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile
> > index 95ffe33..9d00237 100644
> > --- a/drivers/staging/lustre/Makefile
> > +++ b/drivers/staging/lustre/Makefile
> > @@ -1,2 +1,5 @@
> > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include/
> > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include/
> > +
> >  obj-$(CONFIG_LNET)		+= lnet/
> >  obj-$(CONFIG_LUSTRE_FS)		+= lustre/
> 
> This is good, but does this break the subdir make command:
> 	make M=drivers/staging/lustre/foo_dir/
> ?
> 
> I remember the last time I tried to clean this up, it took a while...

It breaks make M=drivers/staging/lustre/foo_dir

[toc] | [prev] | [next] | [standalone]


#1463172 — Re: [PATCH 1/2] staging: lustre: Add include path to Makefile

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-08-15 23:10 +0200
SubjectRe: [PATCH 1/2] staging: lustre: Add include path to Makefile
Message-ID<s6xiW-2lI-7@gated-at.bofh.it>
In reply to#1463130
On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote:
> Start to rationalize include paths in source code files.
> 
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  drivers/staging/lustre/Makefile | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile
> index 95ffe33..9d00237 100644
> --- a/drivers/staging/lustre/Makefile
> +++ b/drivers/staging/lustre/Makefile
> @@ -1,2 +1,5 @@
> +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include/
> +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include/
> +
>  obj-$(CONFIG_LNET)		+= lnet/
>  obj-$(CONFIG_LUSTRE_FS)		+= lustre/

This is good, but does this break the subdir make command:
	make M=drivers/staging/lustre/foo_dir/
?

I remember the last time I tried to clean this up, it took a while...

thanks,

greg k-h

[toc] | [prev] | [next] | [standalone]


#1463179 — Re: [PATCH 1/2] staging: lustre: Add include path to Makefile

FromJoe Perches <joe@perches.com>
Date2016-08-15 23:20 +0200
SubjectRe: [PATCH 1/2] staging: lustre: Add include path to Makefile
Message-ID<s6xsB-2qu-17@gated-at.bofh.it>
In reply to#1463172
On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote:
> On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote:
> > Start to rationalize include paths in source code files.
[]
> > diff --git a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile
[]
> > @@ -1,2 +1,5 @@
> > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include/
> > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include/
> > +
> >  obj-$(CONFIG_LNET)		+= lnet/
> >  obj-$(CONFIG_LUSTRE_FS)		+= lustre/
> This is good, but does this break the subdir make command:
> 	make M=drivers/staging/lustre/foo_dir/
> ?

hmm, yeah, it does.  Oh well, nevermind for awhile.

> I remember the last time I tried to clean this up, it took a while...

It seems like something the build tools should
handle correctly now, but I'll look at it.

No rush.

[toc] | [prev] | [next] | [standalone]


#1463188 — Building a subdirectory ignores parent subdir-ccflags (was: Re: [PATCH 1/2] staging: lustre: Add include path to Makefile)

FromJoe Perches <joe@perches.com>
Date2016-08-15 23:30 +0200
SubjectBuilding a subdirectory ignores parent subdir-ccflags (was: Re: [PATCH 1/2] staging: lustre: Add include path to Makefile)
Message-ID<s6xCi-2w3-23@gated-at.bofh.it>
In reply to#1463179
On Mon, 2016-08-15 at 14:14 -0700, Joe Perches wrote:
> On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote:
> > On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote:
> > > Start to rationalize include paths in source code files.
> []
> > > diff --git a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile
> []
> > > @@ -1,2 +1,5 @@
> > > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include/
> > > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include/
> > > +
> > >  obj-$(CONFIG_LNET)		+= lnet/
> > >  obj-$(CONFIG_LUSTRE_FS)		+= lustre/
> > This is good, but does this break the subdir make command:
> > 	make M=drivers/staging/lustre/foo_dir/
> > ?
> hmm, yeah, it does.  Oh well, nevermind for awhile.
> > I remember the last time I tried to clean this up, it took a while...
> It seems like something the build tools should
> handle correctly now, but I'll look at it.

Perhaps making a specific directory should also walk up
any parent directory Makefiles looking for subdir flags.

Is that unreasonable?  Any suggestions?

[toc] | [prev] | [next] | [standalone]


#1463211 — Re: Building a subdirectory ignores parent subdir-ccflags

FromMichal Marek <mmarek@suse.com>
Date2016-08-16 00:10 +0200
SubjectRe: Building a subdirectory ignores parent subdir-ccflags
Message-ID<s6yf0-327-55@gated-at.bofh.it>
In reply to#1463188
Dne 15.8.2016 v 23:29 Joe Perches napsal(a):
> On Mon, 2016-08-15 at 14:14 -0700, Joe Perches wrote:
>> On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote:
>>> On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote:
>>>> Start to rationalize include paths in source code files.
>> []
>>>> diff --git a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile
>> []
>>>> @@ -1,2 +1,5 @@
>>>> +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include/
>>>> +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include/
>>>> +
>>>>  obj-$(CONFIG_LNET)		+= lnet/
>>>>  obj-$(CONFIG_LUSTRE_FS)		+= lustre/
>>> This is good, but does this break the subdir make command:
>>> 	make M=drivers/staging/lustre/foo_dir/
>>> ?
>> hmm, yeah, it does.  Oh well, nevermind for awhile.
>>> I remember the last time I tried to clean this up, it took a while...
>> It seems like something the build tools should
>> handle correctly now, but I'll look at it.
> 
> Perhaps making a specific directory should also walk up
> any parent directory Makefiles looking for subdir flags.
> 
> Is that unreasonable?  Any suggestions?

I suggest to do make drivers/staging/lustre/. If building the lustre
subdirectories is going to be a common use case, then you can propagate
the subdir-ccflags-y assignment down to the individual Makefiles.

Michal

[toc] | [prev] | [next] | [standalone]


#1463236 — Re: Building a subdirectory ignores parent subdir-ccflags

FromJoe Perches <joe@perches.com>
Date2016-08-16 00:50 +0200
SubjectRe: Building a subdirectory ignores parent subdir-ccflags
Message-ID<s6yRH-3f5-1@gated-at.bofh.it>
In reply to#1463211
On Tue, 2016-08-16 at 00:07 +0200, Michal Marek wrote:

Hi Michal.

> > Perhaps making a specific directory should also walk up
> > any parent directory Makefiles looking for subdir flags.
> > 
> > Is that unreasonable?  Any suggestions?
> I suggest to do make drivers/staging/lustre/. If building the lustre
> subdirectories is going to be a common use case, then you can propagate
> the subdir-ccflags-y assignment down to the individual Makefiles.

I don't have a problem with that.

Others might though for whatever reason.

There are a couple other places in the tree that
also use subdir-ccflags where the results of making
a subdirectory would either fail or have unexpected
results.

Does it matter?  Not much, but it could be nicer if
it's possible for parent Makefile paths to be ascended.

I'm not much of a Makefile person, but perhaps you have
some clues/tips/suggestions for implementation?

[toc] | [prev] | [next] | [standalone]


#1463684 — Re: [PATCH 1/2] staging: lustre: Add include path to Makefile

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-08-16 13:00 +0200
SubjectRe: [PATCH 1/2] staging: lustre: Add include path to Makefile
Message-ID<s6Kga-20U-19@gated-at.bofh.it>
In reply to#1463179
On Mon, Aug 15, 2016 at 02:14:18PM -0700, Joe Perches wrote:
> On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote:
> > On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote:
> > > Start to rationalize include paths in source code files.
> []
> > > diff --git a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile
> []
> > > @@ -1,2 +1,5 @@
> > > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/include/
> > > +subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include/
> > > +
> > >  obj-$(CONFIG_LNET)		+= lnet/
> > >  obj-$(CONFIG_LUSTRE_FS)		+= lustre/
> > This is good, but does this break the subdir make command:
> > 	make M=drivers/staging/lustre/foo_dir/
> > ?
> 
> hmm, yeah, it does.  Oh well, nevermind for awhile.
> 
> > I remember the last time I tried to clean this up, it took a while...
> 
> It seems like something the build tools should
> handle correctly now, but I'll look at it.

Nah, I think it's fine the way it is.  What's wrong with the "../" type
things in the include directives?  The build system works well with it,
you can build any single module or file correctly, and it's obvious what
the code is including from.

Now you might argue that the lustre code shouldn't have such a mess of
include files like this, and I would totally agree.  I suggest working
on reducing the number of .h files they have, and centralizing them such
that all of these cross-directory includes aren't needed anymore either
in the build directives, or in the .c files.

thanks,

greg k-h

[toc] | [prev] | [next] | [standalone]


#1463693 — Re: [PATCH 1/2] staging: lustre: Add include path to Makefile

FromJoe Perches <joe@perches.com>
Date2016-08-16 13:10 +0200
SubjectRe: [PATCH 1/2] staging: lustre: Add include path to Makefile
Message-ID<s6KpQ-2jv-35@gated-at.bofh.it>
In reply to#1463684
On Tue, 2016-08-16 at 12:53 +0200, Greg Kroah-Hartman wrote:
> On Mon, Aug 15, 2016 at 02:14:18PM -0700, Joe Perches wrote:
> > On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote:
> > > On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote:
> > > > Start to rationalize include paths in source code files.
[]
> Nah, I think it's fine the way it is.  What's wrong with the "../" type
> things in the include directives?

.. path specific includes are unnecessarily file layout sensitive.

There are identically named .h files in separate directories.

The idea was to isolate the uapi type .h files from local ones.

I'll just give this up and let the lustre folks handle it.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web