Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp194331pxb; Tue, 7 Sep 2021 22:00:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8jwQxppBAHBGlRa7xm97Awvq7iOWLPE+TR5Fy735RuWH8gh1MpQKY1EIlt/hgdHMWfK/k X-Received: by 2002:a17:906:d792:: with SMTP id pj18mr2126940ejb.61.1631077217264; Tue, 07 Sep 2021 22:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631077217; cv=none; d=google.com; s=arc-20160816; b=uA75OxVaYoOZlGjGgV7Omuie2YBg4KEhghKe/pIn1zulKEifbvMcjYlrX4UzxiNuFb boV8xjYmMCpCJaJ/uCe9klTjFURxlnW7QcQ6HmaLcRoin2Qwg6GvyVhCtWklV/VhOV54 g8784Di1B0xQZwjI1qmbE+On9agDDgcjsCcaiDAZf7fMEWM96ivRrNgZvt0rYhL1delI 1ctmRbETFb2Dxlebe2A3+tFVyM4zkD+0ZuMtH/F0BDZLoftMSaUqN+PBhTnpN09uxbZ4 XjjVsO+ciDIYHwWJpBbRw9ZNFEuLDkx40lKv5/7WiZDAzl/L4DyI0waLLhbSUW5i/z+W Hkrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NWH4l29haq2Pmd2wwCDXmHDyp9fw8XWXxvX9KPX7RfI=; b=hpBFOhlY0K/whohdjfEjQfCny3Pyks73jVpgRWJ9ykMADqU4BN6GopjSJXRcjtdlE0 X0g2KKP0YtSWG1auwIEGlta9XgUC/4Sn1//5dX6iLfzaRb2IKFcx+zihHf70meDIw3hk ygufMZ1pJ4wUVgKkiz08NeZfMCVPxIS4gk0dRsYPe3XdCiKRKeIoBJto7xTEML3jMngH YGBmwn+qfNYbh/0LflqM532fGC92vPQog+PyNUhfvg8ecMc6CeZIgJ/TPFbpfzmHx8SV AGWsdLyOrxob81frLZ4YLEKzp9tTaRchzeU34edKlKPdDEJNBfGm4IugF7pYfOLSKWE/ bk4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si946151ejv.669.2021.09.07.21.59.20; Tue, 07 Sep 2021 22:00:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbhIHExh (ORCPT + 99 others); Wed, 8 Sep 2021 00:53:37 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:40224 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbhIHExh (ORCPT ); Wed, 8 Sep 2021 00:53:37 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNpVA-002DI1-Tc; Wed, 08 Sep 2021 04:48:00 +0000 Date: Wed, 8 Sep 2021 04:48:00 +0000 From: Al Viro To: Guenter Roeck Cc: Linus Torvalds , "David S. Miller" , Dmitry Torokhov , Christian Koenig , Huang Rui , Linux Kernel Mailing List , linux-sparc Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds Message-ID: References: <20210906142615.GA1917503@roeck-us.net> <20210906234921.GA1394069@roeck-us.net> <20210908042838.GA2585993@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210908042838.GA2585993@roeck-us.net> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?