Received: by 10.192.165.148 with SMTP id m20csp1471816imm; Sat, 5 May 2018 12:58:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoWg10BG3XyqMbc7ZZJ0zpF06zL9aEQojsZzhogCurX35QKp4lxHBNX/pTL4t+9oSzdn5+K X-Received: by 2002:a17:902:d681:: with SMTP id v1-v6mr32267614ply.16.1525550308553; Sat, 05 May 2018 12:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525550308; cv=none; d=google.com; s=arc-20160816; b=XpSdfHmqdPQrw7fdoRV669vKyL8tuHMkY2XZ2FaHGz9SXYdM1aybCfCRBPRAjv92pu GnJVEM9XlgL3x4R6NntKNhpIWbAJBZBBQuDt7iaBJ1GXwOK2ntmAvh/e38i3XeR+IDG1 xHP/HY+11tgIs8untxlmTvnp8X5E3ooaM23mB5fmCPAr5LbH2yXNc0Jy/4jJIYbeB0/n DlNaseZnE976qBrAzidumo2UXReupYz3LerpzlJ5Abvud467sZL4Dnr3HIWaXAfBfFVw tLpbHm+RjQBDE3WENX/Bb3EAjcOTtXNx7uPkAW48hl3l2m74ynBbjdZ1O1T3uuOa6JU8 GzeQ== 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=ndilg4LX07DATdZlPDKt1QqgPkFBxofIMjkIPfmfX94=; b=lrv/i8Lc/UlXmL+w8EdrHGG8S+OSHeMx05HdK5XO2NDhO7/jcs/PDa5StCXgrPCaBB wr+k1xfvGSyNlvh/D06omfKBjTCAgGya66Dpon5ghYV/h6VJxlZzJBwF1zQdQf3gU6Xz dDEaeOmt2JmVcLgk23NfWarpxPiAmfhbonog5z2u9ksH6DCf8Rt4Prf9jQT/HY+kPjeT BySI3aiDicyoVp1P4ybyDbj381yW40uQxfqkqC7BpVVrno4vpb2ssGBqPQAJLpgjS6kf rTmUF6ebDbQeSkZkHCglG0rOjXImld3i1JQmG4jwdnOktRogFRO9uV7dRYoTmDGBs9Wh oLnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mTaWBPZp; 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 q3si19608565pfg.298.2018.05.05.12.58.14; Sat, 05 May 2018 12:58:28 -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=mTaWBPZp; 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 S1751825AbeEET5y (ORCPT + 99 others); Sat, 5 May 2018 15:57:54 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:41198 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbeEET5v (ORCPT ); Sat, 5 May 2018 15:57:51 -0400 Received: by mail-wr0-f195.google.com with SMTP id g21-v6so24166210wrb.8 for ; Sat, 05 May 2018 12:57:51 -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=ndilg4LX07DATdZlPDKt1QqgPkFBxofIMjkIPfmfX94=; b=mTaWBPZpKTvKEmt+VkwBoyj+pN72ZjV598FGDFd/SFkGQf85729+mNcDn/ZCiaVgLG 9IUluRl52790WO9/b3wF9pZFopMfVXSd1txg6c+7oHhNwMpCMDfuPv2AQs8NgSWjQXI6 JUwpNZFsqec6MyAbN36xa1bpc4FPqLhgRVaASeiLJ95s9Oetii7oHpO1rpnhNMLIuHyI InwJuypPhnydnI5IYouYf2DpRHyKAGIvRxDjKF0ZDnahxH5hJGE18zeImDgwa2cJDrPh /wVT1paz4ulO/iPZ6zgT8PRoeic9Q7y1FTv86U4rfF46QxK1Itl4k3r9F4EJmYQgnPJY 9G6A== 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=ndilg4LX07DATdZlPDKt1QqgPkFBxofIMjkIPfmfX94=; b=UNKABGR++5gi7BFN8qXjVfQva4dgGQva14Eir1n7j3beA5wEUs6SVJ9iUioz4oQ3Hy lI1GNbJkn2rOwyg5o2Ibg1ohhZnduns8ALNNB/SQgYWKdFLWmnQuwh4P23m/dHXKoiXT +4/nfuKIcw0AVXtLJ9ulVw5dxr9uIyKShjQRHBUAspo567xut7iefVi26RCtTNBgMv6A HaNV88sYMJ8Pm9HOWNzUfFdWgAguBh9SVTscJOyI4Tth1fGg/vC1CccidWxOX4WQb0/r 5OOldbeO7AxhGSVhu45HyY4FXraMk5eqxuUbRYmseMGIcJs0Xd00bz/OULAWX06af82L aV7w== X-Gm-Message-State: ALQs6tBKjam3fhZ2A9gmW+aJlFCR9lKlI6totYLdK3moate5dkn67pF4 j3Wlw0w9koC++jz7alegIIU= X-Received: by 2002:adf:c4a6:: with SMTP id m35-v6mr25161802wrf.103.1525550270321; Sat, 05 May 2018 12:57:50 -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 p17sm3789730wmc.17.2018.05.05.12.57.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 May 2018 12:57:49 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 6A5AE10C0604; Sat, 5 May 2018 21:57:48 +0200 (CEST) From: Mathieu Malaterre To: Greg Kroah-Hartman Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org Subject: [PATCH] driver core: add __printf verification to device_create_groups_vargs Date: Sat, 5 May 2018 21:57:41 +0200 Message-Id: <20180505195741.16617-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): drivers/base/core.c:2435:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Signed-off-by: Mathieu Malaterre --- drivers/base/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index b610816eb887..357e774ba13b 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -2406,7 +2406,7 @@ static void device_create_release(struct device *dev) kfree(dev); } -static struct device * +static __printf(6, 0) struct device * device_create_groups_vargs(struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, -- 2.11.0