mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] initify_plugin: one more warning workaround
@ 2017-03-29 21:14 Arnd Bergmann
  2017-03-31 10:33 ` kbuild test robot
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2017-03-29 21:14 UTC (permalink / raw)
  To: Emese Revfy, Kees Cook
  Cc: Arnd Bergmann, Andrew Morton, Andy Shevchenko, Matt Fleming,
	linux-kernel

lib/vsprintf.c: In function 'bstr_printf':
lib/vsprintf.c:2409:5: error: 'bstr_printf' captures its 3 ('fmt') parameter, please remove it from the nocapture attribute. [-Werror]
 int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)

Cc: Kees Cook <keescook@chromium.org>
Cc: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 lib/vsprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 21dbdf05dfdf..8e4725341e93 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -2406,7 +2406,7 @@ EXPORT_SYMBOL_GPL(vbin_printf);
  * return is greater than or equal to @size, the resulting
  * string is truncated.
  */
-int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
+__unverified_nocapture(3) int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
 {
 	struct printf_spec spec = {0};
 	char *str, *end;
-- 
2.9.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-31 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 21:14 [PATCH] initify_plugin: one more warning workaround Arnd Bergmann
2017-03-31 10:33 ` kbuild test robot
2017-03-31 11:20   ` Arnd Bergmann
2017-03-31 11:29     ` [kbuild-all] " Fengguang Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®