aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkg/declextract/serialization.go2
-rw-r--r--sys/linux/auto.txt2
-rw-r--r--tools/syz-declextract/clangtool/output.h3
-rw-r--r--tools/syz-declextract/testdata/file_operations.c.txt2
-rw-r--r--tools/syz-declextract/testdata/functions.c.txt2
-rw-r--r--tools/syz-declextract/testdata/io_uring.c.txt2
-rw-r--r--tools/syz-declextract/testdata/netlink.c.txt2
-rw-r--r--tools/syz-declextract/testdata/syscall.c.txt2
-rw-r--r--tools/syz-declextract/testdata/types.c.json2
-rw-r--r--tools/syz-declextract/testdata/types.c.txt2
10 files changed, 10 insertions, 11 deletions
diff --git a/pkg/declextract/serialization.go b/pkg/declextract/serialization.go
index 2906ce6c2..6d27d2a13 100644
--- a/pkg/declextract/serialization.go
+++ b/pkg/declextract/serialization.go
@@ -25,7 +25,7 @@ const header = `# Code generated by syz-declextract. DO NOT EDIT.
meta automatic
-type auto_todo intptr
+type auto_todo int8
`
diff --git a/sys/linux/auto.txt b/sys/linux/auto.txt
index 2b4759b0c..356e8b27d 100644
--- a/sys/linux/auto.txt
+++ b/sys/linux/auto.txt
@@ -2,7 +2,7 @@
meta automatic
-type auto_todo intptr
+type auto_todo int8
include <vdso/bits.h>
include <linux/types.h>
diff --git a/tools/syz-declextract/clangtool/output.h b/tools/syz-declextract/clangtool/output.h
index d09881aee..eea86afa2 100644
--- a/tools/syz-declextract/clangtool/output.h
+++ b/tools/syz-declextract/clangtool/output.h
@@ -298,8 +298,7 @@ inline void print(JSONPrinter& Printer, const NetlinkPolicy& V) {
// This type is used when we can't figure out the right type, but need some type to use.
inline FieldType TodoType() {
return IntType{
- // TODO: use size 1, then arrays will be lowered to buffers.
- .ByteSize = 8,
+ .ByteSize = 1,
.Name = "TODO",
.Base = "long",
};
diff --git a/tools/syz-declextract/testdata/file_operations.c.txt b/tools/syz-declextract/testdata/file_operations.c.txt
index e812350a3..f2a0455bc 100644
--- a/tools/syz-declextract/testdata/file_operations.c.txt
+++ b/tools/syz-declextract/testdata/file_operations.c.txt
@@ -2,7 +2,7 @@
meta automatic
-type auto_todo intptr
+type auto_todo int8
include <vdso/bits.h>
include <linux/types.h>
diff --git a/tools/syz-declextract/testdata/functions.c.txt b/tools/syz-declextract/testdata/functions.c.txt
index 998d5fb72..cab813f8b 100644
--- a/tools/syz-declextract/testdata/functions.c.txt
+++ b/tools/syz-declextract/testdata/functions.c.txt
@@ -2,7 +2,7 @@
meta automatic
-type auto_todo intptr
+type auto_todo int8
include <vdso/bits.h>
include <linux/types.h>
diff --git a/tools/syz-declextract/testdata/io_uring.c.txt b/tools/syz-declextract/testdata/io_uring.c.txt
index 3ddbbcf40..77183198f 100644
--- a/tools/syz-declextract/testdata/io_uring.c.txt
+++ b/tools/syz-declextract/testdata/io_uring.c.txt
@@ -2,7 +2,7 @@
meta automatic
-type auto_todo intptr
+type auto_todo int8
include <vdso/bits.h>
include <linux/types.h>
diff --git a/tools/syz-declextract/testdata/netlink.c.txt b/tools/syz-declextract/testdata/netlink.c.txt
index f4042d816..e61244406 100644
--- a/tools/syz-declextract/testdata/netlink.c.txt
+++ b/tools/syz-declextract/testdata/netlink.c.txt
@@ -2,7 +2,7 @@
meta automatic
-type auto_todo intptr
+type auto_todo int8
include <vdso/bits.h>
include <linux/types.h>
diff --git a/tools/syz-declextract/testdata/syscall.c.txt b/tools/syz-declextract/testdata/syscall.c.txt
index b55b077c3..de87f1866 100644
--- a/tools/syz-declextract/testdata/syscall.c.txt
+++ b/tools/syz-declextract/testdata/syscall.c.txt
@@ -2,7 +2,7 @@
meta automatic
-type auto_todo intptr
+type auto_todo int8
include <vdso/bits.h>
include <linux/types.h>
diff --git a/tools/syz-declextract/testdata/types.c.json b/tools/syz-declextract/testdata/types.c.json
index 944346502..9733798ab 100644
--- a/tools/syz-declextract/testdata/types.c.json
+++ b/tools/syz-declextract/testdata/types.c.json
@@ -79,7 +79,7 @@
"ptr": {
"elem": {
"int": {
- "byte_size": 8,
+ "byte_size": 1,
"name": "TODO",
"base": "long"
}
diff --git a/tools/syz-declextract/testdata/types.c.txt b/tools/syz-declextract/testdata/types.c.txt
index 88da34315..45d451d8a 100644
--- a/tools/syz-declextract/testdata/types.c.txt
+++ b/tools/syz-declextract/testdata/types.c.txt
@@ -2,7 +2,7 @@
meta automatic
-type auto_todo intptr
+type auto_todo int8
include <vdso/bits.h>
include <linux/types.h>