Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4041169pxb; Tue, 26 Jan 2021 10:47:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzHWLY/ZfjfD7pcflRPlTMDMTd5oi2rALnFRa8/OjhS0C7eYiJTkV6+Q0YcWZeF82f5mIQ X-Received: by 2002:a17:906:fc4:: with SMTP id c4mr4479486ejk.143.1611686860403; Tue, 26 Jan 2021 10:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611686860; cv=none; d=google.com; s=arc-20160816; b=DJsV1MBddQ1JbSysQwVY8RumXJ/npbCquOn3WoVnU/skVoj0t3wSLe4LKCMWMspI72 IiA5byW8nLTbpN0hVNc4eDX4u/TER5FJhywG4ie2vTQNIMQRWuQn3lLAZyZbUuFGzG/+ JLSPoPBk9aZERSIQeokGPnhi6ZzOh/dTRufFqxNq9Rtg+5vVBMXA4PHU90sMuvIHa1pO ATr+4BmvlmydANvE8Exn6pWc4FZfQvJgNZrU0HWGK/hcCzc+D45E/j1N0IyoFfZhKcpn vhmDiCEx6titYXdnXh2fTZfwJSJLVyJ+/i1ZKXNNIN49jZuONGZOhuwsxcI8tqe9ZU9P g2PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2hzg/8SeTRT9UK29/olnLfJGacHt08VbSRV0nHnvSoU=; b=ecXI7yEopVqugfrg4t9XQUzoCGMd6rB6SbqRbpVfz0qO3rfODryieFnyzIohOL4clO DkzzuuHNc2maTjnxUNxWpiEyRz6/0qZK/MvWCU3/w93SFvEXN4QUHmuyBPvpnia+tA0f Hi+8nhPDHjZMpVtDF8AOfBDQpoXtG8Ob0K2dceKwUrNc2ryET4vKclz52dQMFmIKVwBb ou/0rrwR4wKFLIEjOoxfrPPYFfLhCzPNT/HsO18CjW4hf7IWnPHY0xdnLIKraNTbnSVj vs9k+gDgkeHGLsmn44aqtpbflqFqZJ0Zycjq7yVLtMKoob3NLVwLTTj3pyf909mTsDOq 8UZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lWLMnRxv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl7si4730512ejc.308.2021.01.26.10.47.14; Tue, 26 Jan 2021 10:47:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lWLMnRxv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403932AbhAZMum (ORCPT + 99 others); Tue, 26 Jan 2021 07:50:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391930AbhAZMsR (ORCPT ); Tue, 26 Jan 2021 07:48:17 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E41EC0698D4 for ; Tue, 26 Jan 2021 04:45:55 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id p15so9651672wrq.8 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=aK7zfFt86He9luxtBPIQ3BB4p3V/s80N/C4SSPLwReGbi1HG0b1TwtNL9iKKZCwvSR tZxtHz3YW4lQsxbZao3cNuHiKqw3QZY9d+UkFLTgOxVPuXqZ3fqWqHnaRnkiJHkL4TpM dLUrusPS0H2Tu6fjh9Sub3iuZl/Ni9Ym+JlIbrVwfexvld9Nv7AX43nH3ZwQttYM9gHN E+ldv5Wi0zT6HsW/eCLLcdBcoenStKy3nhIIsrpN+SHChEME6Oif/i1WvQ/DrXOe7caG 1QCme3cvzuYZC1M+nh/w4CYSjURJKDmaBbtCsCbgq89qB+2QKLYwNppaJkPkOvhvdB3b ZVPQ== X-Gm-Message-State: AOAM530Su85YAUEHMpotW9t5mdwNSxSxuHOM4C9EQgoZbQoyX2HQGuKA Dcdc76+bxEGFJwEi5zB7xafcBQ== 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 Cc: linux-kernel@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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) -- 2.25.1