[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170329211434.2655137-1-arnd@arndb.de>
Date: Wed, 29 Mar 2017 23:14:07 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Emese Revfy <re.emese@...il.com>, Kees Cook <keescook@...omium.org>
Cc: Arnd Bergmann <arnd@...db.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Matt Fleming <matt@...eblueprint.co.uk>,
linux-kernel@...r.kernel.org
Subject: [PATCH] initify_plugin: one more warning workaround
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@...omium.org>
Cc: Emese Revfy <re.emese@...il.com>
Signed-off-by: Arnd Bergmann <arnd@...db.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
Powered by blists - more mailing lists