Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2449175pxj; Mon, 10 May 2021 03:18:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLY/mMuAp0aiHhLOy4a2rVE4WdRX24em9/gwVIU3/kRSKldsq1Wzubcom6mTshjxM/MFer X-Received: by 2002:a05:6402:5106:: with SMTP id m6mr28650500edd.212.1620641911724; Mon, 10 May 2021 03:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620641911; cv=none; d=google.com; s=arc-20160816; b=lW6BmEmsCGHYX6PkbBUWNr3tLHZxiFsXDdxawA/2MM7xfUl2RqVkv8aT2w/q9cRqTP xU0MNYT9PwBs1ZFckHbAo+lkEyGkhs5hrII3VDhFisNxqFPWg2N3ceM/fECVzTYNkUNt xZYfrRT6IjM1kMVVCZ5L/KJ6nY7/xax2IQ4/b7fOpe9IWqcdX6EX/E9FIFcLfBGGU0sN ieJRnsxfA5Mnj98cc1j5nKHKHeamPmEZuq+zIO0cO2s1trMq+tCA7evwRf8N0KRCE3fD IPfEt8Qc1ylozrIQ/pftRFMVElxp+P0urBrLXwMTSDkZQoBy89p29SoIkpZZ3mGUE5Ke tmVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=sVvVN78+/ymEH+RZL6HvoVCZVksTZw7UVoQH006DAA8=; b=O06iLJmoRfPgrdoCkil7ozKdFKGgZseAWPu4HRqBSFP2vvirFtSeQs040sFEvUBBVN /PdPMRLBJ7shvOmu2sh2BDOaEuVX/ouAFUlvmbYvLzocrZjri0wenp9L1GpZIP8qLrYr Bk4m9Vbzbi2Dn2GAk19NpwR9uNcPpC/wCi0DtYpMnZq5up+0HEsj0SlUhGeukH/ZLu3d 3Ooq+px/EJBvK3uoBLT+tdfuS2fodCGiswFDZsuIjrW5AitxGTCdu6Ncx2K0DYS5n6r3 m8CyQl6Cx00WX+ZptgHnoy6joOxqHVggEKdyU0OSbzXZJhx/8P8MUYhLJ3Eg01G/n1RU 7myw== 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 nc38si15723195ejc.622.2021.05.10.03.18.08; Mon, 10 May 2021 03:18:31 -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 S230436AbhEJKRs (ORCPT + 99 others); Mon, 10 May 2021 06:17:48 -0400 Received: from mail-vs1-f52.google.com ([209.85.217.52]:35626 "EHLO mail-vs1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbhEJKR3 (ORCPT ); Mon, 10 May 2021 06:17:29 -0400 Received: by mail-vs1-f52.google.com with SMTP id j13so8124988vsf.2; Mon, 10 May 2021 03:16:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sVvVN78+/ymEH+RZL6HvoVCZVksTZw7UVoQH006DAA8=; b=uiiBmkHlh6s5t0Q6ekUiP2RK7fY7IrsyQ4X30oiYA8nOMTOpVbsOvsK7rvWIFRp5nB Iyz9R163vNvnPCJjmJnKmSm9EVCKvRl3B8XAu/IQq0hbrCjB938R2BQfS2eqOpwdotGZ 9pFwtE0SkDsLD9aCYyjTNEeofBctawz9Do4erZDD9m6RaGkVyXC24qrPpqEUloTKapnG 6uYgPdJG0ouqCMdUKazKPGQj0VRN81LNyPxfW1MDE2XhFnh97MuO/gmBH6LojXMha+eq K00aTjCBMcVu5XyNmqHszmx9GMMcQg4BSKMLVtzRWmxVcIZGbF9YWM1CgN4dKUh3KZ7S ao/A== X-Gm-Message-State: AOAM531JjyLLwBGwA+OJvXqPpY+9fUftJOP2AN9bNMe6nZntmYtHtYJa 9mls5DQUw1KnpELouF1hp176F5u0ZHy/VKgocUs= X-Received: by 2002:a67:8745:: with SMTP id j66mr19115560vsd.18.1620641784321; Mon, 10 May 2021 03:16:24 -0700 (PDT) MIME-Version: 1.0 References: <20210507220813.365382-1-arnd@kernel.org> <20210507220813.365382-2-arnd@kernel.org> In-Reply-To: <20210507220813.365382-2-arnd@kernel.org> From: Geert Uytterhoeven Date: Mon, 10 May 2021 12:16:13 +0200 Message-ID: Subject: Re: [RFC 01/12] asm-generic: use asm-generic/unaligned.h for most architectures To: Arnd Bergmann Cc: Linux-Arch , Linus Torvalds , Vineet Gupta , Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Michal Simek , "James E.J. Bottomley" , Helge Deller , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "the arch/x86 maintainers" , "H. Peter Anvin" , Chris Zankel , Max Filippov , alpha , Linux Kernel Mailing List , "linux-ia64@vger.kernel.org" , linux-m68k , Parisc List , sparclinux , "open list:TENSILICA XTENSA PORT (xtensa)" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Sat, May 8, 2021 at 12:09 AM Arnd Bergmann wrote: > From: Arnd Bergmann > > There are several architectures that just duplicate the contents > of asm-generic/unaligned.h, so change those over to use the > file directly, to make future modifications easier. > > The exceptions are: > > - arm32 sets HAVE_EFFICIENT_UNALIGNED_ACCESS, but wants the > unaligned-struct version > > - ppc64le disables HAVE_EFFICIENT_UNALIGNED_ACCESS but includes > the access-ok version > > - m68k (non-dragonball) also uses the access-ok version without > setting HAVE_EFFICIENT_UNALIGNED_ACCESS. This not only applies to dragonball, which has the CPU32 core, but also to plain 68000, and any SoCs including the 68EC000 core. It also applies to early Coldfire, but AFAIK Linux doesn't support these (see dfe1d26d4a90287e ("m68knommu: Allow ColdFire CPUs to use unaligned accesses")). > - sh4a has a custom inline asm version > > - openrisc is the only one using the memmove version that > generally leads to worse code. > > Signed-off-by: Arnd Bergmann > arch/m68k/include/asm/unaligned.h | 9 +------- Reviewed-by: Geert Uytterhoeven Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds