From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdKLVU1 (ORCPT ); Sun, 12 Nov 2017 16:20:27 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:48847 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbdKLVTo (ORCPT ); Sun, 12 Nov 2017 16:19:44 -0500 X-Google-Smtp-Source: AGs4zMYMTjgRCCOHU8A+1DXmEwQ3fB7OjIhnYzPlSv+klzRA/KuYuB3oZAdJ4RiuKwNXNjk1Zdt0yw== From: Rasmus Villemoes To: Kees Cook , Thomas Gleixner , Greg Kroah-Hartman Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [PATCH 4/5] linux/smpboot.h: Apply format_template attribute Date: Sun, 12 Nov 2017 22:19:10 +0100 Message-Id: <20171112211911.27779-4-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171112211911.27779-1-linux@rasmusvillemoes.dk> References: <20171112211911.27779-1-linux@rasmusvillemoes.dk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This serves as human-readable documentation as well as allowing the format_template plugin to complain about any static initializers of this struct member that do not have the same set of printf specifiers. Signed-off-by: Rasmus Villemoes --- include/linux/smpboot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/smpboot.h b/include/linux/smpboot.h index c174844cf663..967285b9637d 100644 --- a/include/linux/smpboot.h +++ b/include/linux/smpboot.h @@ -42,7 +42,7 @@ struct smp_hotplug_thread { void (*unpark)(unsigned int cpu); cpumask_var_t cpumask; bool selfparking; - const char *thread_comm; + const char *thread_comm __format_template("foobar/%u"); }; int smpboot_register_percpu_thread_cpumask(struct smp_hotplug_thread *plug_thread, -- 2.11.0