[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86set55yca.wl-maz@kernel.org>
Date: Wed, 09 Oct 2024 12:07:17 +0100
From: Marc Zyngier <maz@...nel.org>
To: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>
Cc: Oliver Upton <oliver.upton@...ux.dev>, Joey Gouly <joey.gouly@....com>,
Suzuki K Poulose <suzuki.poulose@....com>, Zenghui Yu
<yuzenghui@...wei.com>, Catalin Marinas <catalin.marinas@....com>, Will
Deacon <will@...nel.org>, Nathan Chancellor <nathan@...nel.org>, Nick
Desaulniers <ndesaulniers@...gle.com>, Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>, Pierre-Clément
Tosi <ptosi@...gle.com>, linux-arm-kernel@...ts.infradead.org,
kvmarm@...ts.linux.dev, linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH] KVM: arm64: nVHE: gen-hyprel: Silent build warnings
On Wed, 09 Oct 2024 09:57:51 +0100,
Tianjia Zhang <tianjia.zhang@...ux.alibaba.com> wrote:
>
> This patch silent the some mismatch format build warnings
> with clang, like:
>
> arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:233:2: warning: format specifies
> type 'unsigned long' but the argument has type 'Elf64_Off'
> (aka 'unsigned long long') [-Wformat]
> 233 | assert_ne(off, 0UL, "%lu");
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> | %llu
> arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:193:34: note: expanded from macro 'assert_ne'
> 193 | #define assert_ne(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, !=)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:188:19: note: expanded from macro 'assert_op'
> 187 | " failed (lhs=" fmt ", rhs=" fmt \
> | ~~~
> 188 | ", line=%d)", _lhs, _rhs, __LINE__); \
> | ^~~~
> arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:167:17: note: expanded from macro 'fatal_error'
> 166 | fprintf(stderr, "error: %s: " fmt "\n", \
> | ~~~
> 167 | elf.path, ## __VA_ARGS__); \
> | ^~~~~~~~~~~
>
> Signed-off-by: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>
I don't see these warnings. What version of LLVM are you using?
M.
--
Without deviation from the norm, progress is not possible.
Powered by blists - more mailing lists