Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1161798imm; Wed, 1 Aug 2018 11:12:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/LX/o0gPvAkp7PHNmp9JzgjgX6+XHj8MBS1H3APrhxeBG9PmEMpyvULLonUmGcXbvAxCk X-Received: by 2002:a62:9bc5:: with SMTP id e66-v6mr27681799pfk.84.1533147131181; Wed, 01 Aug 2018 11:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533147131; cv=none; d=google.com; s=arc-20160816; b=o6+C3djgaHLxHn9sYRGC8m+6Ca1FDkReQBj9PPlJVomP+cZNOJgkdxakRJvS09Pl7T 5WtDIVUkboJiKvOZbFjTtk7sDjkqGEekHLduw7z6dAEOyfnQg3lSwGJi4jRwxvm3Ia4E EQCzaEDvrZ7sI6taKcgRcuJbvVKAaGikEPrLqK04T9FXfzvbLsYpvbNNtnHIpJHuBfvj QM+2pQlCRUlEmRAHM2rKhVze+NAGAhToa0IrqiAFGhO6PfJ04lontgqZvkLgQNiyuBLb GkJDmqY0CCqd/S/jaQo9QGsMUXMgeyao1RUtZjN54A351MjbCWzGNDuQrEomqccFUGVh dmqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bGg5kVyLwcCEuDYcLm4E+f0aO07TlxBOOOPL/qxWMEI=; b=lQbN0TgkJqY1khialSBVxQBoABM4Hr51htFZ/yORnV0UhK2NWsoa6nxDgQrXghu7AB pxdzuCfOFoDCMbp3QqTJCW11KX7IhEcuZ9IPC3S56eQ7DHHlqh9BdrQqxQ29e/Ldwcy/ svigfOUxQM21PzF/z0tWtjEucT9XhSdTITZbRzgszwh7KT4ZqY0x6DkWGbGZcCBuQjbX YQQ+ut3RF5kSHLNYO5IJTlKN+we0+PYzLKeUKGfNxI5nvogfKJ9YluW0pR7fu3VTOJ9F NB3+fMMzoVS+fuN8wt8J1GL3wVPgAY+UUzXIbBVHPWNQEU30YRdZreCd54mITvmveLCi C7vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18-v6si16444386plm.122.2018.08.01.11.11.56; Wed, 01 Aug 2018 11:12:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732295AbeHAT6G (ORCPT + 99 others); Wed, 1 Aug 2018 15:58:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50152 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405707AbeHATIf (ORCPT ); Wed, 1 Aug 2018 15:08:35 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3ACB5135A; Wed, 1 Aug 2018 17:13:10 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathieu Malaterre , Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Linus Torvalds , Sasha Levin Subject: [PATCH 4.14 034/246] mm/slub.c: add __printf verification to slab_err() Date: Wed, 1 Aug 2018 18:49:04 +0200 Message-Id: <20180801165013.314124724@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mathieu Malaterre [ Upstream commit a38965bf941b7c2af50de09c96bc5f03e136caef ] __printf is useful to verify format and arguments. Remove the following warning (with W=1): mm/slub.c:721:2: warning: function might be possible candidate for `gnu_printf' format attribute [-Wsuggest-attribute=format] Link: http://lkml.kernel.org/r/20180505200706.19986-1-malat@debian.org Signed-off-by: Mathieu Malaterre Reviewed-by: Andrew Morton Cc: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/slub.c +++ b/mm/slub.c @@ -708,7 +708,7 @@ void object_err(struct kmem_cache *s, st print_trailer(s, page, object); } -static void slab_err(struct kmem_cache *s, struct page *page, +static __printf(3, 4) void slab_err(struct kmem_cache *s, struct page *page, const char *fmt, ...) { va_list args;