quotaclt: Fix build faliures in metadata parser
PATCH 1/1 quotaclt: Fix build faliures in metadata parser
The current parser has many limitations, one of them is that it only parses headers directly included by the test hence the quotactl tests have to directly include the header that defines the number of variants.
Signed-off-by Cyril Hrubis <[email protected]>
--- testcases/kernel/syscalls/quotactl/quotactl02.c | 1 + testcases/kernel/syscalls/quotactl/quotactl05.c | 1 + 2 files changed, 2 insertions(+)
testcases/kernel/syscalls/quotactl/quotactl02.c +1 -0
@@ -26,6 +26,7 @@*/ #include "quotactl02.h" +#include "quotactl_syscall_var.h" #ifdef HAVE_XFS_XQM_H static uint32_t qflagu =XFS_QUOTA_UDQ_ENFD ;
testcases/kernel/syscalls/quotactl/quotactl05.c +1 -0
@@ -19,6 +19,7 @@*/ #include "quotactl02.h" +#include "quotactl_syscall_var.h" #if defined(HAVE_XFS_XQM_H )static uint32_t qflagp =XFS_QUOTA_PDQ_ENFD ;
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Cyril
Quoted 3 lines
The current parser has many limitations, one of them is that it only parses headers directly included by the test hence the quotactl tests have to directly include the header that defines the number of variants.
Thanks for your fix. Now, I know this limit.
Best Regards
Yang Xu
Quoted 31 lines
Signed-off-by Cyril Hrubis<[email protected]>--- testcases/kernel/syscalls/quotactl/quotactl02.c | 1 + testcases/kernel/syscalls/quotactl/quotactl05.c | 1 + 2 files changed, 2 insertions(+)testcases/kernel/syscalls/quotactl/quotactl02.c +1
-0@@ -26,6 +26,7 @@*/ #include "quotactl02.h" +#include "quotactl_syscall_var.h" #ifdef HAVE_XFS_XQM_H static uint32_t qflagu =XFS_QUOTA_UDQ_ENFD ;testcases/kernel/syscalls/quotactl/quotactl05.c +1
-0@@ -19,6 +19,7 @@*/ #include "quotactl02.h" +#include "quotactl_syscall_var.h" #if defined(HAVE_XFS_XQM_H )static uint32_t qflagp =XFS_QUOTA_PDQ_ENFD ;
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp