diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-02-10 12:59:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-20 17:24:25 +0300 |
commit | 17f18e04a125a75fd8d5fe1f7d88db9ccbf552cc (patch) | |
tree | 7a9fad105126895f923f86e9ac859c076f6d1cd8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 790b2f242a1e2b7ec8309fd354a0579e2279661c (diff) | |
download | linux-17f18e04a125a75fd8d5fe1f7d88db9ccbf552cc.tar.xz |
virtio_console: Get rid of unneeded temporary variable
When compiling a kernel with GCC using `make W=1` with CONFIG_WERROR=y
(which is default nowadays), the build fails:
drivers/char/virtio_console.c:1427:9: note: ‘snprintf’ output between 9 and 27 bytes into a destination of size 16
Indeed, GCC can't see the limits of the variables that are in use.
Fix this by using dev_name() of the newly created device that is
luckily the same as the string used for the DebugFS node name.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Amit Shah <amit@kernel.org>
Link: https://lore.kernel.org/r/20250210095946.4122771-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions