Received: by 10.192.165.148 with SMTP id m20csp1478704imm; Sat, 5 May 2018 13:08:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpF4cEM2YVgEyF21trJzp2c16otHmX9Ftk7nEw6+ZLrhT3JrU62OV1fpmX/NNvCwQgbxY4y X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr32019526pli.137.1525550929260; Sat, 05 May 2018 13:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525550929; cv=none; d=google.com; s=arc-20160816; b=XWGo2yvXvCCLaJei7HU1cxpX3p9YR9WDZXkUlG0pioaAKxif3KLbacSJ1hRW0v3WwJ toLe2Vo3JI7YewpWHGAvIbKo3Q6XrwgZZMlA2UEt8wAXNrHpnqQBQ3nFSpOT5JMqBKYW ZT+VbuhGWF9L6IbKpi3oMlj2Dgv2bBu8RwwY2lNBLQ+UldaS72TuREv3vT5oA16qxDVr 73jSiAzzbiAuEyQwC1dhdKz0My2NYXIPc5ttTojAMfepOI5NeZhGto5kAqXFuFqDyiyi f5K8h36qwR1jS/IC1DJAc6ZWx0/1bpTAIWS17hwVQoXhObV1Lr/Hcjnlewj4e3+br0cH uCUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=KlL91Q1Oc9hWSmadbf50aKzmW0G+sVPOhq7MyszcNl8=; b=kToVR2BjMrJo4SWgHwd1LlD/2Fqm4seScvf5IhfzwxlOtowr1nj/PNxUmf/TnRPysk Px+Rh2VVuPRdPPOLQ0k1xkMUhgM1We4GhSw8ip+Ctu2isawY9zCqbXEIZxilqxrHyNyp ok8sqnWJkURELbPLgPFyTUOSBiIJncmOJz6TAtJlV1ICWfgDZJaROltqLi0pwR/JtFp9 ch0psYawkJ2I8KEtIZGoEdA0COF1wHoE7cyts7fxp3gpEJbXCURsXyQkbd3+wAtr+ibS UqykVSxfZsYrcMv1KTPBLHHn/Ck+9bi6XgmeAoKAoBhaYvMWqA1Zzmtd9jGB1NUOlX0B iN8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ki7Gsc4q; 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 c5-v6si18572682pll.449.2018.05.05.13.08.34; Sat, 05 May 2018 13:08:49 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ki7Gsc4q; 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 S1751826AbeEEUHL (ORCPT + 99 others); Sat, 5 May 2018 16:07:11 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35103 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751230AbeEEUHK (ORCPT ); Sat, 5 May 2018 16:07:10 -0400 Received: by mail-wm0-f67.google.com with SMTP id o78-v6so10050190wmg.0 for ; Sat, 05 May 2018 13:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KlL91Q1Oc9hWSmadbf50aKzmW0G+sVPOhq7MyszcNl8=; b=Ki7Gsc4qY60hFDhz9CtUCpdY2ppXrUO7ynq9QID3FxENabS/jb2OdXrUVvKDlN4Un/ mabWFJWQAjhAQGjO+RMqX5VublHAtcLREhfYqqoGXG5AEMkYJqBJ2s8XyWU9XYo+7BQR xYvI5Cu25GwOJYN8Dkt6Ob4+u74vN+BemIUIo5OP5lTLlJ6k4lWqM3Vv4jdUR4DLfkxd NmhQocQiR1D2Rxf+kF7TB6CQ+LVyGl67zlFL5NGQKYWaPCD+kH8yABfZ/rcqjxb7reD8 okMU14M/P/T5onaQ17LrRxxTAaScfuj6diWRtT/aCafUulBSQeNaUk7PZ0IGp59BgjFA PWGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=KlL91Q1Oc9hWSmadbf50aKzmW0G+sVPOhq7MyszcNl8=; b=bfEwJVXJngwJRYF7CMwKIyn3UNthvYkjDxVHNe1JkbwGZFGOCDiiGhiEXwb5b7zzpi OYo4bnLsstM6fqQkoC89QGYTWQE/EWilCVDvEct5e0wSNK0UaCZvsam+RFWcvtxPj/K/ 8MTqrt/G0ANZiWidmuQmk1acgauRJsk5Wq5X0sy9YklZ9IuatvGqjWD8ACJO8/HnE15d sZvHTyhasMWDt9endZ4KNxMWA1wOonIpot4wn+bNKnSM/RRE4T33YPK0SqcIgTLXe8To VB0tUhrSu+4xe9qZWeaaiX6izAbfnTgzAR4wYPtQoHBYSrAnjOUbIQukcw7Y+fc30jr8 jDIw== X-Gm-Message-State: ALKqPwdtDrAFU7sH1P10fRp49L4ndvs/ESeO++nkoe8T0tsqiGNqYo1p wB1GROTu0GbE7OotZsZ6zVU= X-Received: by 10.28.209.194 with SMTP id i185mr2143805wmg.10.1525550828929; Sat, 05 May 2018 13:07:08 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id f83-v6sm6440832wmh.32.2018.05.05.13.07.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 May 2018 13:07:08 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 60EA210C0604; Sat, 5 May 2018 22:07:07 +0200 (CEST) From: Mathieu Malaterre To: Christoph Lameter Cc: Mathieu Malaterre , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] =?UTF-8?q?slub:=20add=20=5F=5Fprintf=20verification=20to?= =?UTF-8?q?=20=E2=80=98slab=5Ferr=E2=80=99:?= Date: Sat, 5 May 2018 22:07:05 +0200 Message-Id: <20180505200706.19986-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __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] Signed-off-by: Mathieu Malaterre --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slub.c b/mm/slub.c index 44aa7847324a..7d38cfb6a619 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -711,7 +711,7 @@ void object_err(struct kmem_cache *s, struct page *page, 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; -- 2.11.0