Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934169AbcLTJhB (ORCPT ); Tue, 20 Dec 2016 04:37:01 -0500 Received: from terminus.zytor.com ([198.137.202.10]:41752 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933969AbcLTJg6 (ORCPT ); Tue, 20 Dec 2016 04:36:58 -0500 Date: Tue, 20 Dec 2016 01:36:12 -0800 From: tip-bot for Nicolas Iooss Message-ID: Cc: tglx@linutronix.de, nicolas.iooss_linux@m4x.org, mingo@kernel.org, peterz@infradead.org, hpa@zytor.com, linux-kernel@vger.kernel.org, pure.logic@nexus-software.ie, torvalds@linux-foundation.org Reply-To: pure.logic@nexus-software.ie, torvalds@linux-foundation.org, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, tglx@linutronix.de, nicolas.iooss_linux@m4x.org In-Reply-To: <20161219132144.4108-1-nicolas.iooss_linux@m4x.org> References: <20161219132144.4108-1-nicolas.iooss_linux@m4x.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/platform/intel/quark: Add printf attribute to imr_self_test_result() Git-Commit-ID: 9120cf4fd9ae77245ce9137869bcbd16575cc633 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1702 Lines: 43 Commit-ID: 9120cf4fd9ae77245ce9137869bcbd16575cc633 Gitweb: http://git.kernel.org/tip/9120cf4fd9ae77245ce9137869bcbd16575cc633 Author: Nicolas Iooss AuthorDate: Mon, 19 Dec 2016 14:21:44 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 09:37:24 +0100 x86/platform/intel/quark: Add printf attribute to imr_self_test_result() __printf() attributes help detecting issues in printf() format strings at compile time. Even though imr_selftest.c is only compiled with CONFIG_DEBUG_IMR_SELFTEST=y, GCC complains about a missing format attribute when compiling allmodconfig with -Wmissing-format-attribute. Silence this warning by adding the attribute. Signed-off-by: Nicolas Iooss Acked-by: Bryan O'Donoghue Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20161219132144.4108-1-nicolas.iooss_linux@m4x.org Signed-off-by: Ingo Molnar --- arch/x86/platform/intel-quark/imr_selftest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/platform/intel-quark/imr_selftest.c b/arch/x86/platform/intel-quark/imr_selftest.c index f5bad40..b8f5620 100644 --- a/arch/x86/platform/intel-quark/imr_selftest.c +++ b/arch/x86/platform/intel-quark/imr_selftest.c @@ -25,7 +25,8 @@ * @fmt: format string. * ... variadic argument list. */ -static void __init imr_self_test_result(int res, const char *fmt, ...) +static __printf(2, 3) +void __init imr_self_test_result(int res, const char *fmt, ...) { va_list vlist;