# define TEST_SYSCALL_NR __NR_fstat
# define TEST_SYSCALL_STR "fstat"
-# define SAMPLE_SIZE ((kernel_ulong_t) 43147718418ULL)
+# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 43147718418ULL)
# include "fstatx.c"
#else
# define TEST_SYSCALL_NR __NR_lstat
# define TEST_SYSCALL_STR "lstat"
-# define SAMPLE_SIZE ((kernel_ulong_t) 43147718418ULL)
+# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 43147718418ULL)
# include "lstatx.c"
#else
# define STRUCT_STAT struct __old_kernel_stat
# define STRUCT_STAT_STR "struct __old_kernel_stat"
# define STRUCT_STAT_IS_STAT64 0
-# define SAMPLE_SIZE ((kernel_ulong_t) 23147718418U)
+# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 23147718418U)
# include "fstatx.c"
#else
# define STRUCT_STAT struct __old_kernel_stat
# define STRUCT_STAT_STR "struct __old_kernel_stat"
# define STRUCT_STAT_IS_STAT64 0
-# define SAMPLE_SIZE ((kernel_ulong_t) 23147718418U)
+# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 23147718418U)
# include "lstatx.c"
#else
# define STRUCT_STAT struct __old_kernel_stat
# define STRUCT_STAT_STR "struct __old_kernel_stat"
# define STRUCT_STAT_IS_STAT64 0
-# define SAMPLE_SIZE ((kernel_ulong_t) 131478418U)
+# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 131478418U)
# include "lstatx.c"
#else
# define TEST_SYSCALL_NR __NR_stat
# define TEST_SYSCALL_STR "stat"
-# define SAMPLE_SIZE ((kernel_ulong_t) 43147718418ULL)
+# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 43147718418ULL)
# include "lstatx.c"
#else
# define STRUCT_STAT_IS_STAT64 0
# endif
# ifndef SAMPLE_SIZE
-# define SAMPLE_SIZE 43147718418ULL
+# define SAMPLE_SIZE ((libc_off_t) 43147718418ULL)
# endif
typedef off_t libc_off_t;