[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YThAgIhKPQZq5UZn@zeniv-ca.linux.org.uk>
Date: Wed, 8 Sep 2021 04:48:00 +0000
From: Al Viro <viro@...iv.linux.org.uk>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
"David S. Miller" <davem@...emloft.net>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Christian Koenig <christian.koenig@....com>,
Huang Rui <ray.huang@....com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-sparc <sparclinux@...r.kernel.org>
Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds
On Tue, Sep 07, 2021 at 09:28:38PM -0700, Guenter Roeck wrote:
> memcpy(eth_addr, sanitize_address((void *) 0xfffc1f2c), ETH_ALEN);
>
> but that just seems weird. Is there a better solution ?
(char (*)[ETH_ALEN])? Said that, shouldn't that be doing something like
ioremap(), rather than casting explicit constants?
Powered by blists - more mailing lists