diff options
author | Zijun Hu <zijun.hu@oss.qualcomm.com> | 2025-06-20 22:35:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-24 16:48:02 +0100 |
commit | 7aecbbdf86d3288576a84df360f96b93ceec7ee2 (patch) | |
tree | c9a8430ad73528757c241c4481b91a89e867fbec | |
parent | 74d8361be3441dff0d3bd00840545288451c77a5 (diff) |
char: misc: Remove redundant forward declarations
Header miscdevice.h includes linux/device.h which has definations for
below two forward declarations directly or indirectly:
struct device;
struct attribute_group;
Remove these redundant forward declarations from miscdevice.h
Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250620-fix_mischar-v1-1-6c2716bbf1fa@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/linux/miscdevice.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h index 69e110c2b86a..3e6deb00fc85 100644 --- a/include/linux/miscdevice.h +++ b/include/linux/miscdevice.h @@ -73,9 +73,6 @@ #define RFKILL_MINOR 242 #define MISC_DYNAMIC_MINOR 255 -struct device; -struct attribute_group; - struct miscdevice { int minor; const char *name; |