Skip to contentSkip to conversation

syscalls/ioctl07.c: Fix compilation && Cleanup

PATCH New Xiao Yang 2 participants 2 messages Oct 16, 2017

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/ioctl07.c: Fix compilation && Cleanup

1) Fix compilation error on older kernels(e.g RHEL5.11GA) due to undefined __u32, as below:
error: expected specifier-qualifier-list before ‘__u32’
error: expected specifier-qualifier-list before ‘__u32’

2) Remove unused tst_safe_stdio.h header file

---
 testcases/kernel/syscalls/ioctl/ioctl07.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/ioctl/ioctl07.c +1 -1
index a159dbc..fb11178 100644
@@ -22,9 +22,9 @@
  *
  */
 
+#include <asm/types.h>
 #include <linux/random.h>
 #include <stdlib.h>
-#include "tst_safe_stdio.h"
 #include "tst_test.h"
 
 static char *s_fuzz;
Signature · 1 line
1.8.3.1