char: misc: Remove redundant forward declarations
authorZijun Hu <zijun.hu@oss.qualcomm.com>
Fri, 20 Jun 2025 14:35:18 +0000 (22:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jun 2025 15:48:02 +0000 (16:48 +0100)
commit7aecbbdf86d3288576a84df360f96b93ceec7ee2
treec9a8430ad73528757c241c4481b91a89e867fbec
parent74d8361be3441dff0d3bd00840545288451c77a5
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>
include/linux/miscdevice.h