Skip to contentSkip to conversation

quotaclt: Fix build faliures in metadata parser

PATCH In review Cyril Hrubis 2 participants 2 messages Jan 10, 2022 – Jan 11, 2022

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 56fa23b9d..c16e0a3f8 100644
@@ -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
index e56e191df..541007e97 100644
@@ -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
#1 lore raw

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
---
  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
index 56fa23b9d..c16e0a3f8 100644
@@ -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
index e56e191df..541007e97 100644
@@ -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