From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Cc: NeilBrown <neilb@suse.de>
Subject: Re: [LTP] [PATCH 2/3] fsstress/global.h: Include lapi/fcntl.h
Date: Wed, 28 Jun 2023 10:28:26 +0200 [thread overview]
Message-ID: <20230628082826.GA115947@pevik> (raw)
In-Reply-To: <20230628081831.123189-3-pvorel@suse.cz>
> To avoid potential problems with different O_DIRECT values across archs.
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> testcases/kernel/fs/fsstress/global.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/testcases/kernel/fs/fsstress/global.h b/testcases/kernel/fs/fsstress/global.h
> index 4ec382426..863fff263 100644
> --- a/testcases/kernel/fs/fsstress/global.h
> +++ b/testcases/kernel/fs/fsstress/global.h
> @@ -50,7 +50,6 @@
> #include <sys/ioctl.h>
> #include <sys/wait.h>
> #include <sys/types.h>
> -#include <fcntl.h>
> #include <stdlib.h>
> #include <dirent.h>
> #include <errno.h>
> @@ -58,6 +57,7 @@
> #include <stdlib.h>
> #include <stdio.h>
> #include <unistd.h>
> +#include "lapi/fcntl.h"
> #ifndef O_DIRECT
> #define O_DIRECT 040000
I forget to amend. This fallback definition should have been removed.
But maybe we should put _GNU_SOURCE definition into the header.
Kind regards,
Petr
+++ testcases/kernel/fs/fsstress/global.h
@@ -59,8 +59,4 @@
#include <unistd.h>
#include "lapi/fcntl.h"
-#ifndef O_DIRECT
-#define O_DIRECT 040000
-#endif
-
#endif
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2023-06-28 8:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-28 8:18 [LTP] [PATCH 0/3] Fix O_DIRECT definition for various archs Petr Vorel
2023-06-28 8:18 ` [LTP] [PATCH 1/3] lapi/fcntl.h: " Petr Vorel
2023-06-28 8:29 ` Petr Vorel
2023-06-28 11:39 ` Cyril Hrubis
2023-06-28 12:51 ` Petr Vorel
2023-06-28 13:36 ` Cyril Hrubis
2023-06-28 14:57 ` Petr Vorel
2023-06-28 8:18 ` [LTP] [PATCH 2/3] fsstress/global.h: Include lapi/fcntl.h Petr Vorel
2023-06-28 8:28 ` Petr Vorel [this message]
2023-06-28 8:18 ` [LTP] [PATCH 3/3] ltpscsi/scsimain.c: Remove O_DIRECT fallback definition 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=20230628082826.GA115947@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=neilb@suse.de \
/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.