Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] radio-shark: Mark shark_resume_leds() inline to kill compiler warning

If SHARK_USE_LEDS=1, but CONFIG_PM=n:
drivers/media/radio/radio-shark.c:275: warning: ‘shark_resume_leds’ defined but not used
Instead of making the #ifdef logic even more complicated (there are already
two definitions of shark_resume_leds()), mark shark_resume_leds() inline to
kill the compiler warning. shark_resume_leds() is small and it has only one
caller.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Geert Uytterhoeven and committed by
Mauro Carvalho Chehab
812c083e 3189ef02

+1 -3
+1 -3
drivers/media/radio/radio-shark.c
··· 271 271 cancel_work_sync(&shark->led_work); 272 272 } 273 273 274 - #ifdef CONFIG_PM 275 - static void shark_resume_leds(struct shark_device *shark) 274 + static inline void shark_resume_leds(struct shark_device *shark) 276 275 { 277 276 if (test_bit(BLUE_IS_PULSE, &shark->brightness_new)) 278 277 set_bit(BLUE_PULSE_LED, &shark->brightness_new); ··· 280 281 set_bit(RED_LED, &shark->brightness_new); 281 282 schedule_work(&shark->led_work); 282 283 } 283 - #endif 284 284 #else 285 285 static int shark_register_leds(struct shark_device *shark, struct device *dev) 286 286 {