All of lore.kernel.org
 help / color / mirror / Atom feed
From: xuyang.jy <xuyang.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/1] utils/compat_16.mk: Further cleanup of unused sections and variables
Date: Tue, 10 Apr 2018 13:35:14 +0800	[thread overview]
Message-ID: <5ACC4D12.9040000@cn.fujitsu.com> (raw)
In-Reply-To: <20180409120028.30692-1-pvorel@suse.cz>

于 2018/4/9 20:00, Petr Vorel 写道:
> Signed-off-by: Petr Vorel<pvorel@suse.cz>
> ---
> -%_16.o: %.c $(COMPAT_16_H)
> Is this make dependency for recompiling when header changes? It doesn't
> behave like that but maybe I'm missing something.

Hi Petr

-%_16.o: %.c $(COMPAT_16_H)

This make dependency for recompiling _16.o when header changes.

$(MAKE_TARGETS_OBJS_WO_COMPAT_16): $(COMPAT_16_H)
.INTERMEDIATE: $(MAKE_TARGETS_OBJS_WO_COMPAT_16)

This make dependency for recompiling .o when header changes.

I think you may miss something.

This patch will reappear the problem that has been fixed since commit
631d16671d(syscalls/utils/compat_16.mk: fix build dependencies).
If we touch/modify the compat_tst_16.h/compat_16.h file and excute "make"
in any of syscalls directories which includes compat_16.mk, nothing will
happen.
  
Best Regards
Yang Xu

> Kind regards,
> Petr
> ---
>   testcases/kernel/syscalls/setuid/Makefile    |  3 ---
>   testcases/kernel/syscalls/utils/compat_16.mk | 22 +---------------------
>   2 files changed, 1 insertion(+), 24 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/setuid/Makefile b/testcases/kernel/syscalls/setuid/Makefile
> index 6bd943aaf..056bb9e80 100644
> --- a/testcases/kernel/syscalls/setuid/Makefile
> +++ b/testcases/kernel/syscalls/setuid/Makefile
> @@ -19,8 +19,5 @@ top_srcdir		?= ../../../..
>
>   include $(top_srcdir)/include/mk/testcases.mk
>
> -#for compat_16.mk uses the compat_16_tst.h
> -COMPAT_TST_16_H		:= 1
> -
>   include $(abs_srcdir)/../utils/compat_16.mk
>   include $(top_srcdir)/include/mk/generic_leaf_target.mk
> diff --git a/testcases/kernel/syscalls/utils/compat_16.mk b/testcases/kernel/syscalls/utils/compat_16.mk
> index 0565ddefa..3dee0c230 100644
> --- a/testcases/kernel/syscalls/utils/compat_16.mk
> +++ b/testcases/kernel/syscalls/utils/compat_16.mk
> @@ -56,28 +56,8 @@ MAKE_TARGETS		:= $(notdir $(patsubst %.c,%,$(SRCS)))
>   MAKE_TARGETS_OBJS_WO_COMPAT_16	:= $(addsuffix .o,$(MAKE_TARGETS))
>   MAKE_TARGETS		+= $(addsuffix _16,$(MAKE_TARGETS))
>
> -# XXX (garrcoop): This code should be put in question as it cannot be applied
> -# (no .h file, no TST_USE_NEWER64_SYSCALL def).
>   DEF_16			:= TST_USE_COMPAT16_SYSCALL
> -
> -ifneq ($(COMPAT_TST_16_H),1)
> -COMPAT_16_H		:= $(abs_srcdir)/../utils/compat_16.h
> -else
> -COMPAT_16_H     := $(abs_srcdir)/../utils/compat_tst_16.h
> -endif
> -
> -ifneq ($(wildcard $(COMPAT_16_H)),)
> -HAS_COMPAT_16		:= 1
> -
> -$(MAKE_TARGETS_OBJS_WO_COMPAT_16): $(COMPAT_16_H)
> -.INTERMEDIATE: $(MAKE_TARGETS_OBJS_WO_COMPAT_16)
> -
> -else
> -HAS_COMPAT_16		:= 0
> -endif
> -
>   %_16: CPPFLAGS += -D$(DEF_16)=1
> -# XXX (garrcoop): End section of code in question..
>
> -%_16.o: %.c $(COMPAT_16_H)
> +%_16.o: %.c
>   	$(COMPILE.c) $(OUTPUT_OPTION) $<




  reply	other threads:[~2018-04-10  5:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-09 12:00 [LTP] [PATCH 1/1] utils/compat_16.mk: Further cleanup of unused sections and variables Petr Vorel
2018-04-10  5:35 ` xuyang.jy [this message]
2018-04-10  6:19   ` Petr Vorel
2018-04-10  6:46     ` xuyang.jy
2018-04-10  7:23       ` Petr Vorel

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=5ACC4D12.9040000@cn.fujitsu.com \
    --to=xuyang.jy@cn.fujitsu.com \
    --cc=ltp@lists.linux.it \
    /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.