All of lore.kernel.org
 help / color / mirror / Atom feed
From: wenyehai via ltp <ltp@lists.linux.it>
To: "xuyang2018.jy@fujitsu.com" <xuyang2018.jy@fujitsu.com>
Cc: wenyehai via ltp <ltp@lists.linux.it>
Subject: [LTP] 答复:  [PATCH] bugfix for vmsplice/vmsplice02.c
Date: Thu, 2 Dec 2021 11:43:50 +0000	[thread overview]
Message-ID: <d9027c09a742427fab990dd0156b5cf3@huawei.com> (raw)
In-Reply-To: <61A6CAD9.8030102@fujitsu.com>

Hi Yang Xu:

Thank you very much for your kind suggestions.

I had check with command "git grep "fcntl.h", the result shows that there are 1020 lines used "fcntl.h", and modified 34 testcases involved with the following patch:

0001-bugfix-for-testcases-which-with-duplicate-header-fil.patch

Subject: [LTP][PATCH v2] bugfix for testcases which with duplicate header files


Best Regards
Yehai Wen

-----邮件原件-----
发件人: xuyang2018.jy@fujitsu.com [mailto:xuyang2018.jy@fujitsu.com] 
发送时间: 2021年12月1日 9:07
收件人: wenyehai <wenyehai@huawei.com>
抄送: wenyehai via ltp <ltp@lists.linux.it>
主题: Re: [LTP] [PATCH] bugfix for vmsplice/vmsplice02.c

Hi wen
> vmsplice/vmsplice02: Remove duplicate header files fcntl.h.
>
> Signed-off-by: Yehai Wen<wenyehai@huawei.com>
> ---
>   testcases/kernel/syscalls/vmsplice/vmsplice02.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/testcases/kernel/syscalls/vmsplice/vmsplice02.c 
> b/testcases/kernel/syscalls/vmsplice/vmsplice02.c
> index 39c407c..3dc623f 100644
> --- a/testcases/kernel/syscalls/vmsplice/vmsplice02.c
> +++ b/testcases/kernel/syscalls/vmsplice/vmsplice02.c
> @@ -20,7 +20,6 @@
>   #include<sys/stat.h>
>   #include<fcntl.h>
>   #include<unistd.h>
> -#include<fcntl.h>
>   #include<sys/uio.h>
>   #include<limits.h>
Actually, lapi/fcntl.h has included fcntl.h, so the latter fcnlt.h also can be removed.

It looks ltp other places also exist this duplicate header files fcntl.h because of lapi/fcntl.h. I think we should remove fcntl.h for these cases when them use lapi/fcntl.h.

You can use "git grep "fcntl.h" " cmd to search them.


Best Regards
Yang Xu
>

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2021-12-02 11:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-27  0:17 [LTP] [PATCH] bugfix for vmsplice/vmsplice02.c wenyehai via ltp
2021-12-01  1:07 ` xuyang2018.jy
2021-12-02 11:43   ` wenyehai via ltp [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=d9027c09a742427fab990dd0156b5cf3@huawei.com \
    --to=ltp@lists.linux.it \
    --cc=wenyehai@huawei.com \
    --cc=xuyang2018.jy@fujitsu.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.