From: Neil Horman <nhorman@tuxdriver.com>
To: Yann Droneaud <ydroneaud@opteya.com>
Cc: "Michal Marek" <mmarek@suse.cz>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Sam Ravnborg" <sam@ravnborg.org>,
"Joonsoo Kim" <js1304@gmail.com>,
"Alexey Dobriyan" <adobriyan@gmail.com>,
"Ian Campbell" <ijc@hellion.org.uk>,
"Jiri Slaby" <jirislaby@gmail.com>,
linux-kernel@vger.kernel.org,
"Michael Ellerman" <mpe@ellerman.id.au>,
"Anton Blanchard" <anton@samba.org>,
"Benjamin Herrenschmidt" <benh@kernel.crashing.org>,
"Hans-Bernhard Bröker" <broeker@users.sourceforge.net>,
"Hans-Bernhard Broeker" <broeker@physik.rwth-aachen.de>,
"Neil Horman" <nhorman@users.sourceforge.net>,
"Gerhard Sittig" <gsi@denx.de>,
"Konstantin Khlebnikov" <koct9i@gmail.com>
Subject: Re: [PATCH] scripts/tags.sh: ignore symlink'ed source files
Date: Wed, 21 May 2014 11:27:34 -0400 [thread overview]
Message-ID: <20140521152734.GB5829@localhost.localdomain> (raw)
In-Reply-To: <1400679137-28122-1-git-send-email-ydroneaud@opteya.com>
On Wed, May 21, 2014 at 03:32:17PM +0200, Yann Droneaud wrote:
> Since commit 22d651dcef536c75f75537290bf3da5038e68b6b ('selftests/powerpc:
> Import Anton's memcpy / copy_tofrom_user tests'), some source files in the
> tree appear as symlink.
> Until commit 8c38a5328af8080bc69a25b3e4e144b03eeea95e ('scripts/tags.sh:
> ignore code of user space tools'), those symlinks made cscope report some
> warnings:
>
> $ make ALLSOURCE_ARCHS=all O=./obj-cscope/ cscope
> GEN cscope
> cscope: cannot find
> file .../tools/testing/selftests/powerpc/copyloops/copyuser_power7.S
> cscope: cannot find
> file .../tools/testing/selftests/powerpc/copyloops/memcpy_64.S
> cscope: cannot find
> file .../tools/testing/selftests/powerpc/copyloops/memcpy_power7.S
> cscope: cannot find
> file .../tools/testing/selftests/powerpc/copyloops/copyuser_64.S
>
> In order to prevent the same kind of warnings to be triggered by future
> addition of symlinks, the best option is to ignore all symlinks when
> building the file list to be processed by cscope (and other tools
> supported by scripts/tags.sh).
>
> Ignoring symlinks won't hide source files from cscope (and others) as the
> target of these symlinks already appear somewhere else in the tree, and,
> as such, should be processed by cscope (or others).
>
> Note that, cscope, when used with -R option to make it find the files to
> process by itself, already skip symlinks: it's not expected that cscope
> access source files through symlink.
>
> On top of commit 8c38a5328af8080bc69a25b3e4e144b03eeea95e ('scripts/tags.sh:
> ignore code of user space tools'), scripts/tags.sh output from
> "make cscope tags TAGS" is the same with and without this patch: it doesn't
> seems to introduce any regression (on Fedora 20).
>
> Link: http://lkml.kernel.org/r/1396530975.4361.28.camel@localhost.localdomain
> Link: http://mid.gmane.org/534312F8.5090609@t-online.de
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Anton Blanchard <anton@samba.org>
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Cc: Hans-Bernhard Bröker <broeker@users.sourceforge.net>,
> Cc: Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>,
> Cc: Neil Horman <nhorman@users.sourceforge.net>
> Cc: Neil Horman <nhorman@tuxdriver.com>
> Cc: Gerhard Sittig <gsi@denx.de>
> Cc: Konstantin Khlebnikov <koct9i@gmail.com>
> Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
next prev parent reply other threads:[~2014-05-21 15:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 13:16 cscope: issue with symlinks in tools/testing/selftests/powerpc/copyloops/ Yann Droneaud
2014-04-03 13:16 ` Yann Droneaud
2014-04-07 10:42 ` Neil Horman
2014-04-07 10:42 ` Neil Horman
2014-04-07 12:42 ` Gerhard Sittig
2014-04-07 12:42 ` Gerhard Sittig
2014-04-07 15:36 ` Neil Horman
2014-04-07 15:36 ` Neil Horman
2014-04-08 7:56 ` Gerhard Sittig
2014-04-08 7:56 ` Gerhard Sittig
2014-04-08 10:49 ` Neil Horman
2014-04-08 10:49 ` Neil Horman
2014-05-02 1:19 ` Michael Ellerman
2014-05-02 1:19 ` Michael Ellerman
2014-05-21 13:32 ` [PATCH] scripts/tags.sh: ignore symlink'ed source files Yann Droneaud
2014-05-21 15:27 ` Neil Horman [this message]
2014-06-09 21:04 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140521152734.GB5829@localhost.localdomain \
--to=nhorman@tuxdriver.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=anton@samba.org \
--cc=benh@kernel.crashing.org \
--cc=broeker@physik.rwth-aachen.de \
--cc=broeker@users.sourceforge.net \
--cc=gsi@denx.de \
--cc=ijc@hellion.org.uk \
--cc=jirislaby@gmail.com \
--cc=js1304@gmail.com \
--cc=koct9i@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=mpe@ellerman.id.au \
--cc=nhorman@users.sourceforge.net \
--cc=sam@ravnborg.org \
--cc=ydroneaud@opteya.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.