aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-04-09 20:39:21 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-04-11 13:34:29 +0300
commit93ee235f55d3e1c881e766a320cedcad0b9aca42 (patch)
tree51d14be5ca73f66178ba5610251e2de850ec9d72
parent29b08729abf5fcf1c3844de34ddfcc5e6d7a11a4 (diff)
downloadlinux-auxdisplay-for-next.tar.gz
auxdisplay: charlcd: Don't rebuild when CONFIG_PANEL_BOOT_MESSAGE=yauxdisplay-v6.10-1for-next
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 <geert@linux-m68k.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r--drivers/auxdisplay/charlcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c
index 5df019720c5617..bb94638144546e 100644
--- a/drivers/auxdisplay/charlcd.c
+++ b/drivers/auxdisplay/charlcd.c
@@ -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"