]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
driver core: delete useless forward declaration of "struct class"
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 17 May 2026 16:17:47 +0000 (19:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2026 11:30:41 +0000 (13:30 +0200)
"struct class" is defined earlier on both cases.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Link: https://patch.msgid.link/6d5937c5-9d41-4cfe-9e42-0946e12dc72d@p183
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/asm/mips_mt.h
include/linux/device.h

index 6ea02af298762a67c9e3371c367a0020d5457f5d..0358489e7d132f7474e196bf2608797ef98b6554 100644 (file)
@@ -23,7 +23,6 @@ extern void mips_mt_set_cpuoptions(void);
 static inline void mips_mt_set_cpuoptions(void) { }
 #endif
 
-struct class;
 extern const struct class mt_class;
 
 #endif /* __ASM_MIPS_MT_H */
index d54c86d7776456f733ca6e44c47d032cdbab50d6..ac05c6e0af1baa58dfc5e7aa075d3f56c0c2decf 100644 (file)
@@ -38,7 +38,6 @@ struct device_private;
 struct device_driver;
 struct driver_private;
 struct module;
-struct class;
 struct subsys_private;
 struct device_node;
 struct fwnode_handle;