Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4341241imu; Tue, 18 Dec 2018 13:06:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/XAkx7ucDWuh8dwhfYNsPpREVmxDJLDocJYs5CCusgzppdKE5wPPIeU3V4Ki6Qp5QX3a+q7 X-Received: by 2002:a63:b81a:: with SMTP id p26mr17448770pge.433.1545167197273; Tue, 18 Dec 2018 13:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545167197; cv=none; d=google.com; s=arc-20160816; b=hNM91dwgC6EqCYHfm9CDbp8CaJcab4OgDIzByyZXCrp6uQVdXxwMHCTy95dB4rcgQG e9mQaeQfjLDEn/so0j2zC+ThNopADYKmMNvKlv5SBLjeyqfaPrrUVJv2iOjrZ2qcSYGq rwBRy0EwU3uwRMpi9vXejO+O6LYJQnHA+fOC/uFy0aOOhOAbupR+gCKM1bbD+6BQT2NB w9UUfow9W+zfQf5W7i2LKs+jfFmsuxbPBoOEobdLRKWM0jq+MqiCCXe/sE85c4r7pKBe o6GlpyM5cQuTKkhvNFhlCupQn6Gxmswr3DDGDXQP94s8BrgVFTvwDvOZfCD6hxsG1heo 6FxA== 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; bh=tOi0WSQxEvc0Rs6AL8W3qRpEySU4z9T/xkS/tyIoq4E=; b=JK5gRJgRS/q7co60Z7DN6oRklErern2UDDt3+NB229MwzwZ7+ApdItseexwW+wt63w 18jqQZOD+MgfQaW1VxjPr4m7a2HlnMhDBX5EUEAbCzpVK2bsZQFaZx9LrA4/F2EQS/d+ +5hk7g/qQQgHuFohZ6MmAZzmZO54XBFPNzK5LfiG5deMRSoskb+frli8ennO1JnpOMqx rFzxgFkZhtIyhCAgBqgQJDqL5zZnQkdcFpWVC6I7qX2h1oQe/1V3Bt83AfnMjsBQSMRP AjCQ/Lc8lSbsNDL+TbvE6AFFkP78KsutjSETFFw3ZIyZKrP0AYuA1q7ksKYJ2aHsFT/Y P6Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=dzIJ9lSQ; 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 b2si14702022pgh.475.2018.12.18.13.06.21; Tue, 18 Dec 2018 13:06:37 -0800 (PST) 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=dzIJ9lSQ; 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 S1727231AbeLRUzr (ORCPT + 99 others); Tue, 18 Dec 2018 15:55:47 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37457 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbeLRUzr (ORCPT ); Tue, 18 Dec 2018 15:55:47 -0500 Received: by mail-wm1-f66.google.com with SMTP id g67so4195323wmd.2 for ; Tue, 18 Dec 2018 12:55:46 -0800 (PST) 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=tOi0WSQxEvc0Rs6AL8W3qRpEySU4z9T/xkS/tyIoq4E=; b=dzIJ9lSQKAzcFaRuPKc/KxO1XskoBFjWSsdmf6udXt8vC6qBzXVQvMi7mYYFOa/6WA 1YYoHO9bQcHtUCDOG7+BgtM5mZG0K9G9DjhTWtZcMye3R5TANT9Yo/7SdLTj0c/KeQvp mFfDoi+mL8q7DZMtR0jnkN8pceftYqro1pUKOjCEgswX88SPbwwsqZAX6vy95nC/Ag16 at/NWkueCUI8nEjJYXIIlKK+0udVYB9PgNooNta43/AOBHTX0iDqxY67R3cg9oMCY/rZ WysCWeqq+gkRMyXXuCwz+GTiZyTXhplKUDncKtOVN2/0O+O8D+Ol8px+PRFPbbuODh8F Hspg== 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=tOi0WSQxEvc0Rs6AL8W3qRpEySU4z9T/xkS/tyIoq4E=; b=otP6gEgdKyk5ClJH6YoYkPh+UVrrnLwOGZgniy467xe16VcGudfZCtTFd2gvhN6NKk PdLx/stJfMttTtvUjvU6SmO/WVpt/0n4xvDwqCfbj4OOrshJsGOa2Bjrm87iIDZ+FA2A Lqu3BJ7o6+tqlgCAT9ZI2eUDfUHM/6xUhSERyf/SbNAa/0wqPrxt7Axh/ZrwBMvUL8dz ZY9nUHPqMylwdr3d69TCU1SefqviZmGuGxioXLXAtUlWWd/TI6WR26+QfO1A510/Of1B kMwdaFsRoNuwI+cy9E4q7D54TH8mGEeWNqz0xWsSyWiYZme8TZ9y4iGh7kHkz8OT8o6r st4g== X-Gm-Message-State: AA+aEWbw4ZpTZCtZ1fIfXfo4IygvITHS8kq6cTFMcsUw/GZh/tEfZr8h PWgzWZzH6ebsQd7RB7M7xU28ZzUU X-Received: by 2002:a1c:709:: with SMTP id 9mr4593373wmh.39.1545166545485; Tue, 18 Dec 2018 12:55:45 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id h13sm5572416wrp.61.2018.12.18.12.55.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 12:55:44 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 2CE59114106E; Tue, 18 Dec 2018 21:55:43 +0100 (CET) From: Mathieu Malaterre To: Russell King Cc: Mathieu Malaterre , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: Use __printf markup to silence compiler Date: Tue, 18 Dec 2018 21:55:41 +0100 Message-Id: <20181218205541.26783-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 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 Silence warnings (triggered at W=1) by adding relevant __printf attributes. drivers/clk/clkdev.c:267:3: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] drivers/clk/clkdev.c:280:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] drivers/clk/clkdev.c:398:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Signed-off-by: Mathieu Malaterre --- drivers/clk/clkdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index 9ab3db8b3988..2fb03595dc26 100644 --- a/drivers/clk/clkdev.c +++ b/drivers/clk/clkdev.c @@ -247,7 +247,7 @@ struct clk_lookup_alloc { char con_id[MAX_CON_ID]; }; -static struct clk_lookup * __ref +__printf(3, 0) static struct clk_lookup * __ref vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, va_list ap) { @@ -271,7 +271,7 @@ vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, return &cla->cl; } -static struct clk_lookup * +__printf(3, 0) static struct clk_lookup * vclkdev_create(struct clk_hw *hw, const char *con_id, const char *dev_fmt, va_list ap) { @@ -387,6 +387,7 @@ void clkdev_drop(struct clk_lookup *cl) } EXPORT_SYMBOL(clkdev_drop); +__printf(3, 4) static struct clk_lookup *__clk_register_clkdev(struct clk_hw *hw, const char *con_id, const char *dev_id, ...) -- 2.19.2