Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2808167pxb; Fri, 12 Feb 2021 01:38:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7pZ4hRcSkB3vWHRIYkgEjZUjfGmrkjtQpBFxKRd18Abv/VHm1ZAAzuJRiFlGqhF26M86I X-Received: by 2002:a17:906:3105:: with SMTP id 5mr2195203ejx.168.1613122691731; Fri, 12 Feb 2021 01:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613122691; cv=none; d=google.com; s=arc-20160816; b=xaOxvtxBT1/iOgQH/BFJhOdFtHgfKy2UyoansC1IupeMW4w83PsdsiCFuryNCwr1QU X4H/BTF4M3itSY+WX5es35pUhD8FpvSrbU/IregguxFjZU8IPtTevxpTn2+atTLFVXgS yn968hQI/qcPAPVSdnp4Z+IasNd4CQmlNqRcocM9cJdWSmdrEt2/qI70D3m1vfwHBJGj JkJvVmNEPy0kgvMmY4hNMFmVrswuAGDhHFdH7L9QVg1svpYwnsXehO8CFwkNFOmWOvFv bw2r6sXZaCdtUy97VYkpH3ZBzitu7GoDw1u9/U8By0ECYvwN+jG8ivRPTvAgl0jrwBVW kjJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xV/X6S3BgTkmgChLtbDzueTb5OHb5qAxSGvZ5rKEbzM=; b=RzOdlefYdEq230F22k3+F518RrkfWyEBfLHrERpULlpAcRAus81z03mfz46GSPgGcN ACISaemvj3YhwdKxOoxa/tpDMBsTM9yKAszXpfLB/zVKTUFUhTbvEFweusbCEgDDrAkr BKXxr6tHI9ZCppuhvGWfXMjAIPwgzn5hLVfe45rItep44Z69m7t20pE+6RTWmomeOOU2 jo2UlzWx1GBv0P3kquiXw1U2FHNfdKBDdWTZ9tO9QpRV2cotMfl1cPKy2oiGCMh/lgmv V43E9n7O5j1UQWaC8/Khbo7NT/OMZn58mEkXkgnGI2f9zogyJn41ZC6E4IQsX+Fsc2/i yhmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dnxVihN3; 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 gy4si5758275ejb.4.2021.02.12.01.37.45; Fri, 12 Feb 2021 01:38:11 -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=dnxVihN3; 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 S230108AbhBLJhG (ORCPT + 99 others); Fri, 12 Feb 2021 04:37:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbhBLJhE (ORCPT ); Fri, 12 Feb 2021 04:37:04 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF19DC061756 for ; Fri, 12 Feb 2021 01:36:23 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id r21so7086338wrr.9 for ; Fri, 12 Feb 2021 01:36:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=xV/X6S3BgTkmgChLtbDzueTb5OHb5qAxSGvZ5rKEbzM=; b=dnxVihN33cILJyM5Xtr0YeXxkdAQNGbBts7uYXFbgl0w14+LYLh5Ks6/89S7pROHVk pQiImshTjs5C12HuMu3vSgPt92W+I9zh3HMXAsEK44t5OqssK+znxN7hFQLz6ya6B/p8 gLoR5bdXQ5vM+siyeK8O3QvpI8z1LTUOLMR9P2qYmPMIaUhZzK2CFp06J/VSC5mRPbIj ssFzXxElD6vS0ya6jDM5wv0ImvkG5tktHMXgbCcPcfK9Z6sf3KhAvEd+nm/CvyxaQM67 eJQ3Y/ESW7KZdn5WbLpNA55Zxk8XjILhfPqhRLSH73ITXhLvp0oL848E8sPOAXEEjZ9X jxBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=xV/X6S3BgTkmgChLtbDzueTb5OHb5qAxSGvZ5rKEbzM=; b=F+ZOGt4q+Z2bX55vy6DLpeXe5pKpmHq/GSaOsJIhkC34T5zfpvP0sEOLAeKZ8yRbgE tvy05E47SE0/3KB/o4bPhjAZ2RFS0sZLzoxqsSzKrWoJy0PX/BDRvi9uP0poIzUc0x2C X2iJSkxszq9flW3X51Pm+prgLDGxtgagW2KUPdo2jLvejru40O8iIRRYhuquROwxbN8Q 3ba8L2WYlfiUeB0AOzr7xX45h2u1tPdg5J2LyfThLETGulEr+0/WVSR3eSmiuB/6o4Qv pvXiRxbFsmDg9365FvcOCyTFD9giS1SQCUpyPaPbR8aEgYcsSTa2u61vz5gTJagMHPpS BkZQ== X-Gm-Message-State: AOAM5330HASfsP2sKKRGyQNegpWJiRGz/r+lnV5YMn/uCjpxCGHPJn3T 2hBU5G3jwpjLLOacdGR3Yd4tw4lP/94W3w== X-Received: by 2002:adf:f648:: with SMTP id x8mr2316877wrp.34.1613122582683; Fri, 12 Feb 2021 01:36:22 -0800 (PST) Received: from dell ([91.110.221.187]) by smtp.gmail.com with ESMTPSA id t198sm3875628wmt.7.2021.02.12.01.36.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 01:36:21 -0800 (PST) Date: Fri, 12 Feb 2021 09:36:20 +0000 From: Lee Jones To: Stephen Boyd , arnd@kernel.org Cc: linux-kernel@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH 08/21] clk: clkdev: Ignore suggestion to use gnu_printf() as it's not appropriate here Message-ID: <20210212093620.GG4572@dell> References: <20210126124540.3320214-1-lee.jones@linaro.org> <20210126124540.3320214-9-lee.jones@linaro.org> <161307142704.1254594.1986201109191269158@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <161307142704.1254594.1986201109191269158@swboyd.mtv.corp.google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Feb 2021, Stephen Boyd wrote: > Quoting Lee Jones (2021-01-26 04:45:27) > > 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 > > Can this be some macro banished to compiler.h? This is probably a question for Arnd. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog