Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1129177pxj; Sat, 8 May 2021 08:25:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzI6P5BcnRN7ut8zQ+s65de0GLWJ5bJ7WhCJ/ZVh2xsrELN6Kelp6l4jdk+cQJwCUTovG6p X-Received: by 2002:a6b:7901:: with SMTP id i1mr11881072iop.41.1620487520267; Sat, 08 May 2021 08:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620487520; cv=none; d=google.com; s=arc-20160816; b=Pu7yiecobbZ4/AOGyPJ8wsvs7DiOvk29nyvWtdEPztfopQ33rQbKV0UDtA6cnGDFSr Hw53iXbb7Yq7ERbzSQ+D166PVXoXDN5s3g1NsavlLCwPrXI4nX4ka+eGf8D+spScjJum OXMsKC6jqwKyS5ccQxXTr86O7D17M+1jGTrwxMjOjNRsOOvB1GEEzSjEOdTfkRXdHZrs cnYLblmOG28SE+5rHkTSan2nG1LKJJReMXHj/jJHeXFQ/fTV8FqgKignrRKPaHqm7Jzx ze7Boe6B1Y+FFgkbhmZcd7djlW9naUjBpsj9cvtgIj9OzTD2n1Kl4Ed8CyURlMuSkaHk wpSA== 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:dkim-signature; bh=LA1s7H8iJNlnGDJOvq18ISrXAvebu3dTqmmAHQk0eXA=; b=J0ml/Cz5QLBmLRUbT0iTZUeC8t9hfHPktgqFAyi457RtkO6V1eTylyR+D4C5royj11 rgs1Rqpws3NS75XOOlbM56qIJfe/UjWJsVIQLj7OqcNeE0/RrCmqok1htxKEcB2XIOeO pq1svmFptg+7EhE5wYBFxI+8zqV4uhVVaVMzkzfLp/Xeh8URTh1b39Mx3+Nfu9oaxg9z qOvE3eGuh35e2961dL5KPNdggaOEYtKpl2S4VTW40FezXW9pUbGkigM359VuUdI8G1Kw NaJ6d2lkQnBcmH2sqhdwIyfmY6tpQ+mn5/UDT6t19dBl/Hb1D/BdsM2AvH+WizpAXAuD jn1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GY8IBu+m; 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 d18si9532575ilo.12.2021.05.08.08.25.08; Sat, 08 May 2021 08:25:20 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GY8IBu+m; 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 S229610AbhEHPYt (ORCPT + 99 others); Sat, 8 May 2021 11:24:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbhEHPYs (ORCPT ); Sat, 8 May 2021 11:24:48 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C985C061574 for ; Sat, 8 May 2021 08:23:46 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id e11so1769278ljn.13 for ; Sat, 08 May 2021 08:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LA1s7H8iJNlnGDJOvq18ISrXAvebu3dTqmmAHQk0eXA=; b=GY8IBu+m+3oUOVWXByoeS1RqLfBljlxVoPUO1aOBONw/W07fMf6agecd8aDLxdwOd1 3nY23XwejNO4BDe6uUc6gc5TIl5KmHHzgM8kd80MEqMLfPLKYvYzuPjuevyTVI9cpP47 Kot8+lOIrEr77RreB4ghtv0EkSpqGsJgtN0WE= 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=LA1s7H8iJNlnGDJOvq18ISrXAvebu3dTqmmAHQk0eXA=; b=DrnP9sfqNXlZyQOTeI2S47WKmLSDQSNzcnCfZKNL6/oQe7pMoMdzj1aygD2t/1pscp 0+0JxglI5NId2wn2+oDM7pWI0Ag1yUE0OXn9IPoKH7iuDBOhoWdqVeERQU0qP1CIDPdM jWPAhCCvV/qABocaouBHh9YHbIrN84dOLcHYdjeCNpp46NNboz9gxzf9ndUIZebP8Kl3 bd9kvXeNeyQ3oilgu+AF/GyruKcunXTQy/rKo4KiloF+LeQhMEZvjfo+YcLJwyHldc5M e+6mwn2KRHgs9enNDfP0u1LdNyTsUml0HSY0nDEC/vR5HaZ98fqP+8GGT0uvewtwKnNG S5YQ== X-Gm-Message-State: AOAM530AsKjuuwloylhFOGUv1Ooa7oCeV2a0eM+DHfW+o1SqaAQxiiKS zZ98JQFrGs7wjaW3TAUTQxVkOMnc9yBihoL6 X-Received: by 2002:a2e:b5b0:: with SMTP id f16mr12588929ljn.52.1620487424857; Sat, 08 May 2021 08:23:44 -0700 (PDT) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id k18sm1657363lfg.200.2021.05.08.08.23.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 May 2021 08:23:44 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id w4so15321803ljw.9 for ; Sat, 08 May 2021 08:23:43 -0700 (PDT) X-Received: by 2002:a05:651c:33a:: with SMTP id b26mr12695518ljp.220.1620487423720; Sat, 08 May 2021 08:23:43 -0700 (PDT) MIME-Version: 1.0 References: <20210507220813.365382-1-arnd@kernel.org> <20210507220813.365382-13-arnd@kernel.org> In-Reply-To: From: Linus Torvalds Date: Sat, 8 May 2021 08:23:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 12/12] asm-generic: simplify asm/unaligned.h To: Arnd Bergmann Cc: linux-arch , Vineet Gupta , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 8, 2021 at 2:29 AM Arnd Bergmann wrote: > > On Sat, May 8, 2021 at 1:54 AM Linus Torvalds > wrote: > > > > #define get_unaligned(ptr) \ > > __get_unaligned_t(typeof(*__ptr), __ptr) That's missing a set of parentheses around that __ptr thing ('*__ptr' should be '*(__ptr)'), btw, so don't use that as-is. > Both versions are equally correct, I picked the __auto_type version > because this tends to produce smaller preprocessor output when you have > multiple layers of nested macros with 'ptr' expanding to something > complicated, Ahh. Yeah, that's probably not a problem for get_unaligned(), but it might happen in other situations. Linus