Message ID | 20220110130138.25855-1-chrubis@suse.cz |
---|---|
State | Accepted |
Headers | show |
Series | [COMMITTED] quotaclt: Fix build faliures in metadata parser | expand |
Hi Cyril > 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 > > Signed-off-by: Cyril Hrubis<chrubis@suse.cz> > --- > testcases/kernel/syscalls/quotactl/quotactl02.c | 1 + > testcases/kernel/syscalls/quotactl/quotactl05.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/testcases/kernel/syscalls/quotactl/quotactl02.c b/testcases/kernel/syscalls/quotactl/quotactl02.c > index 56fa23b9d..c16e0a3f8 100644 > --- a/testcases/kernel/syscalls/quotactl/quotactl02.c > +++ b/testcases/kernel/syscalls/quotactl/quotactl02.c > @@ -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; > diff --git a/testcases/kernel/syscalls/quotactl/quotactl05.c b/testcases/kernel/syscalls/quotactl/quotactl05.c > index e56e191df..541007e97 100644 > --- a/testcases/kernel/syscalls/quotactl/quotactl05.c > +++ b/testcases/kernel/syscalls/quotactl/quotactl05.c > @@ -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;
diff --git a/testcases/kernel/syscalls/quotactl/quotactl02.c b/testcases/kernel/syscalls/quotactl/quotactl02.c index 56fa23b9d..c16e0a3f8 100644 --- a/testcases/kernel/syscalls/quotactl/quotactl02.c +++ b/testcases/kernel/syscalls/quotactl/quotactl02.c @@ -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; diff --git a/testcases/kernel/syscalls/quotactl/quotactl05.c b/testcases/kernel/syscalls/quotactl/quotactl05.c index e56e191df..541007e97 100644 --- a/testcases/kernel/syscalls/quotactl/quotactl05.c +++ b/testcases/kernel/syscalls/quotactl/quotactl05.c @@ -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;
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 <chrubis@suse.cz> --- testcases/kernel/syscalls/quotactl/quotactl02.c | 1 + testcases/kernel/syscalls/quotactl/quotactl05.c | 1 + 2 files changed, 2 insertions(+)