Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2404993pxb; Thu, 11 Feb 2021 11:26:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLDT9JzGKFipuBHzHdd0Uglcrlh+QaiTew6bc7Ukm1yaFHsI1/OgUVuYFQ/9Ot5Zf6F5Am X-Received: by 2002:a05:6402:1155:: with SMTP id g21mr9654555edw.279.1613071568564; Thu, 11 Feb 2021 11:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613071568; cv=none; d=google.com; s=arc-20160816; b=L6n5ak4E9LzPziEwa9IqekcmEKr2sK5CA8d6NrTBvxE05xdlF/HQTzFOKeA+oHnWnb o8/O0r/z3b/3xhS11alTqEkWw8aJLfDUaJqt5d7kx9Lmx7IA3ISNiikI/dZKCPwoh/tr LnNSxLITT60BiQAzrnWIfaIEUCfsrKcsdlDFW40yJsckiZnxP1pa89f3nqTR1/RrUtwY RYiwP6Ud19/KYxJmHarQVMkCE137BcW5yobkt/n0xqM13vT9IedKYwjN3Hg9la7g9tHR f2e4kxZXAjv7tCsc2y1itc0c1phU2CMI95app1boAGbb0fiI1p7c0i1GmycZqLD+1CQW lSow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=zgkHoghkQJG8wqod42XwRtNon96sVIUMEMht5RZbqw4=; b=vvDxB55rEaTs1a7zNAbKlniqJhTUMO1zzI7Xrz8TSobrpxFNOWk9PBHoQ5DJ9fhs/z ZJQPss/xYSEmdWCEhlKHMkk4iFOwbHHRPl6wcFZSkw57V0Qs923CPnhYvTeUnwWrZGU7 uL5Dp+QSZ7EWaUKGS/GZHFH6sKuEIXoCBk6sMvZdazv5eMXeRuLpLmyGGoqajixcbZO7 koQWsF2xzvdETC1FIYti4aTWJpiBGkAQoVTiRFFlgd/ErG3WZyQkHHD34TZpeKJFSv28 idrituRiM1JXj43U3XhSZKOWKd+NuG0uRcNmAXgP7atOrSWD2CO3zGsXNPE+Qpth8F7E 1lwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O8Tfs1pE; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k23si4358264ejq.693.2021.02.11.11.25.42; Thu, 11 Feb 2021 11:26:08 -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=@kernel.org header.s=k20201202 header.b=O8Tfs1pE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230110AbhBKTYg (ORCPT + 99 others); Thu, 11 Feb 2021 14:24:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:42198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbhBKTY3 (ORCPT ); Thu, 11 Feb 2021 14:24:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5B82764DF3; Thu, 11 Feb 2021 19:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613071428; bh=q212lYt4ihrp76ADLXHJK6ZM1oxf7oDEPHFpC8j7mN8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=O8Tfs1pEG2o3QsWaAKYQ20RF7SOR9YTFw+ljpvuTbsla77w7Er5ET1eCmg1otpjSH omX+vbHYtajcHNYvObKGVNvSetIZDQs00avD2WA5VE556cGER6WMfy0gx/ExoH4P/P 6JYGzuGcm/qrb8mEFLVcosH6dbwRkr02XQlxI+p2Xh6Xm7Ysxjch9zwmFwo8eV4V3q JcgXAkL1YkROEoOBbCkCnffHZKCPzFrmLnYnvLyHNDhJi+5kllYzreAQYy0s11KDdf 7zVEJf3TUDOs7Vwdut5UVrls8V2O+sVo+1c2PQF9W/CX+jRKocX9zZ3wwQJWRKeDtH EHVRoPqc8wkNQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210126124540.3320214-9-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> <20210126124540.3320214-9-lee.jones@linaro.org> Subject: Re: [PATCH 08/21] clk: clkdev: Ignore suggestion to use gnu_printf() as it's not appropriate here From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org To: lee.jones@linaro.org Date: Thu, 11 Feb 2021 11:23:47 -0800 Message-ID: <161307142704.1254594.1986201109191269158@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Lee Jones (2021-01-26 04:45:27) > Fixes the following W=3D1 kernel build warning(s): >=20 > drivers/clk/clkdev.c: In function =E2=80=98vclkdev_alloc=E2=80=99: > drivers/clk/clkdev.c:173:3: warning: function =E2=80=98vclkdev_alloc=E2= =80=99 might be a candidate for =E2=80=98gnu_printf=E2=80=99 format attribu= te [-Wsuggest-attribute=3Dformat] >=20 > 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(+) >=20 > 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]; > }; > =20 > +#pragma GCC diagnostic push > +#ifndef __clang__ > +#pragma GCC diagnostic ignored "-Wsuggest-attribute=3Dformat" > +#endif Can this be some macro banished to compiler.h? > + > 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; > } > =20 > +#pragma GCC diagnostic pop > + > static struct clk_lookup * > vclkdev_create(struct clk_hw *hw, const char *con_id, const char *dev_fm= t, > va_list ap) > --=20 > 2.25.1 >