From: Zorro Lang <zlang@redhat.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] fs/fsstress: modify compile warning about fsstress.c
Date: Tue, 12 Aug 2014 18:00:16 +0800 [thread overview]
Message-ID: <1407837616-13078-1-git-send-email-zlang@redhat.com> (raw)
when compile kernel/fs/fsstress/fsstress.c, some warning always be printed.
Because there is a new field 'isxfs' be added in opdesc_t struct,
but some lines of opdesc_t ops[] forget to init this field.
Signed-off-by: Zorro Lang <zlang@redhat.com>
---
testcases/kernel/fs/fsstress/fsstress.c | 40 ++++++++++++++++-----------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testcases/kernel/fs/fsstress/fsstress.c
index 4a8a1c2..1783783 100644
--- a/testcases/kernel/fs/fsstress/fsstress.c
+++ b/testcases/kernel/fs/fsstress/fsstress.c
@@ -164,35 +164,35 @@ opdesc_t ops[] = {
{OP_BULKSTAT, "bulkstat", bulkstat_f, 1, 0, 1},
{OP_BULKSTAT1, "bulkstat1", bulkstat1_f, 1, 0, 1},
#endif
- {OP_CHOWN, "chown", chown_f, 3, 1},
- {OP_CREAT, "creat", creat_f, 4, 1},
- {OP_DREAD, "dread", dread_f, 4, 0},
- {OP_DWRITE, "dwrite", dwrite_f, 4, 1},
- {OP_FDATASYNC, "fdatasync", fdatasync_f, 1, 1},
+ {OP_CHOWN, "chown", chown_f, 3, 1, 0},
+ {OP_CREAT, "creat", creat_f, 4, 1, 0},
+ {OP_DREAD, "dread", dread_f, 4, 0, 0},
+ {OP_DWRITE, "dwrite", dwrite_f, 4, 1, 0},
+ {OP_FDATASYNC, "fdatasync", fdatasync_f, 1, 1, 0},
#ifndef NO_XFS
{OP_FREESP, "freesp", freesp_f, 1, 1, 1},
#endif
- {OP_FSYNC, "fsync", fsync_f, 1, 1},
- {OP_GETDENTS, "getdents", getdents_f, 1, 0},
- {OP_LINK, "link", link_f, 1, 1},
- {OP_MKDIR, "mkdir", mkdir_f, 2, 1},
- {OP_MKNOD, "mknod", mknod_f, 2, 1},
- {OP_READ, "read", read_f, 1, 0},
- {OP_READLINK, "readlink", readlink_f, 1, 0},
- {OP_RENAME, "rename", rename_f, 2, 1},
+ {OP_FSYNC, "fsync", fsync_f, 1, 1, 0},
+ {OP_GETDENTS, "getdents", getdents_f, 1, 0, 0},
+ {OP_LINK, "link", link_f, 1, 1, 0},
+ {OP_MKDIR, "mkdir", mkdir_f, 2, 1, 0},
+ {OP_MKNOD, "mknod", mknod_f, 2, 1, 0},
+ {OP_READ, "read", read_f, 1, 0, 0},
+ {OP_READLINK, "readlink", readlink_f, 1, 0, 0},
+ {OP_RENAME, "rename", rename_f, 2, 1, 0},
#ifndef NO_XFS
{OP_RESVSP, "resvsp", resvsp_f, 1, 1, 1},
#endif
- {OP_RMDIR, "rmdir", rmdir_f, 1, 1},
- {OP_STAT, "stat", stat_f, 1, 0},
- {OP_SYMLINK, "symlink", symlink_f, 2, 1},
- {OP_SYNC, "sync", sync_f, 1, 0},
- {OP_TRUNCATE, "truncate", truncate_f, 2, 1},
- {OP_UNLINK, "unlink", unlink_f, 1, 1},
+ {OP_RMDIR, "rmdir", rmdir_f, 1, 1, 0},
+ {OP_STAT, "stat", stat_f, 1, 0, 0},
+ {OP_SYMLINK, "symlink", symlink_f, 2, 1, 0},
+ {OP_SYNC, "sync", sync_f, 1, 0, 0},
+ {OP_TRUNCATE, "truncate", truncate_f, 2, 1, 0},
+ {OP_UNLINK, "unlink", unlink_f, 1, 1, 0},
#ifndef NO_XFS
{OP_UNRESVSP, "unresvsp", unresvsp_f, 1, 1, 1},
#endif
- {OP_WRITE, "write", write_f, 4, 1},
+ {OP_WRITE, "write", write_f, 4, 1, 0},
}, *ops_end;
flist_t flist[FT_nft] = {
--
1.9.3
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2014-08-12 10:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 10:00 Zorro Lang [this message]
2014-08-20 2:37 [LTP] [PATCH] fs/fsstress: modify compile warning about fsstress.c Zorro Lang
2014-09-02 13:21 ` chrubis
[not found] ` <5405E5EC.4010406@redhat.com>
2014-09-02 16:00 ` chrubis
2014-08-29 7:05 Zorro Lang
[not found] <1409672694-32108-1-git-send-email-zlang@redhat.com>
2014-09-03 7:22 ` chrubis
[not found] ` <5406CE2C.5080006@redhat.com>
2014-09-03 8:17 ` chrubis
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=1407837616-13078-1-git-send-email-zlang@redhat.com \
--to=zlang@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
/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.