Skip to content

Commit 93ee235

Browse files
committed
auxdisplay: charlcd: Don't rebuild when CONFIG_PANEL_BOOT_MESSAGE=y
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]>
1 parent 29b0872 commit 93ee235

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/auxdisplay/charlcd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
#include <linux/uaccess.h>
1818
#include <linux/workqueue.h>
1919

20+
#ifndef CONFIG_PANEL_BOOT_MESSAGE
2021
#include <generated/utsrelease.h>
22+
#endif
2123

2224
#include "charlcd.h"
2325

0 commit comments

Comments
 (0)