From f2cb035c8f931efff4a020b164e657f16f51934b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 17 Jan 2025 10:39:47 +0100 Subject: pkg/declextract: remove unused includes and defines This is nice on its own, but this will also help to prevent lots of problems when we export more info from the clang tool in future. The clang tool does not know what will end up in the final descriptions, so it exports info about all consts that it encounters. As the result we pull in lots of includes/defines, and lots of kernel includes/defines are broken or create problems. So the fewer we have, the better. --- tools/syz-declextract/testdata/include/uapi/unused_ioctl.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tools/syz-declextract/testdata/include/uapi/unused_ioctl.h (limited to 'tools/syz-declextract/testdata/include') diff --git a/tools/syz-declextract/testdata/include/uapi/unused_ioctl.h b/tools/syz-declextract/testdata/include/uapi/unused_ioctl.h new file mode 100644 index 000000000..6c3dbb036 --- /dev/null +++ b/tools/syz-declextract/testdata/include/uapi/unused_ioctl.h @@ -0,0 +1,6 @@ +// Copyright 2024 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +#include "ioctl.h" + +#define UNUSED_IOCTL1 _IO('c', 1) -- cgit mrf-deployment