Message ID | 20180505200706.19986-1-malat@debian.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CE40E60159 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 5 May 2018 20:07:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC02028B21 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 5 May 2018 20:07:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B054529036; Sat, 5 May 2018 20:07:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B21F2902E for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 5 May 2018 20:07:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8AC366B0010; Sat, 5 May 2018 16:07:12 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 85B826B0266; Sat, 5 May 2018 16:07:12 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 725596B0269; Sat, 5 May 2018 16:07:12 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by kanga.kvack.org (Postfix) with ESMTP id 195456B0010 for <linux-mm@kvack.org>; Sat, 5 May 2018 16:07:12 -0400 (EDT) Received: by mail-wr0-f198.google.com with SMTP id d4-v6so16733538wrn.15 for <linux-mm@kvack.org>; Sat, 05 May 2018 13:07:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:sender:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=KlL91Q1Oc9hWSmadbf50aKzmW0G+sVPOhq7MyszcNl8=; b=chnPalrxSGxk5CWs0OjPiXYGBXiJ1EJAU6qi+Nb6fyRqD93Y/6cSde4gsODkxVUPTK fwIBS3aNZoiZGQEhkLNKd8rgMCoCuqnVofO4tz3CFX9g6xpTnwhf/WNGeZTr3YA4AR26 CsZwgRlmfIHotThHE3o0nelg7nJLssVKdIceMZopQsOX5itqkT7C43pPtz05+Nsn9FZ3 q+g7Z+tzc6j4E1REK1mqxA84mkiHUWWfjC/bm1k1wxr2vhFgpkgvtHZNRZVlHNmAtLW4 pYWLOWEFyg17EJOpP9cZIJALnNU4k0EJsNaGHn7b6ZWm6yinoAmGE1pAbZMQsI/AxkQ7 PmXQ== X-Gm-Message-State: ALQs6tA01fQm/oG5saRH37D307KQUQPIfBh9lVekm0DIcQL8JMhFc4f7 LyY3kJoq1OekVAfYsfVXQtwxXkbsdI2RzWR+gu489y240NlLU84INromX3InygDNt5NDzTgVuOZ Q5Pph78eo3Bc7tCa9xrVcuKhx3z8lKGmqjYLhdn1EZVCMCyMP0wFY7vf0Rlh1t0zdxzb2TaO2Em C8fiYFMdBmND3h1jzP3l2vhsengp/UTyBbZFgShYE8aj/ntqPKucFJlkAjpnIwv2Wsx08EKSw8z 6/baC18cKlnMJqYHE3jo0XLY+ij/9ikeF048y/dGjxLAcDXdp8wO6U6ecBMP5C91gkntdHFVeZM VXJxUpiNwITBVNJ+39PzuWyaO1kNzXM5UqdnTk37YIKZeTBs6a/iBdxIL9dJ5BQ/ZrTVfZQ4ww= = X-Received: by 2002:adf:9bcd:: with SMTP id e13-v6mr27260104wrc.240.1525550831440; Sat, 05 May 2018 13:07:11 -0700 (PDT) X-Received: by 2002:adf:9bcd:: with SMTP id e13-v6mr27260052wrc.240.1525550829431; Sat, 05 May 2018 13:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525550829; cv=none; d=google.com; s=arc-20160816; b=j/+9Z+GKy3mgfpyL47xb6IHj21PBBvPtdQUbvsgbpd9JVODlSDUyGxLfAm+LZasZFi UuN/usGOQy00v/pGKc7u6NfyjZPD/WGcSv5bXCTT/lAJnxCL2/Ujrn7Gg76wjMde8Z3a YhIT5UgRIrPx1V59BPr4ne0RvETqR2lGx2UcubuQwL6psI3Z5z9kQWjwouJ1xVrBvDiZ SIAZ8/DsXrMYMS8DSrmQGHbwnkeCRR7cMB516c+K8C4VY75Tt9dgL98YKPSGgAa6uSyh XWtx+FN8vF/diIyzGbKR4eLUMxMDu/HzOgo9ODdI1u6p1/BjbHYAocQ1XHutvnVVHycs i+pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:dkim-signature:arc-authentication-results; bh=KlL91Q1Oc9hWSmadbf50aKzmW0G+sVPOhq7MyszcNl8=; b=ZMzQd0w2ZLW7yOVpYhlpIHli/S5xXJZpueFzCHOGee5YPr5Advji+iXcznPjUnBC+E LL5IqtzYj/EyRLd1YnyIKuUMfVUYnxCczc0F9H7i0KpL9vIKUO1Gu7AoS9xEtdwxSagS pUZRagGaBtL8D96KoGi2dGuvYBUTJz/qv/2v9rso72wQOz4UmCc8d8N6kD2tH5nwBxjd Ka5dT0Ei1tXRdm6kMkT1U2R8GuUTqIEpAyzdUfaZ1Ke3fWFVV7KCAyeoj6XITSAxjCB6 Z58mXMR4sWgw8AUkEznRmCejW86PIraPys2W37Uq8zucvdun+FKQ7F2F49LeDVOO24hy iFUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ki7Gsc4q; spf=pass (google.com: domain of mathieu.malaterre@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mathieu.malaterre@gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id b18-v6sor1051327wme.90.2018.05.05.13.07.09 for <linux-mm@kvack.org> (Google Transport Security); Sat, 05 May 2018 13:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of mathieu.malaterre@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ki7Gsc4q; spf=pass (google.com: domain of mathieu.malaterre@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=mathieu.malaterre@gmail.com 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-Smtp-Source: AB8JxZoyLrBm0tHDGTzDU7T0EFOfYPkOWlMxCqurxSnjigsBzHtlT3YI2va74UHsV2AGqjMscOgmcw== 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 <malat@debian.org> To: Christoph Lameter <cl@linux.com> Cc: Mathieu Malaterre <malat@debian.org>, Pekka Enberg <penberg@kernel.org>, David Rientjes <rientjes@google.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Andrew Morton <akpm@linux-foundation.org>, 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
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;
__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 <malat@debian.org> --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)