2022-03-17 03:24:10

by Trilok Soni

[permalink] [raw]
Subject: Re: [PATCH] soc: qcom: smem: use correct format characters

On 3/16/2022 2:31 PM, Bill Wendling wrote:
> When compiling with -Wformat, clang emits the following warnings:
>

I thought we have -Wno-format by default enabled for arm64, isn't it?

---Trilok Soni


2022-03-17 04:04:51

by Nathan Chancellor

[permalink] [raw]
Subject: Re: [PATCH] soc: qcom: smem: use correct format characters

On Wed, Mar 16, 2022 at 04:17:06PM -0700, Trilok Soni wrote:
> On 3/16/2022 2:31 PM, Bill Wendling wrote:
> > When compiling with -Wformat, clang emits the following warnings:
> >
>
> I thought we have -Wno-format by default enabled for arm64, isn't it?

Yes, -Wformat is turned off for clang in the default kernel build on all
architectures (see scripts/Makefile.extrawarn). However, it can easily
be enabled with W=1 and we should eventually get this turned on for
clang like gcc so that developers who only use clang can catch instances
of it.

Cheers,
Nathan