From patchwork Tue Dec 18 20:55:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10736293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 52C2813BF for ; Tue, 18 Dec 2018 20:56:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40EB729213 for ; Tue, 18 Dec 2018 20:56:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3501B2ACDA; Tue, 18 Dec 2018 20:56:02 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D4F6D29213 for ; Tue, 18 Dec 2018 20:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tkcU36Fs3TT8O80BIATlDzk6ST8YHXYxrCakVNlG9pE=; b=W56Ln6TvLDunfw dQEyrYrnN5LSKcDQ62B9vSIYNEFD/Rz2qgUkc2TjwtgOBZdDzf6pTIuHKIyrr8s9Oqb+u92rZoPCU /LQJnuJpBtBjojCEm746mwH1jMtInUGw1Uq+qZ9mdUjo0Ce5j86Y+HvdZSvNh1Two5pu/IPUZtX7p 5PVsWm2D4Gl1UVCrRqqz6TAZ9CzXHs979Gnf2z0L4uvjn7J3MKFiYtf62R3a0FQJp9+RW6HSk25hM 1TYG6jZrkMU0lrPnBuxAOAK5YS07shVfAV/PyFwla4zl/PTjzUvUglBYp+IU0dsdg7KtzPwMmbOp7 9oVHot0SRAoqteu9b7uQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZMPI-0006Jh-Dc; Tue, 18 Dec 2018 20:56:00 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZMPF-0006IL-JL for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 20:55:58 +0000 Received: by mail-wm1-x344.google.com with SMTP id y139so3975563wmc.5 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=KW9WfQ6GUkgLGpe7tTjOyZ1vbRgqkANXqpiyk56v8oa3XD+a4pIgE5Uln4idXP2x2V cmh27qLxxgOtOwUC+1M3MKuCT9RuypNT/+epfz4yvfPZLRNO+WKL9MWSm2aJ3oq+oVVY 5mGUFqM6tKfdByAOnr/y2r4YuyRFa7442SknONmFAGaSCtIOE15NiM5EoVC0eRSZp2CD 9DNkTtKu+ufhuhqiQKecxA5lbFN2QgGwGIOq7FQy+WskwwTsN1BlCDIQx1KmYOILNwlF Cm3g2bA40GWvB/7tf06H2ipX1pmKjtDytpoFOuw2S9U8ZFdbZkcn1klKhQGCKQZmpEPJ pL5g== X-Gm-Message-State: AA+aEWa1LVF0HLw4ubUa42hoXYU6qKdTPA0IE4MWYV/Z6JWVVOgsQKDZ mftz2ab2tpnH7L7Vei1ENp8= X-Google-Smtp-Source: AFSGD/XsEYvnEZVRcYrcw2ooP69qvHF9+UsQHUmhr8GHTf8HOvjUL68D/8/C48BC3Fxx0I++wcXA2Q== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_125557_634035_B6678A37 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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, ...)