Files
Matthew Sakai 7f6ecc8542 dm vdo: use a short static string for thread name prefix
[ Upstream commit 3280c9313c ]

Also remove MODULE_NAME and a BUG_ON check, both unneeded.

This fixes a warning about string truncation in snprintf that
will never happen in practice:

drivers/md/dm-vdo/vdo.c: In function ‘vdo_make’:
drivers/md/dm-vdo/vdo.c:564:5: error: ‘%s’ directive output may be truncated writing up to 55 bytes into a region of size 16 [-Werror=format-truncation=]
    "%s%u", MODULE_NAME, instance);
     ^~
drivers/md/dm-vdo/vdo.c:563:2: note: ‘snprintf’ output between 2 and 66 bytes into a destination of size 16
  snprintf(vdo->thread_name_prefix, sizeof(vdo->thread_name_prefix),
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "%s%u", MODULE_NAME, instance);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:13:41 +02:00
..
2024-12-23 08:17:23 -07:00
2024-04-01 11:53:37 -06:00
2024-06-26 11:32:39 -04:00
2024-05-09 09:10:58 -04:00
2024-02-20 14:22:51 -05:00
2025-01-17 22:24:04 +01:00
2025-01-17 22:24:11 +01:00
2024-12-23 08:17:23 -07:00
2025-01-17 22:24:06 +01:00
2024-11-20 11:38:04 +01:00
2024-11-20 11:38:04 +01:00
2025-01-13 07:36:29 -08:00
2025-01-13 07:36:29 -08:00
2025-01-13 07:36:29 -08:00
2025-01-31 10:18:50 -08:00