Files
linux-cix/fs
Brahmajit Das 3ad1feaa0b smb: server: Fix building with GCC 15
[ Upstream commit e18655cf35a5958fbf4ae9ca3ebf28871a3a1801 ]

GCC 15 introduces -Werror=unterminated-string-initialization by default,
this results in the following build error

fs/smb/server/smb_common.c:21:35: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-ini
tialization]
   21 | static const char basechars[43] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_-!@#$%";
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

To this we are replacing char basechars[43] with a character pointer
and then using strlen to get the length.

Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-02 10:32:05 +01:00
..
2024-08-19 06:04:25 +02:00
2024-12-09 10:32:42 +01:00
2024-10-22 15:46:20 +02:00
2024-08-03 08:54:22 +02:00
2024-12-14 20:00:21 +01:00
2024-08-19 06:04:25 +02:00
2025-01-02 10:32:05 +01:00
2024-02-23 09:25:13 +01:00
2024-08-19 06:04:25 +02:00