Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp641548pxt; Thu, 5 Aug 2021 08:12:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUk3qGUoQU2eqkildxxnnFdLQxc8/ZDh+LUtxqXQqpsTyQ3NCxsnD9ZJ6pSvaNRsbLkCkP X-Received: by 2002:a5e:8619:: with SMTP id z25mr612681ioj.13.1628176345605; Thu, 05 Aug 2021 08:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628176345; cv=none; d=google.com; s=arc-20160816; b=JgDHRdmuLhtxJsah36lUA7gSVp/M+Qn1YnnDy7ePTs6jut6F39JfJ0VNsHGrwQQqQf RYjAGb85u9oDpBRAn8MDj3Jm0RAy+yZN5k2bDncLyOUpdI3+DLlgHWEvYGkAeAFfdays /Ci7m4EF4U9l8Ufe8s1+6kk3dyFt4TY9Uv/qbpBFTaICknuxw0znGF3J/PWt2p7O44e7 dyDmFIU4D9IPvOUK3gIJ4/969YkRU9FkjaOGC0w5Wx0HydmJWtfIwpL+NaIc+IJqIPU4 WQE0HioTUrpVqVr6iKCHCg2BzMHUSlY5+zIOaBpMZ/YzB9QCqLJuV0cfLD6XQrSsV5mH OHew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eSJtsF6Jeti9fhWnHbLl2fELMn0F+2fN4MBTm3vWTW0=; b=w1igLPI46Cs2BDHFD9kAF1iBKHsvlD/fl+Yx4iDU84ePmoJ0ZU0CwEQc4RZmnkq334 0Ofwaot2Flbx532fCWnmWhyRXJiu2vn79NGxtojduVUoFUW9fRLQokC/jOExuNTTCpwb FgTCCxCCbC1apY1RlKkYvEx1GOFAnkVFh7j+vLl0r3EQ631s7sMWX+jxfWdxflI6wLQk mSfAYm6AXKQgDH1oI71ougcOJxZJnysIz5XEIJIQOLFy3ukJErzZ8kDbM72x+3Hd5s87 V62z7mNpBnMDDZbfY9tDPXqXHSekVhK+KAfDRy1gdqL9G7JS6yvhKI7ioTqWO2KfcbGR SAWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MlcIUmoX; 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 t26si5681937ioj.103.2021.08.05.08.12.13; Thu, 05 Aug 2021 08:12:25 -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=@infradead.org header.s=desiato.20200630 header.b=MlcIUmoX; 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 S241839AbhHEPKk (ORCPT + 99 others); Thu, 5 Aug 2021 11:10:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233201AbhHEPKk (ORCPT ); Thu, 5 Aug 2021 11:10:40 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 196D0C061765; Thu, 5 Aug 2021 08:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=eSJtsF6Jeti9fhWnHbLl2fELMn0F+2fN4MBTm3vWTW0=; b=MlcIUmoXpg52Stjx4LMJuW97mw C2qZUotjUrwxXQShT5OTm1MEIacvPBuJxY78NRoO/UUbmvLYE8ntiPRjgn8VPaXlQTYTFQbNIQ7Pr 9xeBsNOuh1g8ha+eJgwu76QV/UpoeEAhDbFFBznTYi8u9PETyyAsLNc3amnANgMXarEBdpcZTJJw4 Q0lghQDit4CRVN9CThoiSDTLPv2z2xs4f/sKCTBp5Hhjom9WncXuYqJaaEQ1YMETq48ssLN/w+897 +NohM/qzPW7fnt5D3c9O1ABDUxbx45gq8QRChsNADCGukjTEnDXYxuolSgMosWTnsM61I1TiyJou4 Td/0XmYQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBf0d-0065gm-6d; Thu, 05 Aug 2021 15:10:11 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D7B4830027B; Thu, 5 Aug 2021 17:10:08 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BC1A4299CE2A6; Thu, 5 Aug 2021 17:10:08 +0200 (CEST) Date: Thu, 5 Aug 2021 17:10:08 +0200 From: Peter Zijlstra To: Davidlohr Bueso Cc: Arnd Bergmann , Lukas Bulwahn , Michel Lespinasse , Andrew Morton , Mete Polat , Jesper Nilsson , David Woodhouse , Ingo Molnar , Randy Dunlap , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List , Geert Uytterhoeven Subject: Re: [PATCH] rbtree: remove unneeded explicit alignment in struct rb_node Message-ID: References: <20210805133213.700-1-lukas.bulwahn@gmail.com> <50ad4c8b848bd371b4b42959167ef03d@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50ad4c8b848bd371b4b42959167ef03d@suse.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 08:02:28AM -0700, Davidlohr Bueso wrote: > On 2021-08-05 07:02, Arnd Bergmann wrote: > > The revert would appear to change the alignment to 16 bits instead > > of 32 bits on m68k as well (not 8 bits as on cris), but I don't know if > > that > > can cause problems there. > > Yeah I tried this a while back and it broke m68k, so it was a no go: > > https://lore.kernel.org/lkml/CAMuHMdXeZvJ0X6Ah2CpLRoQJm+YhxAWBt-rUpxoyfOLTcHp+0g@mail.gmail.com/ I'm still thinking that any architecture that doesn't respect natural alignment is playing with fire. For giggles we should put a runtime alignment check in READ_ONCE() and see what goes *bang*.