]> Git Repo - linux.git/commitdiff
auxdisplay: charlcd: Don't rebuild when CONFIG_PANEL_BOOT_MESSAGE=y
authorAndy Shevchenko <[email protected]>
Tue, 9 Apr 2024 17:39:21 +0000 (20:39 +0300)
committerAndy Shevchenko <[email protected]>
Thu, 11 Apr 2024 10:34:29 +0000 (13:34 +0300)
When CONFIG_PANEL_BOOT_MESSAGE=y the module still includes
the generated header and gets rebuilt even if it doesn't use
anything from that header.  Include generated header conditionally
to avoid unnecessary rebuilds.

Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
drivers/auxdisplay/charlcd.c

index 5df019720c5617adf2c15737686c0283af6be7de..bb94638144546ea5710f247bab0601522b4b8796 100644 (file)
@@ -17,7 +17,9 @@
 #include <linux/uaccess.h>
 #include <linux/workqueue.h>
 
+#ifndef CONFIG_PANEL_BOOT_MESSAGE
 #include <generated/utsrelease.h>
+#endif
 
 #include "charlcd.h"
 
This page took 0.056996 seconds and 4 git commands to generate.