Dominique Martinet
454a176943
9p: v9fs_listxattr: fix %s null argument warning
...
[ Upstream commit 9b5c6281838fc84683dd99b47302d81fce399918 ]
W=1 warns about null argument to kprintf:
In file included from fs/9p/xattr.c:12:
In function ‘v9fs_xattr_get’,
inlined from ‘v9fs_listxattr’ at fs/9p/xattr.c:142:9:
include/net/9p/9p.h:55:2: error: ‘%s’ directive argument is null
[-Werror=format-overflow=]
55 | _p9_debug(level, __func__, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use an empty string instead of :
- this is ok 9p-wise because p9pdu_vwritef serializes a null string
and an empty string the same way (one '0' word for length)
- since this degrades the print statements, add new single quotes for
xattr's name delimter (Old: "file = (null)", new: "file = ''")
Link: https://lore.kernel.org/r/20231008060138.517057-1-suhui@nfschina.com
Suggested-by: Su Hui <suhui@nfschina.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Acked-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Message-ID: <20231025103445.1248103-2-asmadeus@codewreck.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 17:14:50 +00:00
..
2023-11-28 17:14:50 +00:00
2023-05-24 08:42:17 -06:00
2023-05-24 08:42:17 -06:00
2023-07-04 12:24:32 -07:00
2023-09-23 11:14:17 +02:00
2023-05-30 16:42:00 -07:00
2023-05-24 08:42:17 -06:00
2023-11-28 17:14:40 +00:00
2023-06-26 10:14:36 -07:00
2023-11-08 14:09:03 +01:00
2023-08-06 15:08:35 +02:00
2023-04-03 09:23:54 +02:00
2023-05-24 08:42:17 -06:00
2023-05-23 19:46:09 -07:00
2023-05-31 19:02:14 +01:00
2023-03-13 12:36:34 +01:00
2023-11-20 11:57:09 +01:00
2023-05-24 08:42:17 -06:00
2023-09-23 11:14:32 +02:00
2023-11-20 11:57:11 +01:00
2023-11-28 17:14:49 +00:00
2023-08-06 15:08:35 +02:00
2023-09-23 11:14:26 +02:00
2023-11-20 11:57:08 +01:00
2023-11-28 17:14:50 +00:00
2023-05-24 08:42:17 -06:00
2023-02-23 17:55:40 -08:00
2023-01-30 12:51:54 +00:00
2023-09-19 12:30:23 +02:00
2023-10-06 13:16:17 +02:00
2023-05-24 08:42:17 -06:00
2023-05-24 08:42:17 -06:00
2023-06-27 17:10:27 -07:00
2023-05-24 08:42:17 -06:00
2023-06-23 16:59:32 -07:00
2023-09-23 11:14:17 +02:00
2022-10-12 11:00:22 -07:00
2023-09-19 12:30:22 +02:00
2023-06-26 11:52:12 -07:00
2023-11-28 17:14:47 +00:00
2023-09-19 12:30:09 +02:00
2023-09-13 09:53:33 +02:00
2023-05-24 08:42:17 -06:00
2023-10-06 13:15:45 +02:00
2023-10-25 12:16:26 +02:00
2023-04-13 13:13:52 -07:00
2023-11-20 11:56:43 +01:00
2023-10-06 13:16:21 +02:00
2023-07-25 00:30:02 -05:00
2023-10-25 12:16:23 +02:00
2023-08-06 15:08:35 +02:00
2023-11-08 14:08:59 +01:00
2023-09-13 09:53:08 +02:00
2023-05-24 08:42:17 -06:00
2023-05-24 08:42:16 -06:00
2023-10-25 12:16:17 +02:00
2023-10-06 13:15:59 +02:00
2023-11-20 11:56:44 +01:00
2023-03-14 12:56:30 -06:00
2023-03-14 12:56:30 -06:00
2023-10-19 23:10:56 +02:00
2023-06-28 10:28:11 -07:00
2023-09-13 09:52:57 +02:00
2023-05-24 08:42:17 -06:00
2023-11-02 09:36:45 +01:00
2023-07-08 09:29:30 -07:00
2023-06-15 13:37:53 +02:00
2023-06-26 11:52:12 -07:00
2023-09-23 11:14:37 +02:00
2023-05-24 08:42:17 -06:00
2023-06-29 13:39:51 -07:00
2023-05-24 08:42:17 -06:00
2023-04-13 13:13:54 -07:00
2023-08-08 14:59:49 -07:00
2023-09-13 09:53:55 +02:00
2023-07-17 08:48:56 -07:00
2023-08-10 12:59:47 +09:00
2023-06-15 09:22:23 +02:00
2023-09-23 11:14:34 +02:00
2023-01-19 09:24:28 +01:00
2023-10-06 13:16:29 +02:00
2023-06-28 20:35:21 -07:00
2022-12-02 13:57:04 -08:00
2023-06-29 13:39:51 -07:00
2023-05-15 09:42:01 +02:00
2023-06-26 09:50:21 -07:00
2023-05-17 09:16:59 +02:00
2023-06-26 07:54:23 -06:00
2022-10-10 19:45:17 -07:00
2023-06-28 10:28:11 -07:00
2023-09-13 09:52:58 +02:00
2023-06-26 09:50:21 -07:00
2023-06-29 13:31:44 -07:00
2023-02-20 11:53:11 -08:00
2023-06-12 10:43:45 +02:00
2023-07-02 13:15:49 +02:00
2023-10-19 23:11:08 +02:00
2023-10-19 23:11:08 +02:00
2022-12-01 10:46:54 -05:00
2023-11-20 11:56:43 +01:00
2023-01-19 09:24:28 +01:00
2023-08-12 09:18:47 -07:00
2023-06-26 10:14:36 -07:00
2023-10-19 23:11:08 +02:00
2023-05-24 16:29:21 -05:00
2022-10-10 14:21:11 -07:00
2023-10-19 23:11:08 +02:00
2023-10-06 13:16:01 +02:00
2023-09-23 11:14:17 +02:00
2023-06-26 12:47:20 -07:00
2022-12-08 21:49:25 -05:00
2023-01-19 09:24:30 +01:00
2023-04-18 16:30:02 -07:00
2023-10-25 12:16:11 +02:00
2023-06-26 10:27:04 -07:00
2023-04-20 22:55:35 -04:00
2023-10-19 23:11:08 +02:00
2023-05-12 17:17:27 +02:00
2023-05-19 04:30:22 +02:00
2023-05-19 04:30:22 +02:00
2023-03-06 09:59:20 +01:00
2023-05-24 08:42:16 -06:00
2023-05-24 08:42:17 -06:00
2023-08-06 15:08:35 +02:00
2023-05-24 11:03:59 +02:00
2022-11-25 13:01:55 -05:00
2023-09-13 09:52:58 +02:00
2023-02-20 11:53:11 -08:00
2023-05-17 15:20:17 +02:00
2023-06-29 13:39:51 -07:00
2023-05-23 21:43:26 -07:00
2023-06-23 16:58:19 -07:00
2023-02-20 11:53:11 -08:00
2023-05-17 15:25:20 +02:00