From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
"Anthony PERARD" <anthony.perard@citrix.com>,
"Jan Beulich" <JBeulich@suse.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Julien Grall" <julien@xen.org>,
"Bertrand Marquis" <bertrand.marquis@arm.com>
Subject: Re: [PATCH] xen/build: Fix `make cscope` rune
Date: Thu, 16 Dec 2021 17:23:54 +0000 [thread overview]
Message-ID: <87sfuswjiu.fsf@epam.com> (raw)
In-Reply-To: <20211216092014.707-1-andrew.cooper3@citrix.com>
Hi Andrew,
Andrew Cooper <andrew.cooper3@citrix.com> writes:
> There are two problems, both in the all_sources definition.
As a cscope user I want to thank you for the fix.
>
> First, everything in arch/*/include gets double hits with cscope queries,
> because they end up getting listed twice in cscope.files.
>
> Drop the first `find` rune of the three, because it's redundant with the third
> rune following c/s 725381a5eab3 ("xen: move include/asm-* to
> arch/*/include/asm").
>
> Second, and this way for a long time:
>
> $ make cscope
> ( find arch/x86/include -name '*.h' -print; find include -name '*.h' -print;
> find xsm arch/x86 common drivers lib test -name '*.[chS]' -print ) >
> cscope.files
> cscope -k -b -q
> cscope: cannot find file arch/x86/efi/efi.h
> cscope: cannot find file arch/x86/efi/ebmalloc.c
> cscope: cannot find file arch/x86/efi/compat.c
> cscope: cannot find file arch/x86/efi/pe.c
> cscope: cannot find file arch/x86/efi/boot.c
> cscope: cannot find file arch/x86/efi/runtime.c
>
> This is caused by these being symlinks to common/efi. Restrict all find runes
> to `-type f` to skip symlinks, because common/efi/*.c are already listed.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
> ---
> CC: Anthony PERARD <anthony.perard@citrix.com>
> CC: Jan Beulich <JBeulich@suse.com>
> CC: Roger Pau Monné <roger.pau@citrix.com>
> CC: Wei Liu <wl@xen.org>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Julien Grall <julien@xen.org>
> CC: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
> CC: Bertrand Marquis <bertrand.marquis@arm.com>
>
> Anthony: I looked through the remainder of your build series and I cant spot
> any edits to all_sources. Apologies if I missed it.
> ---
> xen/Makefile | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/xen/Makefile b/xen/Makefile
> index 2ad7da7ad67b..dc6bdc44c7a2 100644
> --- a/xen/Makefile
> +++ b/xen/Makefile
> @@ -468,9 +468,8 @@ arch/$(TARGET_ARCH)/include/asm/asm-offsets.h: asm-offsets.s
>
> SUBDIRS = xsm arch/$(TARGET_ARCH) common drivers lib test
> define all_sources
> - ( find arch/$(TARGET_ARCH)/include -name '*.h' -print; \
> - find include -name '*.h' -print; \
> - find $(SUBDIRS) -name '*.[chS]' -print )
> + ( find include -type f -name '*.h' -print; \
> + find $(SUBDIRS) -type f -name '*.[chS]' -print )
In my tooling I'm using -printf "\"%p\"\n" because generally there might
be files with funny names.
> endef
>
> define set_exuberant_flags
--
Volodymyr Babchuk at EPAM
prev parent reply other threads:[~2021-12-16 17:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-16 9:20 [PATCH] xen/build: Fix `make cscope` rune Andrew Cooper
2021-12-16 14:00 ` Jan Beulich
2021-12-16 14:58 ` Andrew Cooper
2021-12-16 15:15 ` Jan Beulich
2021-12-16 15:18 ` Andrew Cooper
2021-12-16 14:41 ` Anthony PERARD
2021-12-16 17:23 ` Volodymyr Babchuk [this message]
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=87sfuswjiu.fsf@epam.com \
--to=volodymyr_babchuk@epam.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=julien@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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.