From: Thomas Weißschuh Date: Wed, 15 Feb 2023 01:04:53 +0000 (+0000) Subject: drm/nouveau/led: explicitly include linux/leds.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f56e0071a6fea6b416943d8736f3128c8b2abed2;p=linux.git drm/nouveau/led: explicitly include linux/leds.h Instead of relying on an accidental, transitive inclusion of linux/leds.h use it directly. Also drop the forware definition of struct led_classdev that is now provided by linux/leds.h. Signed-off-by: Thomas Weißschuh Reviewed-by: Lyude Paul Signed-off-by: Lyude Paul Link: https://patchwork.freedesktop.org/patch/msgid/20230215-power_supply-leds-nouveau-v1-1-ea93bfa0ba7e@weissschuh.net --- diff --git a/drivers/gpu/drm/nouveau/nouveau_led.h b/drivers/gpu/drm/nouveau/nouveau_led.h index 21a5775028cc6..bc9bc7208da3c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_led.h +++ b/drivers/gpu/drm/nouveau/nouveau_led.h @@ -27,7 +27,7 @@ #include "nouveau_drv.h" -struct led_classdev; +#include struct nouveau_led { struct drm_device *dev;