[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3234493.RMHOAZ7QyG@ripper>
Date: Mon, 26 Jul 2021 17:04:46 +0200
From: Sven Eckelmann <sven@...fation.org>
To: Al Viro <viro@...iv.linux.org.uk>, Arnd Bergmann <arnd@...db.de>
Cc: Arnd Bergmann <arnd@...db.de>, b.a.t.m.a.n@...ts.open-mesh.org,
linux-arch <linux-arch@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] asm-generic: avoid sparse {get,put}_unaligned warning
On Monday, 26 July 2021 14:57:31 CEST Arnd Bergmann wrote:
> >
> > > The special attribute force must be used in such statements when the cast
> > > is known to be safe to avoid these warnings.
>
> I can see why this would warn, but I'm having trouble reproducing the
> warning on linux-next.
I have sparse 0.6.3 on an Debian bullseye amd64 system. Sources are from
linux-next next-20210723
make allnoconfig
cat >> .config << "EOF"
CONFIG_NET=y
CONFIG_INET=y
CONFIG_BATMAN_ADV=y
CONFIG_BATMAN_ADV_DAT=y
EOF
make olddefconfig
make CHECK="sparse -Wbitwise-pointer" C=1
I should maybe have made this clearer in the last sentence of the first
paragraph: "This is also true for pointers to variables with this type when
-Wbitwise-pointer is activated."
Kind regards,
Sven
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists