From patchwork Tue Jan 26 12:45:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12046371 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 064D1C433E6 for ; Tue, 26 Jan 2021 12:48:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BB56023127 for ; Tue, 26 Jan 2021 12:48:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BB56023127 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=1i3q0sgBjaPPxt674GVHGpVBwl0rdHJRtDLC5Pe310o=; b=V7PtcnKRj5wleI5xVtKAIhrr4 WhO31DUf4kaFmPNyvuYiQlW2RxKY7yhucbkU6tEU5n6cEf6pPYwlP7MpdTPiCzDIGwTgWrMStbaPS QSb+EnbB4gpyj/H8aQ+He+cK1pv65McMaGo8g8Lm/9RscWZfhdWBFaMywjUgWjxhVtdIRtKEytEXr xjFsKFsUcC7eUnxtO+M3q7+Yzi6vOqab9bGmlncizhFLQsWDqC0vJQtjIekw+nLv9ZIxdhcEOIegw rt62QlgPs1P1lL7VsaKgrvlKcEZ4x0GCiBaV/GyDz/cXqiXJ5Z1NaWvConSugTaCdV1A4pip5Ne4r LN67atpUQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4Nk5-0000tZ-QV; Tue, 26 Jan 2021 12:46:45 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4NjH-0000ZJ-PL for linux-arm-kernel@lists.infradead.org; Tue, 26 Jan 2021 12:45:59 +0000 Received: by mail-wr1-x42d.google.com with SMTP id 7so16317689wrz.0 for ; Tue, 26 Jan 2021 04:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2hzg/8SeTRT9UK29/olnLfJGacHt08VbSRV0nHnvSoU=; b=lWLMnRxvowPMTlaDJFbNmxhWgm9vJFK+V3MilmPDueEgsYLNCwYZs2Mw5//Msre6qQ YcjO+ASNJk3CbvBVUYwwHcHahYoOqtB8ehm1UpFkqSIJBT8QAJ024vozCOPtLzFd+3b5 g4fxKhngoF4xS+5GGHYywN6bcClh8Wl19yOJD32Z251yGQg5GdhAKtHiYMwdMt4WSw1q HN/GXTIpG0IqWFvdZUHU0z9s4P2Ot6ijnJNAK7WFc1RXG/G+0qpBigJQ+LjjIT2CxTlr 68+rz+iOskjnDT95YnpRsbrsFvhIZVm8X5CyOTHiOLvH909RbcktdBJbIospbxigq/qK +KMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2hzg/8SeTRT9UK29/olnLfJGacHt08VbSRV0nHnvSoU=; b=fEMm7xNaLm64QCdUfeeNSrydfevxUWOAJVKAX72GBlu0LF7uR+3vIWvLd6qbj9pZvz e25TlhI6xtQumavku2p7EicjqB9QOsVduTKa0N/isGY8dpVu29vjFT/gpvPb2L/Rsk4i 5J4Te3wKkG8JStUm6l9l5O2u+kvI01df/Wsdv+pA2TN0hw2/asZqzoxDpk8BEa97O5Le 1fPi8Pwzyrub2zHwPy4Iu8dFZTJ49eWGSY5f9LZPV5txnB5SQsfIcBRGYhVVNdm3VtTA TOGuHf4sG1vzti/gMUdH7ErNRTE1pzYl0yD/DZWXtr34h/EqZKpy364Kk2lwAu56moQf iLLQ== X-Gm-Message-State: AOAM530R2/zaE9faCr4GyNh0IWxVsDwa4JCaDReK4Iuc8fLsTv04THa+ WZyM5MiuvlnRU58ZmVG1F/g3ylKZJwb7XVCE X-Google-Smtp-Source: ABdhPJyjU0lvjeO1wQqSvovQaY4hrhJ2Yh/ZGBtMcXbxz0ciC4bx2nwk/1XVyHtHHP4m8h3In3D4QA== X-Received: by 2002:adf:d4ce:: with SMTP id w14mr5719822wrk.89.1611665154192; Tue, 26 Jan 2021 04:45:54 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:45:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/21] clk: clkdev: Ignore suggestion to use gnu_printf() as it's not appropriate here Date: Tue, 26 Jan 2021 12:45:27 +0000 Message-Id: <20210126124540.3320214-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_074555_874155_C9B77F79 X-CRM114-Status: GOOD ( 11.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixes the following W=1 kernel build warning(s): drivers/clk/clkdev.c: In function ‘vclkdev_alloc’: drivers/clk/clkdev.c:173:3: warning: function ‘vclkdev_alloc’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Cc: Russell King Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Lee Jones --- drivers/clk/clkdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index 0f2e3fcf0f19f..5e5f25d568724 100644 --- a/drivers/clk/clkdev.c +++ b/drivers/clk/clkdev.c @@ -153,6 +153,11 @@ struct clk_lookup_alloc { char con_id[MAX_CON_ID]; }; +#pragma GCC diagnostic push +#ifndef __clang__ +#pragma GCC diagnostic ignored "-Wsuggest-attribute=format" +#endif + static struct clk_lookup * __ref vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, va_list ap) @@ -177,6 +182,8 @@ vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt, return &cla->cl; } +#pragma GCC diagnostic pop + static struct clk_lookup * vclkdev_create(struct clk_hw *hw, const char *con_id, const char *dev_fmt, va_list ap)