public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "Mark Rutland" <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org,
	"Mark Brown" <broonie@kernel.org>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Marc Zyngier" <maz@kernel.org>, "Will Deacon" <will@kernel.org>
Subject: Re: [PATCH] arm64/fpsimd: Avoid warning when sve_to_fpsimd() is unused
Date: Sat, 03 May 2025 17:26:13 +0200	[thread overview]
Message-ID: <5dda6773-7a91-476b-bd0f-73eaa8f95ced@app.fastmail.com> (raw)
In-Reply-To: <aBYtk_Azv84QA9C3@J2N7QTR9R3>

On Sat, May 3, 2025, at 16:52, Mark Rutland wrote:
> On Sat, May 03, 2025 at 04:10:43PM +0200, Arnd Bergmann wrote:
>> On Wed, Apr 30, 2025, at 19:32, Mark Rutland wrote:
>
> Fair, though with W=1 there's an existing issue with sme_free() that no-one has
> complained about:
>
> | [mark@lakrids:~/src/linux]% git clean -qfdx
> | [mark@lakrids:~/src/linux]% usekorg-llvm 19.1.0 make ARCH=arm64 
> LLVM=1 -s defconfig             
> | [mark@lakrids:~/src/linux]% ./scripts/config -d ARM64_SVE             
>              
> | [mark@lakrids:~/src/linux]% usekorg-llvm 19.1.0 make ARCH=arm64 
> LLVM=1 -s W=1 arch/arm64/kernel/fpsimd.o
> | arch/arm64/kernel/fpsimd.c:208:20: warning: unused function 
> 'sme_free' [-Wunused-function]
> |   208 | static inline void sme_free(struct task_struct *t) { }
> |       |                    ^~~~~~~~
> | arch/arm64/kernel/fpsimd.c:676:20: warning: unused function 
> 'sve_to_fpsimd' [-Wunused-function]
> |   676 | static inline void sve_to_fpsimd(struct task_struct *task)
> |       |                    ^~~~~~~~~~~~~
> | 2 warnings generated.
>
> ... so we'd want to do something consistent there (and probably for a
> few related functions).
>
> How important is fixing W=1? I note we have a *tonne* of warnings today;
> so I assume we can punt that to a future cleanup?

There are usually new warnings coming in, while there are developers
chipping away at the existing ones, either doing one warning throughout
the tree, or fixing all warnings in a particular subsystem.

I've spent some time on fixing the -Wunused-const-variable warnings,
and others have done similar patches, so we can hopefully turn that
on by default soon. I haven't looked at the unused inline functions
in a while, so I don't know much there would be to do on this one. 

     Arnd


      reply	other threads:[~2025-05-03 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-30 17:32 [PATCH] arm64/fpsimd: Avoid warning when sve_to_fpsimd() is unused Mark Rutland
2025-04-30 18:13 ` Catalin Marinas
2025-05-03 14:10 ` Arnd Bergmann
2025-05-03 14:52   ` Mark Rutland
2025-05-03 15:26     ` Arnd Bergmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5dda6773-7a91-476b-bd0f-73eaa8f95ced@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox