diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-04-09 20:39:21 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-04-11 13:34:29 +0300 |
commit | 93ee235f55d3e1c881e766a320cedcad0b9aca42 (patch) | |
tree | 51d14be5ca73f66178ba5610251e2de850ec9d72 | |
parent | 29b08729abf5fcf1c3844de34ddfcc5e6d7a11a4 (diff) | |
download | lwn-93ee235f55d3e1c881e766a320cedcad0b9aca42.tar.gz lwn-93ee235f55d3e1c881e766a320cedcad0b9aca42.zip |
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 <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r-- | drivers/auxdisplay/charlcd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index 5df019720c56..bb9463814454 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" |